mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 19:19:30 +00:00
LibCpp: Check if type is null in VariableDeclaration::dump
This commit is contained in:
parent
e0e8c6f70e
commit
a2ac86f5e1
Notes:
sideshowbarker
2024-07-18 21:41:43 +09:00
Author: https://github.com/itamar8910
Commit: a2ac86f5e1
Pull-request: https://github.com/SerenityOS/serenity/pull/5654
Issue: https://github.com/SerenityOS/serenity/issues/5569
Issue: https://github.com/SerenityOS/serenity/issues/5574
Issue: https://github.com/SerenityOS/serenity/issues/5634
1 changed files with 2 additions and 1 deletions
|
@ -127,7 +127,8 @@ NonnullRefPtrVector<Declaration> FunctionDefinition::declarations() const
|
|||
void VariableDeclaration::dump(size_t indent) const
|
||||
{
|
||||
ASTNode::dump(indent);
|
||||
m_type->dump(indent + 1);
|
||||
if (m_type)
|
||||
m_type->dump(indent + 1);
|
||||
print_indent(indent + 1);
|
||||
outln("{}", m_name);
|
||||
if (m_initial_value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue