Lines Matching refs:Tokens
10 #include "clang/Tooling/Syntax/Tokens.h"
18 /// Enumerates spans of tokens from the tree consecutively laid out in memory.
70 // Check that \p Expanded actually points into expanded tokens.
75 // (!) empty tokens must always point before end().
80 assert(Spelled && "could not find spelled tokens for expanded");
104 &TU, [&](llvm::ArrayRef<syntax::Token> Tokens, bool IsOriginal) {
107 syntax::Token::range(SM, Tokens.front(), Tokens.back()).text(SM);
110 assert(NextOriginal <= Tokens.begin());
111 // We are looking at a span of original tokens.
112 if (NextOriginal != Tokens.begin()) {
114 emitReplacement(llvm::makeArrayRef(NextOriginal, Tokens.begin()));
119 NextOriginal = Tokens.end();