Lines Matching refs:Parser
37 struct Parser::TokenInfo {
65 const char* const Parser::TokenInfo::ID_Bind = "bind";
66 const char *const Parser::TokenInfo::ID_With = "with";
69 class Parser::CodeTokenizer {
321 Parser::Sema::~Sema() = default;
323 std::vector<ArgKind> Parser::Sema::getAcceptedCompletionTypes( in getAcceptedCompletionTypes()
329 Parser::Sema::getMatcherCompletions(llvm::ArrayRef<ArgKind> AcceptedTypes) { in getMatcherCompletions()
333 struct Parser::ScopedContextEntry {
334 Parser *P;
336 ScopedContextEntry(Parser *P, MatcherCtor C) : P(P) { in ScopedContextEntry()
354 bool Parser::parseIdentifierPrefixImpl(VariantValue *Value) { in parseIdentifierPrefixImpl()
445 bool Parser::parseBindID(std::string &BindID) { in parseBindID()
469 bool Parser::parseMatcherBuilder(MatcherCtor Ctor, const TokenInfo &NameToken, in parseMatcherBuilder()
627 bool Parser::parseMatcherExpressionImpl(const TokenInfo &NameToken, in parseMatcherExpressionImpl()
736 void Parser::addCompletion(const TokenInfo &CompToken, in addCompletion()
745 std::vector<MatcherCompletion> Parser::getNamedValueCompletions( in getNamedValueCompletions()
760 void Parser::addExpressionCompletions() { in addExpressionCompletions()
784 bool Parser::parseExpressionImpl(VariantValue *Value) { in parseExpressionImpl()
820 static llvm::ManagedStatic<Parser::RegistrySema> DefaultRegistrySema;
822 Parser::Parser(CodeTokenizer *Tokenizer, Sema *S, in Parser() function in clang::ast_matchers::dynamic::Parser
827 Parser::RegistrySema::~RegistrySema() = default;
830 Parser::RegistrySema::lookupMatcherCtor(StringRef MatcherName) { in lookupMatcherCtor()
834 VariantMatcher Parser::RegistrySema::actOnMatcherExpression( in actOnMatcherExpression()
845 std::vector<ArgKind> Parser::RegistrySema::getAcceptedCompletionTypes( in getAcceptedCompletionTypes()
850 std::vector<MatcherCompletion> Parser::RegistrySema::getMatcherCompletions( in getMatcherCompletions()
855 bool Parser::RegistrySema::isBuilderMatcher(MatcherCtor Ctor) const { in isBuilderMatcher()
859 ASTNodeKind Parser::RegistrySema::nodeMatcherType(MatcherCtor Ctor) const { in nodeMatcherType()
864 Parser::RegistrySema::buildMatcherCtor(MatcherCtor Ctor, SourceRange NameRange, in buildMatcherCtor()
870 bool Parser::parseExpression(StringRef &Code, Sema *S, in parseExpression()
874 if (!Parser(&Tokenizer, S, NamedValues, Error).parseExpressionImpl(Value)) in parseExpression()
886 Parser::completeExpression(StringRef &Code, unsigned CompletionOffset, Sema *S, in completeExpression()
890 Parser P(&Tokenizer, S, NamedValues, &Error); in completeExpression()
906 Parser::parseMatcherExpression(StringRef &Code, Sema *S, in parseMatcherExpression()