Lines Matching refs:Tokens
523 llvm::ArrayRef<syntax::Token> Tokens) { in spelledTokensTouching() argument
527 Tokens, [&](const syntax::Token &Tok) { return Tok.location() < Loc; }); in spelledTokensTouching()
528 bool AcceptRight = Right != Tokens.end() && Right->location() <= Loc; in spelledTokensTouching()
530 Right != Tokens.begin() && (Right - 1)->endLocation() >= Loc; in spelledTokensTouching()
537 const syntax::TokenBuffer &Tokens) { in spelledTokensTouching() argument
539 Loc, Tokens.spelledTokens(Tokens.sourceManager().getFileID(Loc))); in spelledTokensTouching()
544 llvm::ArrayRef<syntax::Token> Tokens) { in spelledIdentifierTouching() argument
545 for (const syntax::Token &Tok : spelledTokensTouching(Loc, Tokens)) { in spelledIdentifierTouching()
554 const syntax::TokenBuffer &Tokens) { in spelledIdentifierTouching() argument
556 Loc, Tokens.spelledTokens(Tokens.sourceManager().getFileID(Loc))); in spelledIdentifierTouching()
577 std::vector<syntax::Token> Tokens; in tokenize() local
587 Tokens.push_back(syntax::Token(T)); in tokenize()
604 return Tokens; in tokenize()
920 llvm::ArrayRef<syntax::Token> Tokens) { in dumpForTests() argument
921 if (Tokens.empty()) { in dumpForTests()
925 OS << Tokens[0].text(*SourceMgr); in dumpForTests()
926 for (unsigned I = 1; I < Tokens.size(); ++I) { in dumpForTests()
927 if (Tokens[I].kind() == tok::eof) in dumpForTests()
929 OS << " " << PrintToken(Tokens[I]); in dumpForTests()