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:
parent
ec2c54ee2e
commit
aa717e6a62
4 changed files with 65 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue