mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:37:45 +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
|
@ -729,4 +729,17 @@ public:
|
|||
RefPtr<Type> m_type;
|
||||
};
|
||||
|
||||
class BracedInitList : public Expression {
|
||||
public:
|
||||
BracedInitList(ASTNode* parent, Optional<Position> start, Optional<Position> end, const String& filename)
|
||||
: Expression(parent, start, end, filename)
|
||||
{
|
||||
}
|
||||
|
||||
virtual ~BracedInitList() override = default;
|
||||
virtual const char* class_name() const override { return "BracedInitList"; }
|
||||
virtual void dump(size_t indent) const override;
|
||||
|
||||
NonnullRefPtrVector<Expression> m_expressions;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue