Lines Matching refs:Tokens

46   assert(Tokens.empty());  in lex()
49 Tokens.push_back(getNextToken()); in lex()
55 if (Tokens.back()->NewlinesBefore > 0 || Tokens.back()->IsMultiline) in lex()
56 FirstInLineIndex = Tokens.size() - 1; in lex()
57 } while (Tokens.back()->Tok.isNot(tok::eof)); in lex()
58 return Tokens; in lex()
90 if (Tokens.size() < 3) in tryMergeLessLess()
94 if (Tokens.size() > 3) in tryMergeLessLess()
95 FourthTokenIsLess = (Tokens.end() - 4)[0]->is(tok::less); in tryMergeLessLess()
97 auto First = Tokens.end() - 3; in tryMergeLessLess()
110 Tokens.erase(Tokens.end() - 2); in tryMergeLessLess()
116 if (Tokens.size() < Kinds.size()) in tryMergeTokens()
120 Tokens.end() - Kinds.size(); in tryMergeTokens()
131 Tokens.resize(Tokens.size() - Kinds.size() + 1); in tryMergeTokens()
162 return (Tokens.size() < 3 || precedesOperand(Tokens[Tokens.size() - 3])); in canPrecedeRegexLiteral()
177 FormatToken *RegexToken = Tokens.back(); in tryParseJSRegexLiteral()
182 for (auto I = Tokens.rbegin() + 1, E = Tokens.rend(); I != E; ++I) { in tryParseJSRegexLiteral()
232 FormatToken *BacktickToken = Tokens.back(); in tryParseTemplateString()
269 if (Tokens.size() < 4) in tryMerge_TMacro()
271 FormatToken *Last = Tokens.back(); in tryMerge_TMacro()
275 FormatToken *String = Tokens[Tokens.size() - 2]; in tryMerge_TMacro()
279 if (!Tokens[Tokens.size() - 3]->is(tok::l_paren)) in tryMerge_TMacro()
282 FormatToken *Macro = Tokens[Tokens.size() - 4]; in tryMerge_TMacro()
298 Tokens.pop_back(); in tryMerge_TMacro()
299 Tokens.pop_back(); in tryMerge_TMacro()
300 Tokens.pop_back(); in tryMerge_TMacro()
301 Tokens.back() = String; in tryMerge_TMacro()
306 if (Tokens.back()->NewlinesBefore == 0 && Tokens.back()->isNot(tok::eof)) in tryMergeConflictMarkers()
322 Tokens[FirstInLineIndex]->getStartOfNonWhitespace()); in tryMergeConflictMarkers()
351 FormatToken *Next = Tokens.back(); in tryMergeConflictMarkers()
353 Tokens.resize(FirstInLineIndex + 1); in tryMergeConflictMarkers()
357 Tokens.back()->Type = Type; in tryMergeConflictMarkers()
358 Tokens.back()->Tok.setKind(tok::kw___unknown_anytype); in tryMergeConflictMarkers()
360 Tokens.push_back(Next); in tryMergeConflictMarkers()
535 if (!(Tokens.size() > 0 && Tokens.back()->Tok.getIdentifierInfo() && in getNextToken()
536 Tokens.back()->Tok.getIdentifierInfo()->getPPKeywordID() == in getNextToken()