Add some extra methods to MatchExpression
This commit is contained in:
parent
1d2306513e
commit
d4af7f5059
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue