Lines Matching +full:- +full:- +full:user +full:- +full:token
1 //===- TokenBufferTokenManager.h -----------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
18 /// A TokenBuffer-powered token manager.
19 /// It tracks the underlying token buffers, source manager, etc.
26 static bool classof(const TokenManager *N) { return N->kind() == Kind; } in classof()
30 const auto *Token = getToken(I); in getText() local
31 assert(Token); in getText()
34 // have a direct way to retrive token kind in the syntax::Leaf. in getText()
35 if (Token->kind() == tok::eof) in getText()
37 return Token->text(SM); in getText()
40 const syntax::Token *getToken(Key I) const { in getToken()
41 return reinterpret_cast<const syntax::Token *>(I); in getToken()
53 /// that were not written in user code.
54 std::pair<FileID, ArrayRef<Token>>
64 llvm::DenseMap<FileID, std::vector<Token>> ExtraTokens;