diff --git a/Userland/Libraries/LibJS/AST.h b/Userland/Libraries/LibJS/AST.h index 6cdedaf2f0..ec79b117bf 100644 --- a/Userland/Libraries/LibJS/AST.h +++ b/Userland/Libraries/LibJS/AST.h @@ -66,6 +66,7 @@ public: virtual bool is_class_expression() const { return false; } virtual bool is_expression_statement() const { return false; } virtual bool is_identifier() const { return false; } + virtual bool is_private_identifier() const { return false; } virtual bool is_scope_node() const { return false; } virtual bool is_program() const { return false; } virtual bool is_class_declaration() const { return false; } @@ -2089,6 +2090,9 @@ inline bool ASTNode::fast_is() const { return is_class_expressi template<> inline bool ASTNode::fast_is() const { return is_identifier(); } +template<> +inline bool ASTNode::fast_is() const { return is_private_identifier(); } + template<> inline bool ASTNode::fast_is() const { return is_expression_statement(); }