Home
last modified time | relevance | path

Searched refs:TokenText (Results 1 – 7 of 7) sorted by relevance

/external/clang/lib/Format/
DBreakableToken.cpp142 assert(Tok.TokenText.startswith(Prefix) && Tok.TokenText.endswith(Postfix)); in BreakableSingleLineToken()
143 Line = Tok.TokenText.substr( in BreakableSingleLineToken()
144 Prefix.size(), Tok.TokenText.size() - Prefix.size() - Postfix.size()); in BreakableSingleLineToken()
182 getLineCommentPrefix(Token.TokenText), "", in BreakableLineComment()
185 if (Token.TokenText.size() > Prefix.size() && in BreakableLineComment()
186 isAlphanumeric(Token.TokenText[Prefix.size()])) { in BreakableLineComment()
223 StringRef TokenText(Token.TokenText); in BreakableBlockComment() local
224 assert(TokenText.startswith("/*") && TokenText.endswith("*/")); in BreakableBlockComment()
225 TokenText.substr(2, TokenText.size() - 4).split(Lines, "\n"); in BreakableBlockComment()
358 Text.data() - Tok.TokenText.data() + Split.first; in insertBreak()
[all …]
DFormat.cpp966 if (!Current.TokenText.startswith("\"")) in breakProtrudingToken()
971 if (Current.TokenText.find("\\\n") != StringRef::npos) in breakProtrudingToken()
994 StringRef::size_type EscapedNewlinePos = Current.TokenText.find("\\\n"); in breakProtrudingToken()
999 Current.TokenText.substr(0, EscapedNewlinePos), Encoding) + in breakProtrudingToken()
1253 (Current.TokenText.find("\\\n") != StringRef::npos))) in mustBreak()
1361 FormatTok->TokenText = ">"; in getNextToken()
1377 unsigned Newlines = FormatTok->TokenText.count('\n'); in getNextToken()
1380 WhitespaceLength + FormatTok->TokenText.rfind('\n') + 1; in getNextToken()
1382 unsigned EscapedNewlines = FormatTok->TokenText.count("\\\n"); in getNextToken()
1395 while (FormatTok->TokenText.size() > 1 && FormatTok->TokenText[0] == '\\' && in getNextToken()
[all …]
DFormatToken.h136 StringRef TokenText; member
DTokenAnnotator.cpp636 if (Current.TokenText.startswith("//")) in determineTokenType()
987 Current->TokenText.find("\\\n") != StringRef::npos)) in calculateFormattingInformation()
1092 StringRef Content = Left.TokenText; in splitPenalty()
1191 if (Left.Type == TT_BlockComment && Left.TokenText.endswith("=*/")) in spaceRequiredBetween()
DUnwrappedLineParser.cpp608 StringRef Text = FormatTok->TokenText; in parseStructuralElement()
/external/antlr/antlr-3.4/runtime/Delphi/Sources/Antlr3.Runtime/
DAntlr.Runtime.pas5653 TokenText: String;
5658 TokenText := '<missing EOF>'
5660 TokenText := '<missing ' + GetTokenNames[ExpectedTokenType] + '>';
5661 T := TCommonToken.Create(ExpectedTokenType, TokenText);
DAntlr.Runtime.Tree.pas3774 TokenText: String;
3776 TokenText := '<missing ' + GetTokenNames[ExpectedTokenType] + '>';
3777 Result := TCommonTree.Create(TCommonToken.Create(ExpectedTokenType, TokenText));