mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:37:34 +00:00
LibCpp: Parse braced initialization list
This commit is contained in:
parent
d482b3fd60
commit
44833f1621
4 changed files with 51 additions and 10 deletions
|
@ -536,8 +536,16 @@ void CppCastExpression::dump(size_t indent) const
|
|||
void SizeofExpression::dump(size_t indent) const
|
||||
{
|
||||
ASTNode::dump(indent);
|
||||
if(m_type)
|
||||
m_type->dump(indent+1);
|
||||
if (m_type)
|
||||
m_type->dump(indent + 1);
|
||||
}
|
||||
|
||||
void BracedInitList::dump(size_t indent) const
|
||||
{
|
||||
ASTNode::dump(indent);
|
||||
for (auto& exp : m_expressions) {
|
||||
exp.dump(indent+1);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue