mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +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
9 changed files with 116 additions and 4 deletions
|
@ -139,7 +139,7 @@ void SlotName::dump_tree(StringBuilder& builder)
|
|||
|
||||
void Variable::dump_tree(StringBuilder& builder)
|
||||
{
|
||||
dump_node(builder, "Var {}", m_name);
|
||||
dump_node(builder, "Var {}", m_variable_declaration->m_name);
|
||||
}
|
||||
|
||||
void FunctionPointer::dump_tree(StringBuilder& builder)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue