LibCpp: Parse C-Style parse expressions

This commit is contained in:
Itamar 2021-04-02 11:29:44 +03:00 committed by Andreas Kling
commit aa717e6a62
Notes: sideshowbarker 2024-07-18 20:41:18 +09:00
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);
}
}