Lines Matching defs:TokenText
231 if (Tokens.back()->TokenText.size() == 1 &&
301 if (Tokens.back()->TokenText == "!cond")
335 At->TokenText = StringRef(At->TokenText.begin(),
336 String->TokenText.end() - At->TokenText.begin());
353 Hash->TokenText =
354 StringRef(Hash->TokenText.begin(),
355 Identifier->TokenText.end() - Hash->TokenText.begin());
377 if (Prefix->isNot(tok::at) && Prefix->TokenText != "$")
382 if ((Tok->TokenText == "$" && Prefix->is(tok::at)) ||
383 (Tok->is(tok::at) && Prefix->TokenText == "$")) {
393 Prefix->TokenText =
394 StringRef(Prefix->TokenText.begin(),
395 String->TokenText.end() - Prefix->TokenText.begin());
419 NullishCoalescing->TokenText =
420 StringRef(NullishCoalescing->TokenText.begin(),
421 Equal->TokenText.end() - NullishCoalescing->TokenText.begin());
435 if (Keyword->TokenText == "$")
441 At->TokenText = StringRef(At->TokenText.begin(),
442 Keyword->TokenText.end() - At->TokenText.begin());
456 if (Identifier->TokenText != "foreach")
473 if (Each->TokenText != "each")
479 For->TokenText = StringRef(For->TokenText.begin(),
480 Each->TokenText.end() - For->TokenText.begin());
528 First[0]->TokenText = "<<";
552 First[0]->TokenText = ">>";
583 AddLength += First[i]->TokenText.size();
587 First[0]->TokenText = StringRef(First[0]->TokenText.data(),
588 First[0]->TokenText.size() + AddLength);
660 const char *RegexBegin = Offset - RegexToken->TokenText.size();
689 RegexToken->TokenText = StringRef(RegexBegin, Offset - RegexBegin);
690 RegexToken->ColumnWidth = RegexToken->TokenText.size();
760 auto &TokenText = CSharpStringLiteral->TokenText;
764 if (TokenText.starts_with(R"($@")") || TokenText.starts_with(R"(@$")")) {
767 } else if (TokenText.starts_with(R"(@")")) {
769 } else if (TokenText.starts_with(R"($")")) {
777 const char *StrBegin = Lex->getBufferLocation() - TokenText.size();
793 TokenText = LiteralText;
827 MultiLineString->TokenText = Text;
853 StringRef Text = Tok->TokenText;
900 BacktickToken->TokenText == "`") {
908 const char *TmplBegin = Offset - BacktickToken->TokenText.size(); // at "`"
929 BacktickToken->TokenText = LiteralText;
957 Lex->getBufferLocation() - HashToken->TokenText.size(); // at "#"
965 HashToken->TokenText = Lex->getBuffer().substr(From, Len);
987 if (Macro->TokenText != "_T")
990 const char *Start = Macro->TokenText.data();
991 const char *End = Last->TokenText.data() + Last->TokenText.size();
992 String->TokenText = StringRef(Start, End - Start);
998 String->TokenText, String->OriginalColumn, Style.TabWidth, Encoding);
1074 StringRef TokenText = FormatTok->TokenText;
1083 FormatTok->TokenText = TokenText;
1097 assert(NewLen <= FormatTok->TokenText.size());
1099 Lex->getBufferLocation() - FormatTok->TokenText.size() + NewLen)));
1100 FormatTok->TokenText = FormatTok->TokenText.substr(0, NewLen);
1102 FormatTok->TokenText, FormatTok->OriginalColumn, Style.TabWidth,
1161 auto LeadingWhitespace = countLeadingWhitespace(FormatTok->TokenText);
1164 if (LeadingWhitespace < FormatTok->TokenText.size())
1166 StringRef Text = FormatTok->TokenText;
1232 FormatTok->is(tok::comment) && FormatTok->TokenText.starts_with("//")) {
1233 size_t BackslashPos = FormatTok->TokenText.find('\\');
1235 if (BackslashPos + 1 < FormatTok->TokenText.size() &&
1236 FormatTok->TokenText[BackslashPos + 1] == '\n') {
1240 BackslashPos = FormatTok->TokenText.find('\\', BackslashPos + 1);
1254 auto Quote = FormatTok->TokenText.find('\'');
1260 if (FormatTok->TokenText == "`") {
1263 } else if (FormatTok->TokenText == "``") {
1268 NumberBase.match(FormatTok->TokenText, &Matches)) {
1287 StringRef UntrimmedText = FormatTok->TokenText;
1288 FormatTok->TokenText = FormatTok->TokenText.rtrim(" \t\v\f");
1289 TrailingWhitespace = UntrimmedText.size() - FormatTok->TokenText.size();
1291 IdentifierInfo &Info = IdentTable.get(FormatTok->TokenText);
1310 FormatTok->TokenText = FormatTok->TokenText.substr(0, 1);
1315 FormatTok->TokenText = FormatTok->TokenText.substr(0, 1);
1329 StringRef Text = FormatTok->TokenText;
1425 Tok.TokenText = StringRef(SourceMgr.getCharacterData(Tok.Tok.getLocation()),
1430 if (Tok.TokenText.starts_with("\"")) {
1433 } else if (Style.isJavaScript() && Tok.TokenText == "''") {
1441 if (Tok.is(tok::comment) && isClangFormatOn(Tok.TokenText))
1446 if (Tok.is(tok::comment) && isClangFormatOff(Tok.TokenText))