mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:27:35 +00:00
LibJS: Add support for arrow functions
This commit is contained in:
parent
f90da71d28
commit
098f1cd0ca
5 changed files with 144 additions and 1 deletions
|
@ -67,6 +67,7 @@ public:
|
|||
NonnullRefPtr<Expression> parse_secondary_expression(NonnullRefPtr<Expression>, int min_precedence, Associativity associate = Associativity::Right);
|
||||
NonnullRefPtr<CallExpression> parse_call_expression(NonnullRefPtr<Expression>);
|
||||
NonnullRefPtr<NewExpression> parse_new_expression();
|
||||
RefPtr<FunctionExpression> try_parse_arrow_function_expression(bool expect_parens);
|
||||
|
||||
bool has_errors() const { return m_parser_state.m_has_errors; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue