Lines Matching refs:Tokens
524 llvm::ArrayRef<syntax::Token> Tokens) { in spelledTokensTouching() argument
528 Tokens, [&](const syntax::Token &Tok) { return Tok.location() < Loc; }); in spelledTokensTouching()
529 bool AcceptRight = Right != Tokens.end() && Right->location() <= Loc; in spelledTokensTouching()
531 Right != Tokens.begin() && (Right - 1)->endLocation() >= Loc; in spelledTokensTouching()
538 const syntax::TokenBuffer &Tokens) { in spelledTokensTouching() argument
540 Loc, Tokens.spelledTokens(Tokens.sourceManager().getFileID(Loc))); in spelledTokensTouching()
545 llvm::ArrayRef<syntax::Token> Tokens) { in spelledIdentifierTouching() argument
546 for (const syntax::Token &Tok : spelledTokensTouching(Loc, Tokens)) { in spelledIdentifierTouching()
555 const syntax::TokenBuffer &Tokens) { in spelledIdentifierTouching() argument
557 Loc, Tokens.spelledTokens(Tokens.sourceManager().getFileID(Loc))); in spelledIdentifierTouching()
578 std::vector<syntax::Token> Tokens; in tokenize() local
588 Tokens.push_back(syntax::Token(T)); in tokenize()
605 return Tokens; in tokenize()
921 llvm::ArrayRef<syntax::Token> Tokens) { in dumpForTests() argument
922 if (Tokens.empty()) { in dumpForTests()
926 OS << Tokens[0].text(*SourceMgr); in dumpForTests()
927 for (unsigned I = 1; I < Tokens.size(); ++I) { in dumpForTests()
928 if (Tokens[I].kind() == tok::eof) in dumpForTests()
930 OS << " " << PrintToken(Tokens[I]); in dumpForTests()