mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:37:45 +00:00
LibCpp: Parse nullptr literal
This commit is contained in:
parent
cbb49f26d9
commit
9954a1837f
3 changed files with 27 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue