1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:07:34 +00:00

LibCpp: Parse nullptr literal

This commit is contained in:
Itamar 2021-03-28 10:40:20 +03:00 committed by Andreas Kling
parent cbb49f26d9
commit 9954a1837f
3 changed files with 27 additions and 4 deletions

View file

@ -341,6 +341,20 @@ public:
StringView m_value;
};
class NullPointerLiteral : public Expression {
public:
virtual ~NullPointerLiteral() override = default;
virtual const char* class_name() const override { return "NullPointerLiteral"; }
virtual void dump(size_t indent) const override;
NullPointerLiteral(ASTNode* parent, Optional<Position> start, Optional<Position> end, const String& filename)
: Expression(parent, start, end, filename)
{
}
};
class BooleanLiteral : public Expression {
public:
virtual ~BooleanLiteral() override = default;