mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
JSSpecCompiler: Add reference resolving pass
It replaces UnresolvedReference with Variable, FunctionPointer, or SlotName nodes. Also, it gathers all variable names from their declarations.
This commit is contained in:
parent
326bac19d9
commit
81519975c5
Notes:
sideshowbarker
2024-07-17 22:01:16 +09:00
Author: https://github.com/DanShaders
Commit: 81519975c5
Pull-request: https://github.com/SerenityOS/serenity/pull/21005
Reviewed-by: https://github.com/ADKaster ✅
9 changed files with 116 additions and 4 deletions
|
@ -13,6 +13,7 @@ Function::Function(ExecutionContext* context, StringView name, Tree ast)
|
|||
: m_context(context)
|
||||
, m_name(name)
|
||||
, m_ast(move(ast))
|
||||
, m_return_value(make_ref_counted<VariableDeclaration>("$return"sv))
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue