Lines Matching refs:NextExpanded
436 while (NextExpanded < Result.ExpandedTokens.size() - 1 /* eof */) {
438 // May advance NextSpelled, but NextExpanded is unchanged.
441 // Advances NextExpanded past the run, and NextSpelled accordingly.
442 unsigned OldPosition = NextExpanded;
444 if (NextExpanded == OldPosition)
458 // the NextExpanded token, and creates an empty mapping for them.
464 Result.ExpandedTokens[NextExpanded].location());
474 Drain ? Result.Files[*Drain].EndExpanded : NextExpanded;
505 // Consumes the NextExpanded token and others that are part of the same run.
506 // Increases NextExpanded and NextSpelled by at least one, and adds a mapping
509 const syntax::Token &Tok = Result.ExpandedTokens[NextExpanded];
518 NextExpanded < Result.ExpandedTokens.size() &&
520 Result.ExpandedTokens[NextExpanded].location()) {
522 ++NextExpanded;
532 Mapping.BeginExpanded = NextExpanded;
539 while (NextExpanded < Result.ExpandedTokens.size() &&
541 Result.ExpandedTokens[NextExpanded].location()) == Expansion)
542 ++NextExpanded;
544 Mapping.EndExpanded = NextExpanded;
554 for (unsigned I = (NextExpanded < 10) ? 0 : NextExpanded - 10;
555 I < NextExpanded + 5 && I < Result.ExpandedTokens.size(); ++I) {
557 (I == NextExpanded) ? "!! " : (I < NextExpanded) ? "ok " : " ";
585 unsigned NextExpanded = 0; // cursor in ExpandedTokens