Home
last modified time | relevance | path

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

/external/clang/lib/Format/
DFormatTokenLexer.cpp108 First[0]->TokenText = "<<"; in tryMergeLessLess()
129 AddLength += First[i]->TokenText.size(); in tryMergeTokens()
132 First[0]->TokenText = StringRef(First[0]->TokenText.data(), in tryMergeTokens()
133 First[0]->TokenText.size() + AddLength); in tryMergeTokens()
196 const char *RegexBegin = Offset - RegexToken->TokenText.size(); in tryParseJSRegexLiteral()
225 RegexToken->TokenText = StringRef(RegexBegin, Offset - RegexBegin); in tryParseJSRegexLiteral()
226 RegexToken->ColumnWidth = RegexToken->TokenText.size(); in tryParseJSRegexLiteral()
233 if (!BacktickToken->is(tok::unknown) || BacktickToken->TokenText != "`") in tryParseTemplateString()
238 const char *TmplBegin = Offset - BacktickToken->TokenText.size(); // at "`" in tryParseTemplateString()
247 BacktickToken->TokenText = LiteralText; in tryParseTemplateString()
[all …]
DBreakableToken.cpp150 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()
257 StringRef TokenText(Token.TokenText); in BreakableBlockComment() local
258 assert(TokenText.startswith("/*") && TokenText.endswith("*/")); in BreakableBlockComment()
259 TokenText.substr(2, TokenText.size() - 4).split(Lines, "\n"); in BreakableBlockComment()
397 Text.data() - Tok.TokenText.data() + Split.first; in insertBreak()
[all …]
DSortJavaScriptImports.cpp339 Current->TokenText.substr(1, Current->TokenText.size() - 2); in parseModuleReference()
354 Current->TokenText.substr(1, Current->TokenText.size() - 2); in parseModuleReference()
387 Reference.Prefix = Current->TokenText; in parseStarBinding()
405 Symbol.Symbol = Current->TokenText; in parseNamedBindings()
415 Symbol.Alias = Current->TokenText; in parseNamedBindings()
DTokenAnnotator.cpp843 return Tok.TokenText == "goog" && Tok.Next && Tok.Next->is(tok::period) && in isClosureImportStatement()
844 Tok.Next->Next && (Tok.Next->Next->TokenText == "module" || in isClosureImportStatement()
845 Tok.Next->Next->TokenText == "provide" || in isClosureImportStatement()
846 Tok.Next->Next->TokenText == "require" || in isClosureImportStatement()
847 Tok.Next->Next->TokenText == "setTestOnly" || in isClosureImportStatement()
848 Tok.Next->Next->TokenText == "forwardDeclare") && in isClosureImportStatement()
1023 if (Current.TokenText.startswith("/*")) { in determineTokenType()
1024 if (Current.TokenText.endswith("*/")) in determineTokenType()
1042 BeforeParen->TokenText == BeforeParen->TokenText.upper() && in determineTokenType()
1902 bool is_short_annotation = Right.TokenText.size() < 10; in splitPenalty()
[all …]
DContinuationIndenter.cpp269 ((Previous.is(tok::identifier) && Previous.TokenText == "endl") || in mustBreak()
270 (Previous.Tok.isLiteral() && (Previous.TokenText.endswith("\\n\"") || in mustBreak()
271 Previous.TokenText == "\'\\n\'")))) in mustBreak()
1108 StringRef Text = Current.TokenText; in breakProtrudingToken()
1135 CommentPragmasRegex.match(Current.TokenText.substr(2))) in breakProtrudingToken()
1144 CommentPragmasRegex.match(Current.TokenText.substr(2))) in breakProtrudingToken()
1242 if (Current.TokenText.startswith("R\"")) in nextIsMultilineString()
DAffectedRangeManager.cpp79 End = End.getLocWithOffset(Last.TokenText.size()); in affectsTokenRange()
DUnwrappedLineParser.cpp459 if (I->Tok->TokenText != "goog") in isGoogScope()
465 if (I->Tok->TokenText != "scope") in isGoogScope()
1058 StringRef Text = FormatTok->TokenText; in parseStructuralElement()
1822 FormatTok->TokenText != FormatTok->TokenText.upper(); in parseRecord()
DFormatToken.h161 StringRef TokenText; member
DFormat.cpp842 StringRef Input = FormatTok->TokenText; in requoteJSStringLiteral()
866 size_t ColumnWidth = FormatTok->TokenText.size(); in requoteJSStringLiteral()
DUnwrappedLineFormatter.cpp468 llvm::dbgs() << State.NextToken->TokenText << "\n"; in printLineState()
/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));