Lines Matching refs:Tokenizer
294 const TokenInfo NameToken = Tokenizer->consumeNextToken(); in parseIdentifierPrefixImpl()
296 if (Tokenizer->nextTokenKind() != TokenInfo::TK_OpenParen) { in parseIdentifierPrefixImpl()
306 if ((Tokenizer->nextTokenKind() == TokenInfo::TK_Comma || in parseIdentifierPrefixImpl()
307 Tokenizer->nextTokenKind() == TokenInfo::TK_CloseParen || in parseIdentifierPrefixImpl()
308 Tokenizer->nextTokenKind() == TokenInfo::TK_Eof) && in parseIdentifierPrefixImpl()
328 const TokenInfo OpenToken = Tokenizer->consumeNextToken(); in parseMatcherExpressionImpl()
349 while (Tokenizer->nextTokenKind() != TokenInfo::TK_Eof) { in parseMatcherExpressionImpl()
350 if (Tokenizer->nextTokenKind() == TokenInfo::TK_CloseParen) { in parseMatcherExpressionImpl()
352 EndToken = Tokenizer->consumeNextToken(); in parseMatcherExpressionImpl()
357 const TokenInfo CommaToken = Tokenizer->consumeNextToken(); in parseMatcherExpressionImpl()
369 ArgValue.Text = Tokenizer->peekNextToken().Text; in parseMatcherExpressionImpl()
370 ArgValue.Range = Tokenizer->peekNextToken().Range; in parseMatcherExpressionImpl()
386 if (Tokenizer->peekNextToken().Kind == TokenInfo::TK_Period) { in parseMatcherExpressionImpl()
388 Tokenizer->consumeNextToken(); // consume the period. in parseMatcherExpressionImpl()
389 const TokenInfo BindToken = Tokenizer->consumeNextToken(); in parseMatcherExpressionImpl()
395 const TokenInfo OpenToken = Tokenizer->consumeNextToken(); in parseMatcherExpressionImpl()
396 const TokenInfo IDToken = Tokenizer->consumeNextToken(); in parseMatcherExpressionImpl()
397 const TokenInfo CloseToken = Tokenizer->consumeNextToken(); in parseMatcherExpressionImpl()
464 const TokenInfo CompToken = Tokenizer->consumeNextToken(); in addExpressionCompletions()
488 switch (Tokenizer->nextTokenKind()) { in parseExpressionImpl()
490 *Value = Tokenizer->consumeNextToken().Value; in parseExpressionImpl()
501 Error->addError(Tokenizer->consumeNextToken().Range, in parseExpressionImpl()
514 const TokenInfo Token = Tokenizer->consumeNextToken(); in parseExpressionImpl()
524 Parser::Parser(CodeTokenizer *Tokenizer, Sema *S, in Parser() argument
526 : Tokenizer(Tokenizer), S(S ? S : &*DefaultRegistrySema), in Parser()
560 CodeTokenizer Tokenizer(Code, Error); in parseExpression() local
561 if (!Parser(&Tokenizer, S, NamedValues, Error).parseExpressionImpl(Value)) in parseExpression()
563 if (Tokenizer.peekNextToken().Kind != TokenInfo::TK_Eof) { in parseExpression()
564 Error->addError(Tokenizer.peekNextToken().Range, in parseExpression()
575 CodeTokenizer Tokenizer(Code, &Error, CompletionOffset); in completeExpression() local
576 Parser P(&Tokenizer, S, NamedValues, &Error); in completeExpression()