1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 07:45:07 +00:00

LibCpp: Parse C-Style parse expressions

This commit is contained in:
Itamar 2021-04-02 11:29:44 +03:00 committed by Andreas Kling
parent ec2c54ee2e
commit aa717e6a62
4 changed files with 65 additions and 3 deletions

View file

@ -547,8 +547,17 @@ void BracedInitList::dump(size_t indent) const
{
ASTNode::dump(indent);
for (auto& exp : m_expressions) {
exp.dump(indent+1);
exp.dump(indent + 1);
}
}
void CStyleCastExpression::dump(size_t indent) const
{
ASTNode::dump(indent);
if (m_type)
m_type->dump(indent + 1);
if (m_expression)
m_expression->dump(indent + 1);
}
}