Fix PatternVisitor compilation in toolchain-v5 (#1803)

This commit is contained in:
Aidar Samerkhanov 2024-03-09 07:20:40 +04:00 committed by GitHub
parent 2a5388cea9
commit 1c71d605ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -660,6 +660,10 @@ void PatternVisitor::Visit(Exists &op) {
std::vector<FilterMatching> PatternVisitor::getFilterMatchings() { return filter_matchings_; } std::vector<FilterMatching> PatternVisitor::getFilterMatchings() { return filter_matchings_; }
std::vector<PatternComprehensionMatching> PatternVisitor::getPatternComprehensionMatchings() {
return pattern_comprehension_matchings_;
}
static void ParseForeach(query::Foreach &foreach, SingleQueryPart &query_part, AstStorage &storage, static void ParseForeach(query::Foreach &foreach, SingleQueryPart &query_part, AstStorage &storage,
SymbolTable &symbol_table) { SymbolTable &symbol_table) {
for (auto *clause : foreach.clauses_) { for (auto *clause : foreach.clauses_) {

View File

@ -239,9 +239,7 @@ class PatternVisitor : public ExpressionVisitor<void> {
void Visit(PatternComprehension &op) override; void Visit(PatternComprehension &op) override;
std::vector<FilterMatching> getFilterMatchings(); std::vector<FilterMatching> getFilterMatchings();
std::vector<PatternComprehensionMatching> getPatternComprehensionMatchings() { std::vector<PatternComprehensionMatching> getPatternComprehensionMatchings();
return pattern_comprehension_matchings_;
}
SymbolTable &symbol_table_; SymbolTable &symbol_table_;
AstStorage &storage_; AstStorage &storage_;