mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:17:36 +00:00
LibCpp: Parse sizeof() expression
This commit is contained in:
parent
8bcf5daf3f
commit
fc503b1368
4 changed files with 44 additions and 1 deletions
|
@ -715,4 +715,18 @@ public:
|
|||
RefPtr<Expression> m_expression;
|
||||
};
|
||||
|
||||
class SizeofExpression : public Expression {
|
||||
public:
|
||||
SizeofExpression(ASTNode* parent, Optional<Position> start, Optional<Position> end, const String& filename)
|
||||
: Expression(parent, start, end, filename)
|
||||
{
|
||||
}
|
||||
|
||||
virtual ~SizeofExpression() override = default;
|
||||
virtual const char* class_name() const override { return "SizeofExpression"; }
|
||||
virtual void dump(size_t indent) const override;
|
||||
|
||||
RefPtr<Type> m_type;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue