1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:57:43 +00:00

LibCpp: Parse C-Style parse expressions

This commit is contained in:
Itamar 2021-04-02 11:29:44 +03:00 committed by Andreas Kling
parent ec2c54ee2e
commit aa717e6a62
4 changed files with 65 additions and 3 deletions

View file

@ -386,8 +386,6 @@ public:
}
};
class BooleanLiteral : public Expression {
public:
virtual ~BooleanLiteral() override = default;
@ -716,6 +714,21 @@ public:
RefPtr<Expression> m_expression;
};
class CStyleCastExpression : public Expression {
public:
CStyleCastExpression(ASTNode* parent, Optional<Position> start, Optional<Position> end, const String& filename)
: Expression(parent, start, end, filename)
{
}
virtual ~CStyleCastExpression() override = default;
virtual const char* class_name() const override { return "CStyleCastExpression"; }
virtual void dump(size_t indent) const override;
RefPtr<Type> m_type;
RefPtr<Expression> m_expression;
};
class SizeofExpression : public Expression {
public:
SizeofExpression(ASTNode* parent, Optional<Position> start, Optional<Position> end, const String& filename)