summaryrefslogtreecommitdiffstats
path: root/yql/essentials/ast/yql_expr.h
diff options
context:
space:
mode:
authorvvvv <[email protected]>2025-07-28 11:46:56 +0300
committervvvv <[email protected]>2025-07-28 12:46:38 +0300
commit82e921685d24483f8a5b09c95f36339fe90b78dd (patch)
tree6b1e736504d06e9ccf1bf7c07fe215fd3f313b41 /yql/essentials/ast/yql_expr.h
parent59ca28d036252bccdbe709379bfc08851a130b24 (diff)
YQL-20216 position aware csse nodes
commit_hash:78445e1b3b0bb001e0d08b36fd4d31bcd9e37eb4
Diffstat (limited to 'yql/essentials/ast/yql_expr.h')
-rw-r--r--yql/essentials/ast/yql_expr.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/yql/essentials/ast/yql_expr.h b/yql/essentials/ast/yql_expr.h
index a75667766b8..8da6bbf3a1f 100644
--- a/yql/essentials/ast/yql_expr.h
+++ b/yql/essentials/ast/yql_expr.h
@@ -2208,6 +2208,14 @@ public:
return bool(UnordChildren_);
}
+ void SetPosAware() {
+ PosAware_ = 1;
+ }
+
+ bool IsPosAware() const {
+ return PosAware_;
+ }
+
~TExprNode() {
Y_ABORT_UNLESS(Dead(), "Node (id: %lu, type: %s, content: '%s') not dead on destruction.",
UniqueId_, ToString(Type_).data(), TString(ContentUnchecked()).data());
@@ -2242,6 +2250,7 @@ private:
, UnordChildren_(0)
, ShallBeDisclosed_(0)
, LiteralList_(0)
+ , PosAware_(0)
{}
TExprNode(const TExprNode&) = delete;
@@ -2311,6 +2320,7 @@ private:
ui8 UnordChildren_ : 1; // NOLINT(readability-identifier-naming)
ui8 ShallBeDisclosed_ : 1; // NOLINT(readability-identifier-naming)
ui8 LiteralList_ : 1; // NOLINT(readability-identifier-naming)
+ ui8 PosAware_ : 1; // NOLINT(readability-identifier-naming)
};
};