Home
last modified time | relevance | path

Searched refs:NextToken (Results 1 – 25 of 56) sorted by relevance

123

/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
DTreePatternParser.cs46 ttype = tokenizer.NextToken(); // kickstart in TreePatternParser()
66 ttype = tokenizer.NextToken(); in ParseTree()
90 ttype = tokenizer.NextToken(); in ParseTree()
98 ttype = tokenizer.NextToken(); in ParseNode()
103 ttype = tokenizer.NextToken(); in ParseNode()
107 ttype = tokenizer.NextToken(); // move to ID following colon in ParseNode()
112 ttype = tokenizer.NextToken(); in ParseNode()
127 ttype = tokenizer.NextToken(); in ParseNode()
137 ttype = tokenizer.NextToken(); in ParseNode()
DRewriteRuleTokenStream.cs77 public virtual IToken NextToken() { in NextToken() method in Antlr.Runtime.Tree.RewriteRuleTokenStream
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
DTreePatternParser.cs49 ttype = tokenizer.NextToken(); // kickstart in TreePatternParser()
75 ttype = tokenizer.NextToken(); in ParseTree()
105 ttype = tokenizer.NextToken(); in ParseTree()
115 ttype = tokenizer.NextToken(); in ParseNode()
121 ttype = tokenizer.NextToken(); in ParseNode()
126 ttype = tokenizer.NextToken(); // move to ID following colon in ParseNode()
132 ttype = tokenizer.NextToken(); in ParseNode()
149 ttype = tokenizer.NextToken(); in ParseNode()
161 ttype = tokenizer.NextToken(); in ParseNode()
DRewriteRuleTokenStream.cs66 public virtual IToken NextToken() in NextToken() method in Antlr.Runtime.Tree.RewriteRuleTokenStream
/external/clang/lib/Format/
DFormatToken.cpp62 if (State.NextToken == nullptr || !State.NextToken->Previous || in formatAfterToken()
63 !State.NextToken->Previous->Previous) in formatAfterToken()
67 const FormatToken *LBrace = State.NextToken->Previous->Previous; in formatAfterToken()
76 Style.ColumnLimit - State.Column + State.NextToken->Previous->ColumnWidth; in formatAfterToken()
90 while (State.NextToken != LBrace->MatchingParen) { in formatAfterToken()
95 if (Item < Commas.size() && State.NextToken->Previous == Commas[Item]) { in formatAfterToken()
96 if (!State.NextToken->isTrailingComment()) { in formatAfterToken()
103 if (Column == Format->Columns || State.NextToken->MustBreakBefore) { in formatAfterToken()
DContinuationIndenter.h317 FormatToken *NextToken; member
361 if (NextToken != Other.NextToken)
362 return NextToken < Other.NextToken;
DContinuationIndenter.cpp77 State.NextToken = Line->First; in getInitialState()
93 const FormatToken &Current = *State.NextToken; in canBreak()
136 const FormatToken &Current = *State.NextToken; in mustBreak()
244 const FormatToken &Current = *State.NextToken; in addTokenToState()
278 FormatToken &Current = *State.NextToken; in addTokenOnCurrentLine()
279 const FormatToken &Previous = *State.NextToken->Previous; in addTokenOnCurrentLine()
383 FormatToken &Current = *State.NextToken; in addTokenOnNewLine()
384 const FormatToken &Previous = *State.NextToken->Previous; in addTokenOnNewLine()
400 Penalty += State.NextToken->SplitPenalty; in addTokenOnNewLine()
510 if (!State.NextToken || !State.NextToken->Previous) in getNewLineColumn()
[all …]
DUnwrappedLineFormatter.cpp313 while (State.NextToken) { in format()
316 (Indenter->canBreak(State) && State.NextToken->NewlinesBefore > 0); in format()
424 while (State.NextToken) { in format()
577 if (!Node->State.NextToken) { in analyzeSolutionSpace()
592 FormatDecision LastFormat = Node->State.NextToken->Decision; in analyzeSolutionSpace()
623 llvm::dbgs() << State.NextToken->TokenText << "\n"; in printLineState()
645 << (*I)->Previous->State.NextToken->Tok.getName() << ": " in reconstructPath()
674 const FormatToken *LBrace = State.NextToken->getPreviousNonComment(); in formatChildren()
675 FormatToken &Previous = *State.NextToken->Previous; in formatChildren()
/external/protobuf/python/google/protobuf/
Dtext_format.py489 self.NextToken()
530 self.NextToken()
558 self.NextToken()
574 self.NextToken()
590 self.NextToken()
606 self.NextToken()
622 self.NextToken()
638 self.NextToken()
654 self.NextToken()
705 self.NextToken()
[all …]
/external/nanopb-c/generator/google/protobuf/
Dtext_format.py326 self.NextToken()
364 self.NextToken()
392 self.NextToken()
408 self.NextToken()
424 self.NextToken()
440 self.NextToken()
456 self.NextToken()
472 self.NextToken()
488 self.NextToken()
538 self.NextToken()
[all …]
/external/clang/lib/Parse/
DParseTentative.cpp150 if (NextToken().isNot(tok::l_paren)) { in TryConsumeDeclarationSpecifier()
505 if (Tok.isNot(tok::l_square) || NextToken().isNot(tok::l_square)) in isCXX11AttributeSpecifier()
633 (Tok.is(tok::annot_cxxscope) && NextToken().is(tok::star))) { in TryParsePtrOperatorSeq()
672 if (Tok.is(tok::l_square) && NextToken().is(tok::r_square)) { in TryParseOperatorId()
686 if (NextToken().is(tok::r_square)) { in TryParseOperatorId()
694 if (NextToken().is(tok::r_paren)) { in TryParseOperatorId()
807 (Tok.is(tok::annot_cxxscope) && (NextToken().is(tok::identifier) || in TryParseDeclarator()
808 NextToken().is(tok::kw_operator)))) && in TryParseDeclarator()
825 (Tok.is(tok::ellipsis) && NextToken().is(tok::r_paren)) || in TryParseDeclarator()
1150 const Token &Next = NextToken(); in isCXXDeclarationSpecifier()
[all …]
DParseDecl.cpp287 const Token &Next = NextToken(); in ParseAttributeArgsCommon()
447 } else if (NextToken().is(tok::comma) || NextToken().is(tok::r_paren)) { in ParseMicrosoftDeclSpecArgs()
460 if (!NextToken().is(tok::equal)) in ParseMicrosoftDeclSpecArgs()
1302 assert(Tok.is(tok::l_square) && NextToken().is(tok::l_square)); in DiagnoseProhibitedCXX11Attribute()
1333 assert((Tok.is(tok::l_square) && NextToken().is(tok::l_square)) || in DiagnoseMisplacedCXX11Attribute()
1397 if (getLangOpts().CPlusPlus && NextToken().is(tok::kw_namespace)) { in ParseDeclaration()
1499 NextToken().is(tok::l_square); in MightBeDeclarator()
1505 switch (NextToken().getKind()) { in MightBeDeclarator()
1532 return getLangOpts().CPlusPlus11 && isCXX11VirtSpecifier(NextToken()); in MightBeDeclarator()
1582 if (Tok.isAtStartOfLine() && NextToken().is(tok::kw_namespace) && in SkipMalformedDecl()
[all …]
DParseExpr.cpp450 : NextToken(Next), AllowNonTypes(AllowNonTypes) { in CastExpressionIdValidator()
465 if (!(NextToken.is(tok::equal) || NextToken.is(tok::arrow) || in ValidateCandidate()
466 NextToken.is(tok::period))) in ValidateCandidate()
478 Token NextToken; member in __anon973b23200111::CastExpressionIdValidator
743 const Token &Next = NextToken(); in ParseCastExpression()
870 (NextToken().is(tok::colon) || NextToken().is(tok::r_square))) || in ParseCastExpression()
885 const Token& Next = NextToken(); in ParseCastExpression()
1158 Token Next = NextToken(); in ParseCastExpression()
1340 (NextToken().is(tok::colon) || NextToken().is(tok::r_square))) { in ParsePostfixExpressionSuffix()
2184 (NextToken().is(tok::colon) || NextToken().is(tok::r_square))) { in ParseParenExpression()
[all …]
DParser.cpp167 NextToken().is(tok::semi)) { in ExpectAndConsumeSemi()
715 if (getLangOpts().CPlusPlus && NextToken().is(tok::kw_template)) { in ParseExternalDeclaration()
725 tok::TokenKind NextKind = NextToken().getKind(); in ParseExternalDeclaration()
745 if (getLangOpts().CPlusPlus && NextToken().is(tok::kw_template)) { in ParseExternalDeclaration()
780 const Token &KW = NextToken(); in isDeclarationAfterDeclarator()
807 const Token &KW = NextToken(); in isStartOfFunctionDefinition()
1359 Token Next = NextToken(); in TryAnnotateName()
1483 if (getLangOpts().MSVCCompat && NextToken().is(tok::kw_typedef)) { in TryAnnotateTypeOrScopeToken()
1592 NextToken().is(tok::period), in TryAnnotateTypeOrScopeTokenAfterScopeSpec()
1623 if (NextToken().is(tok::less)) { in TryAnnotateTypeOrScopeTokenAfterScopeSpec()
[all …]
DParseExprCXX.cpp227 tok::TokenKind NextKind = NextToken().getKind(); in ParseOptionalCXXScopeSpecifier()
371 if (Tok.is(tok::annot_template_id) && NextToken().is(tok::coloncolon)) { in ParseOptionalCXXScopeSpecifier()
429 Token Next = NextToken(); in ParseOptionalCXXScopeSpecifier()
457 Next = NextToken(); // Point Next at the '{' token. in ParseOptionalCXXScopeSpecifier()
742 const Token Next = NextToken(), After = GetLookAheadToken(2); in TryParseLambdaExpression()
797 (NextToken().is(tok::comma) || NextToken().is(tok::r_square))) { in ParseLambdaIntroducer()
1165 (Tok.is(tok::l_square) && NextToken().is(tok::l_square))) { in ParseLambdaExpressionAfterIntroducer()
1285 Token Next = NextToken(); in ParseCXXCasts()
2165 (!getLangOpts().CPlusPlus11 || NextToken().isNot(tok::l_square))) { in ParseUnqualifiedIdOperator()
2523 if (!TemplateSpecified && NextToken().is(tok::coloncolon)) { in ParseUnqualifiedId()
[all …]
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime.Tests/
DRewriteRuleXxxxStreamFixture.cs182 tokenTest.NextToken(); in CheckRRTokenStreamBehaviourWhileEmpty3()
212 IToken returnedToken = tokenTest.NextToken(); in CheckRRTokenStreamBehaviourWithElements()
237 returnedToken = tokenTest.NextToken(); in CheckRRTokenStreamBehaviourWithElements()
242 returnedToken = tokenTest.NextToken(); in CheckRRTokenStreamBehaviourWithElements()
248 tokenTest.NextToken(); in CheckRRTokenStreamBehaviourWithElements()
/external/clang/lib/ASTMatchers/Dynamic/
DParser.cpp63 NextToken = getNextToken(); in CodeTokenizer()
70 NextToken = getNextToken(); in CodeTokenizer()
74 const TokenInfo &peekNextToken() const { return NextToken; } in peekNextToken()
78 TokenInfo ThisToken = NextToken; in consumeNextToken()
79 NextToken = getNextToken(); in consumeNextToken()
83 TokenInfo::TokenKind nextTokenKind() const { return NextToken.Kind; } in nextTokenKind()
256 TokenInfo NextToken; member in clang::ast_matchers::dynamic::Parser::CodeTokenizer
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Test/SlimParsing/
DSlimLexer.cs129 public virtual SlimToken NextToken() in NextToken() method in Antlr.Runtime.SlimLexer
174 IToken ITokenSource.NextToken() in ITokenSource.NextToken()
176 return NextToken(); in ITokenSource.NextToken()
DITokenSource`1.cs39 new T NextToken(); in NextToken() method
DSlimTokenStream.cs119 SlimToken t = _tokenSource.NextToken(); in FillBuffer()
126 t = _tokenSource.NextToken(); in FillBuffer()
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/
DITokenSource.cs61 IToken NextToken(); in NextToken() method
DLegacyCommonTokenStream.cs140 IToken t = _tokenSource.NextToken(); in FillBuffer()
172 t = _tokenSource.NextToken(); in FillBuffer()
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
DITokenSource.cs62 IToken NextToken(); in NextToken() method
DUnbufferedTokenStream.cs79 IToken t = this.tokenSource.NextToken(); in NextElement()
DLegacyCommonTokenStream.cs133 IToken t = _tokenSource.NextToken(); in FillBuffer()
160 t = _tokenSource.NextToken(); in FillBuffer()

123