mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:18:12 +00:00
LibJS: Don't dump variables multiple times in AST dumps
This commit is contained in:
parent
1d29f9081f
commit
aada76d0fb
1 changed files with 0 additions and 21 deletions
|
@ -479,27 +479,6 @@ void ASTNode::dump(int indent) const
|
|||
void ScopeNode::dump(int indent) const
|
||||
{
|
||||
ASTNode::dump(indent);
|
||||
if (!m_lexical_declarations.is_empty()) {
|
||||
print_indent(indent + 1);
|
||||
outln("(Lexical declarations)");
|
||||
for (auto& declaration : m_lexical_declarations)
|
||||
declaration->dump(indent + 2);
|
||||
}
|
||||
|
||||
if (!m_var_declarations.is_empty()) {
|
||||
print_indent(indent + 1);
|
||||
outln("(Variable declarations)");
|
||||
for (auto& declaration : m_var_declarations)
|
||||
declaration->dump(indent + 2);
|
||||
}
|
||||
|
||||
if (!m_functions_hoistable_with_annexB_extension.is_empty()) {
|
||||
print_indent(indent + 1);
|
||||
outln("(Hoisted functions via annexB extension)");
|
||||
for (auto& declaration : m_functions_hoistable_with_annexB_extension)
|
||||
declaration->dump(indent + 2);
|
||||
}
|
||||
|
||||
if (!m_children.is_empty()) {
|
||||
print_indent(indent + 1);
|
||||
outln("(Children)");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue