@@ -122,7 +122,8 @@ enum ParsedQueryKind {
122122 PQK_Match,
123123};
124124
125- QueryRef makeInvalidQueryFromDiagnostics (const matcher::Diagnostics &diag) {
125+ QueryRef
126+ makeInvalidQueryFromDiagnostics (const matcher::internal::Diagnostics &diag) {
126127 std::string errStr;
127128 llvm::raw_string_ostream OS (errStr);
128129 diag.print (OS);
@@ -132,8 +133,8 @@ QueryRef makeInvalidQueryFromDiagnostics(const matcher::Diagnostics &diag) {
132133
133134QueryRef QueryParser::completeMatcherExpression () {
134135 std::vector<matcher::MatcherCompletion> comps =
135- matcher::Parser::completeExpression (line, completionPos - line. begin (),
136- nullptr , &QS.namedValues );
136+ matcher::internal:: Parser::completeExpression (
137+ line, completionPos - line. begin (), nullptr , &QS.namedValues );
137138 for (const auto &comp : comps) {
138139 completions.emplace_back (comp.typedText , comp.matcherDecl );
139140 }
@@ -168,12 +169,12 @@ QueryRef QueryParser::doParse() {
168169 return completeMatcherExpression ();
169170 }
170171
171- matcher::Diagnostics diag;
172+ matcher::internal:: Diagnostics diag;
172173 auto matcherSource = line.ltrim ();
173174 auto origMatcherSource = matcherSource;
174175 std::optional<matcher::DynMatcher> matcher =
175- matcher::Parser::parseMatcherExpression (matcherSource, nullptr ,
176- &QS.namedValues , &diag);
176+ matcher::internal:: Parser::parseMatcherExpression (
177+ matcherSource, nullptr , &QS.namedValues , &diag);
177178 if (!matcher) {
178179 return makeInvalidQueryFromDiagnostics (diag);
179180 }
0 commit comments