Searched refs:TokenText (Results 1 – 9 of 9) sorted by relevance
684 First[0]->TokenText = "<<"; in tryMergeLessLess()704 AddLength += First[i]->TokenText.size(); in tryMergeTokens()707 First[0]->TokenText = StringRef(First[0]->TokenText.data(), in tryMergeTokens()708 First[0]->TokenText.size() + AddLength); in tryMergeTokens()719 if (Previous->isNot(tok::unknown) || Previous->TokenText != "\\") in tryMergeEscapeSequence()722 StringRef Text = Previous->TokenText; in tryMergeEscapeSequence()723 Previous->TokenText = StringRef(Text.data(), Text.size() + 1); in tryMergeEscapeSequence()742 Tokens.back()->TokenText.startswith("//") && in tryMergeJSRegexLiteral()743 Tokens[Tokens.size() - 2]->TokenText == "\\"; in tryMergeJSRegexLiteral()747 Tokens[Tokens.size() - 2]->TokenText == "\\"))) in tryMergeJSRegexLiteral()[all …]
150 assert(Tok.TokenText.endswith(Postfix)); in BreakableSingleLineToken()151 Line = Tok.TokenText.substr( in BreakableSingleLineToken()152 Prefix.size(), Tok.TokenText.size() - Prefix.size() - Postfix.size()); in BreakableSingleLineToken()204 getLineCommentIndentPrefix(Token.TokenText), "", in BreakableLineComment()207 if (Token.TokenText.size() > Prefix.size() && in BreakableLineComment()208 isAlphanumeric(Token.TokenText[Prefix.size()])) { in BreakableLineComment()256 StringRef TokenText(Token.TokenText); in BreakableBlockComment() local257 assert(TokenText.startswith("/*") && TokenText.endswith("*/")); in BreakableBlockComment()258 TokenText.substr(2, TokenText.size() - 4).split(Lines, "\n"); in BreakableBlockComment()390 Text.data() - Tok.TokenText.data() + Split.first; in insertBreak()[all …]
585 if (CurrentToken && CurrentToken->TokenText == "mark") { in parsePragma()693 Tok.TokenText == "goog" && Tok.Next && Tok.Next->is(tok::period) && in IsImportStatement()694 Tok.Next->Next && (Tok.Next->Next->TokenText == "module" || in IsImportStatement()695 Tok.Next->Next->TokenText == "require" || in IsImportStatement()696 Tok.Next->Next->TokenText == "provide") && in IsImportStatement()866 Current.TokenText.startswith("/*") ? TT_BlockComment : TT_LineComment; in determineTokenType()1588 bool is_short_annotation = Right.TokenText.size() < 10; in splitPenalty()1624 StringRef Content = Left.TokenText; in splitPenalty()1733 return !Left.TokenText.endswith("=*/"); in spaceRequiredBetween()1762 if (Right.is(tok::hash) && Left.is(tok::identifier) && Left.TokenText == "L") in spaceRequiredBetween()[all …]
235 Previous.TokenText == "endl") in mustBreak()953 StringRef Text = Current.TokenText; in breakProtrudingToken()979 if (CommentPragmasRegex.match(Current.TokenText.substr(2))) in breakProtrudingToken()987 if (CommentPragmasRegex.match(Current.TokenText.substr(2))) in breakProtrudingToken()1085 if (Current.TokenText.startswith("R\"")) in nextIsMultilineString()
178 StringRef TokenText; member
429 if (I->Tok->TokenText != "goog") in isGoogScope()435 if (I->Tok->TokenText != "scope") in isGoogScope()836 StringRef Text = FormatTok->TokenText; in parseStructuralElement()
623 llvm::dbgs() << State.NextToken->TokenText << "\n"; in printLineState()
5653 TokenText: String;5658 TokenText := '<missing EOF>'5660 TokenText := '<missing ' + GetTokenNames[ExpectedTokenType] + '>';5661 T := TCommonToken.Create(ExpectedTokenType, TokenText);
3774 TokenText: String;3776 TokenText := '<missing ' + GetTokenNames[ExpectedTokenType] + '>';3777 Result := TCommonTree.Create(TCommonToken.Create(ExpectedTokenType, TokenText));