1
Fork 0
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:
Itamar 2021-04-02 10:49:12 +03:00 committed by Andreas Kling
parent 8bcf5daf3f
commit fc503b1368
4 changed files with 44 additions and 1 deletions

View file

@ -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;
};
}