mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:27: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,6 +127,7 @@ NonnullRefPtrVector<Declaration> FunctionDefinition::declarations() const
|
||||||
void VariableDeclaration::dump(size_t indent) const
|
void VariableDeclaration::dump(size_t indent) const
|
||||||
{
|
{
|
||||||
ASTNode::dump(indent);
|
ASTNode::dump(indent);
|
||||||
|
if (m_type)
|
||||||
m_type->dump(indent + 1);
|
m_type->dump(indent + 1);
|
||||||
print_indent(indent + 1);
|
print_indent(indent + 1);
|
||||||
outln("{}", m_name);
|
outln("{}", m_name);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue