diff --git a/include/bolt/CST.hpp b/include/bolt/CST.hpp index f36209a90..01713a539 100644 --- a/include/bolt/CST.hpp +++ b/include/bolt/CST.hpp @@ -1873,6 +1873,14 @@ public: Token* getFirstToken() const override; Token* getLastToken() const override; + inline bool hasValue() const { + return Value; + } + + Expression* getValue() const { + return Value; + } + static constexpr const NodeKind Kind = NodeKind::MatchExpression; };