1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:17:35 +00:00

LibJS: Add using declaration support in for and for of loops

The using declarations have kind of special behavior in for loops so
this is seperated.
This commit is contained in:
davidot 2022-12-23 01:45:29 +01:00 committed by Linus Groh
parent 541637e15a
commit bff038411a
6 changed files with 447 additions and 77 deletions

View file

@ -227,6 +227,7 @@ private:
bool try_match_using_declaration() const;
bool match_variable_declaration() const;
bool match_identifier() const;
bool token_is_identifier(Token const&) const;
bool match_identifier_name() const;
bool match_property_key() const;
bool is_private_identifier_valid() const;