mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibCpp: Parse C-Style parse expressions
This commit is contained in:
parent
ec2c54ee2e
commit
aa717e6a62
Notes:
sideshowbarker
2024-07-18 20:41:18 +09:00
Author: https://github.com/itamar8910
Commit: aa717e6a62
Pull-request: https://github.com/SerenityOS/serenity/pull/6009
4 changed files with 65 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue