Add some extra methods to MatchExpression

This commit is contained in:
Sam Vervaeck 2024-07-11 10:08:25 +02:00
parent 1d2306513e
commit d4af7f5059
Signed by: samvv
SSH key fingerprint: SHA256:dIg0ywU1OP+ZYifrYxy8c5esO72cIKB+4/9wkZj1VaY

View file

@ -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;
};