mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:37:35 +00:00
LibJS: Remove variables from FunctionNode
They weren't consumed anywhere outside the AST and went against the usual concept of having declaration in ScopeNode.
This commit is contained in:
parent
e0c9f58b0c
commit
72f8d90dc5
3 changed files with 9 additions and 21 deletions
|
@ -1310,13 +1310,6 @@ void FunctionNode::dump(int indent, String const& class_name) const
|
|||
parameter.default_value->dump(indent + 3);
|
||||
}
|
||||
}
|
||||
if (!m_variables.is_empty()) {
|
||||
print_indent(indent + 1);
|
||||
outln("(Variables)");
|
||||
|
||||
for (auto& variable : m_variables)
|
||||
variable.dump(indent + 2);
|
||||
}
|
||||
print_indent(indent + 1);
|
||||
outln("(Body)");
|
||||
body().dump(indent + 2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue