mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-09 02:56:10 +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:
parent
541637e15a
commit
bff038411a
Notes:
sideshowbarker
2024-07-17 01:21:41 +09:00
Author: https://github.com/davidot
Commit: bff038411a
Pull-request: https://github.com/SerenityOS/serenity/pull/16630
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/linusg ✅
6 changed files with 447 additions and 77 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue