Lines Matching refs:TokenText
182 At->TokenText = StringRef(At->TokenText.begin(), in tryMergeNSStringLiteral()
183 String->TokenText.end() - At->TokenText.begin()); in tryMergeNSStringLiteral()
200 Hash->TokenText = in tryMergeJSPrivateIdentifier()
201 StringRef(Hash->TokenText.begin(), in tryMergeJSPrivateIdentifier()
202 Identifier->TokenText.end() - Hash->TokenText.begin()); in tryMergeJSPrivateIdentifier()
229 (CSharpInterpolatedString->TokenText.startswith(R"($")") || in tryMergeCSharpStringLiteral()
233 auto TokenTextSize = CSharpInterpolatedString->TokenText.size(); in tryMergeCSharpStringLiteral()
235 char C = CSharpInterpolatedString->TokenText[Index]; in tryMergeCSharpStringLiteral()
239 CSharpInterpolatedString->TokenText[Index + 1] == '{') { in tryMergeCSharpStringLiteral()
247 CSharpInterpolatedString->TokenText[Index + 1] == '}') { in tryMergeCSharpStringLiteral()
257 CSharpInterpolatedString->TokenText = in tryMergeCSharpStringLiteral()
258 StringRef(CSharpInterpolatedString->TokenText.begin(), in tryMergeCSharpStringLiteral()
259 NextToken->TokenText.end() - in tryMergeCSharpStringLiteral()
260 CSharpInterpolatedString->TokenText.begin()); in tryMergeCSharpStringLiteral()
273 if (!(At->is(tok::at) || At->TokenText == "$")) in tryMergeCSharpStringLiteral()
278 if (Dollar->TokenText == "$") { in tryMergeCSharpStringLiteral()
281 Dollar->TokenText = in tryMergeCSharpStringLiteral()
282 StringRef(Dollar->TokenText.begin(), in tryMergeCSharpStringLiteral()
283 String->TokenText.end() - Dollar->TokenText.begin()); in tryMergeCSharpStringLiteral()
294 At->TokenText = StringRef(At->TokenText.begin(), in tryMergeCSharpStringLiteral()
295 String->TokenText.end() - At->TokenText.begin()); in tryMergeCSharpStringLiteral()
317 FirstQuestion->TokenText = StringRef(FirstQuestion->TokenText.begin(), in tryMergeCSharpDoubleQuestion()
318 SecondQuestion->TokenText.end() - in tryMergeCSharpDoubleQuestion()
319 FirstQuestion->TokenText.begin()); in tryMergeCSharpDoubleQuestion()
335 Question->TokenText = in tryMergeCSharpNullConditional()
336 StringRef(Question->TokenText.begin(), in tryMergeCSharpNullConditional()
337 PeriodOrLSquare->TokenText.end() - Question->TokenText.begin()); in tryMergeCSharpNullConditional()
363 At->TokenText = StringRef(At->TokenText.begin(), in tryMergeCSharpKeywordVariables()
364 Keyword->TokenText.end() - At->TokenText.begin()); in tryMergeCSharpKeywordVariables()
378 if (Identifier->TokenText != "foreach") in tryTransformCSharpForEach()
395 if (Each->TokenText != "each") in tryMergeForEach()
401 For->TokenText = StringRef(For->TokenText.begin(), in tryMergeForEach()
402 Each->TokenText.end() - For->TokenText.begin()); in tryMergeForEach()
448 First[0]->TokenText = "<<"; in tryMergeLessLess()
468 AddLength += First[i]->TokenText.size(); in tryMergeTokens()
471 First[0]->TokenText = StringRef(First[0]->TokenText.data(), in tryMergeTokens()
472 First[0]->TokenText.size() + AddLength); in tryMergeTokens()
537 const char *RegexBegin = Offset - RegexToken->TokenText.size(); in tryParseJSRegexLiteral()
566 RegexToken->TokenText = StringRef(RegexBegin, Offset - RegexBegin); in tryParseJSRegexLiteral()
567 RegexToken->ColumnWidth = RegexToken->TokenText.size(); in tryParseJSRegexLiteral()
579 if (!(CSharpStringLiteral->TokenText.startswith(R"(@")") || in handleCSharpVerbatimAndInterpolatedStrings()
584 Lex->getBufferLocation() - CSharpStringLiteral->TokenText.size(); in handleCSharpVerbatimAndInterpolatedStrings()
586 if (CSharpStringLiteral->TokenText.startswith(R"(@")")) in handleCSharpVerbatimAndInterpolatedStrings()
609 CSharpStringLiteral->TokenText = LiteralText; in handleCSharpVerbatimAndInterpolatedStrings()
649 BacktickToken->TokenText == "`") { in handleTemplateStrings()
657 const char *TmplBegin = Offset - BacktickToken->TokenText.size(); // at "`" in handleTemplateStrings()
677 BacktickToken->TokenText = LiteralText; in handleTemplateStrings()
707 Lex->getBufferLocation() - HashToken->TokenText.size(); // at "#" in tryParsePythonComment()
715 HashToken->TokenText = Lex->getBuffer().substr(From, Len); in tryParsePythonComment()
737 if (Macro->TokenText != "_T") in tryMerge_TMacro()
740 const char *Start = Macro->TokenText.data(); in tryMerge_TMacro()
741 const char *End = Last->TokenText.data() + Last->TokenText.size(); in tryMerge_TMacro()
742 String->TokenText = StringRef(Start, End - Start); in tryMerge_TMacro()
748 String->TokenText, String->OriginalColumn, Style.TabWidth, Encoding); in tryMerge_TMacro()
824 StringRef TokenText = FormatTok->TokenText; in getStashedToken() local
833 FormatTok->TokenText = TokenText; in getStashedToken()
856 StringRef Text = FormatTok->TokenText; in getNextToken()
924 FormatTok->is(tok::comment) && FormatTok->TokenText.startswith("//")) { in getNextToken()
925 size_t BackslashPos = FormatTok->TokenText.find('\\'); in getNextToken()
927 if (BackslashPos + 1 < FormatTok->TokenText.size() && in getNextToken()
928 FormatTok->TokenText[BackslashPos + 1] == '\n') { in getNextToken()
930 Offset -= FormatTok->TokenText.size(); in getNextToken()
933 FormatTok->TokenText = FormatTok->TokenText.substr(0, BackslashPos + 1); in getNextToken()
935 FormatTok->TokenText, FormatTok->OriginalColumn, Style.TabWidth, in getNextToken()
939 BackslashPos = FormatTok->TokenText.find('\\', BackslashPos + 1); in getNextToken()
947 while (FormatTok->TokenText.size() > 1 && FormatTok->TokenText[0] == '\\') { in getNextToken()
949 if (FormatTok->TokenText.size() > 2 && in getNextToken()
950 (FormatTok->TokenText[1] == '\r' && FormatTok->TokenText[2] == '\n')) in getNextToken()
952 else if (FormatTok->TokenText[1] == '\n') in getNextToken()
961 FormatTok->TokenText = FormatTok->TokenText.substr(SkippedWhitespace); in getNextToken()
972 StringRef UntrimmedText = FormatTok->TokenText; in getNextToken()
973 FormatTok->TokenText = FormatTok->TokenText.rtrim(" \t\v\f"); in getNextToken()
974 TrailingWhitespace = UntrimmedText.size() - FormatTok->TokenText.size(); in getNextToken()
976 IdentifierInfo &Info = IdentTable.get(FormatTok->TokenText); in getNextToken()
992 FormatTok->TokenText = FormatTok->TokenText.substr(0, 1); in getNextToken()
997 FormatTok->TokenText = FormatTok->TokenText.substr(0, 1); in getNextToken()
1004 StringRef Text = FormatTok->TokenText; in getNextToken()
1047 Tok.TokenText = StringRef(SourceMgr.getCharacterData(Tok.Tok.getLocation()), in readRawToken()
1052 if (!Tok.TokenText.empty() && Tok.TokenText[0] == '"') { in readRawToken()
1056 Tok.TokenText == "''") { in readRawToken()
1068 if (Tok.is(tok::comment) && (Tok.TokenText == "// clang-format on" || in readRawToken()
1069 Tok.TokenText == "/* clang-format on */")) { in readRawToken()
1075 if (Tok.is(tok::comment) && (Tok.TokenText == "// clang-format off" || in readRawToken()
1076 Tok.TokenText == "/* clang-format off */")) { in readRawToken()