aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvvvv <vvvv@yandex-team.com>2025-02-05 17:37:04 +0300
committervvvv <vvvv@yandex-team.com>2025-02-05 17:58:03 +0300
commit40f48fbbc1b2801b2a79115a1a345d3ca63509fb (patch)
tree2a61aaf7129ecbbb6346b39ea24c03a528abfc4f
parentb88a376d036ecf651261c1fd0357d78d151e0877 (diff)
downloadydb-40f48fbbc1b2801b2a79115a1a345d3ca63509fb.tar.gz
YQL-19552 a fix for generic visits
commit_hash:b48eef46deb28cf3708b695b8c45bc642ee7e5b7
-rw-r--r--yql/essentials/ast/yql_expr.cpp4
-rw-r--r--yql/essentials/ast/yql_expr.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/yql/essentials/ast/yql_expr.cpp b/yql/essentials/ast/yql_expr.cpp
index dc05218ad4..21d0b9a446 100644
--- a/yql/essentials/ast/yql_expr.cpp
+++ b/yql/essentials/ast/yql_expr.cpp
@@ -3950,7 +3950,7 @@ void TDefaultTypeAnnotationVisitor::Visit(const TResourceExprType& type) {
}
void TDefaultTypeAnnotationVisitor::Visit(const TTypeExprType& type) {
- Y_UNUSED(type);
+ type.GetType()->Accept(*this);
}
void TDefaultTypeAnnotationVisitor::Visit(const TDictExprType& type) {
@@ -4007,7 +4007,7 @@ void TErrorTypeVisitor::Visit(const TErrorExprType& type) {
Ctx_.IssueManager.RaiseIssue(type.GetError());
}
-bool TErrorTypeVisitor::HasErrors() {
+bool TErrorTypeVisitor::HasErrors() const {
return HasErrors_;
}
diff --git a/yql/essentials/ast/yql_expr.h b/yql/essentials/ast/yql_expr.h
index e739b95646..a64a2f9aec 100644
--- a/yql/essentials/ast/yql_expr.h
+++ b/yql/essentials/ast/yql_expr.h
@@ -155,7 +155,7 @@ class TErrorTypeVisitor : public TDefaultTypeAnnotationVisitor
public:
TErrorTypeVisitor(TExprContext& ctx);
void Visit(const TErrorExprType& type) override;
- bool HasErrors();
+ bool HasErrors() const;
private:
TExprContext& Ctx_;