mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:57:45 +00:00
LibCpp: Check if type is null in VariableDeclaration::dump
This commit is contained in:
parent
e0e8c6f70e
commit
a2ac86f5e1
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