Lines Matching refs:Tokens
569 llvm::ArrayRef<syntax::Token> Tokens) { in spelledTokensTouching() argument
573 Tokens, [&](const syntax::Token &Tok) { return Tok.location() < Loc; }); in spelledTokensTouching()
574 bool AcceptRight = Right != Tokens.end() && Right->location() <= Loc; in spelledTokensTouching()
576 Right != Tokens.begin() && (Right - 1)->endLocation() >= Loc; in spelledTokensTouching()
583 const syntax::TokenBuffer &Tokens) { in spelledTokensTouching() argument
585 Loc, Tokens.spelledTokens(Tokens.sourceManager().getFileID(Loc))); in spelledTokensTouching()
590 llvm::ArrayRef<syntax::Token> Tokens) { in spelledIdentifierTouching() argument
591 for (const syntax::Token &Tok : spelledTokensTouching(Loc, Tokens)) { in spelledIdentifierTouching()
600 const syntax::TokenBuffer &Tokens) { in spelledIdentifierTouching() argument
602 Loc, Tokens.spelledTokens(Tokens.sourceManager().getFileID(Loc))); in spelledIdentifierTouching()
623 std::vector<syntax::Token> Tokens; in tokenize() local
633 Tokens.push_back(syntax::Token(T)); in tokenize()
650 return Tokens; in tokenize()
966 llvm::ArrayRef<syntax::Token> Tokens) { in dumpForTests() argument
967 if (Tokens.empty()) { in dumpForTests()
971 OS << Tokens[0].text(*SourceMgr); in dumpForTests()
972 for (unsigned I = 1; I < Tokens.size(); ++I) { in dumpForTests()
973 if (Tokens[I].kind() == tok::eof) in dumpForTests()
975 OS << " " << PrintToken(Tokens[I]); in dumpForTests()