1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:17:45 +00:00

JSSpecCompiler: Make nodes inherit from Statement or Expression

The distinction between them will become important during CFG building.
This commit is contained in:
Dan Klishch 2023-08-19 14:05:36 -04:00 committed by Andrew Kaster
parent ed5ef4da6d
commit 326bac19d9
5 changed files with 37 additions and 25 deletions

View file

@ -16,16 +16,17 @@ class NodeSubtreePointer;
class Node;
using NullableTree = RefPtr<Node>;
using Tree = NonnullRefPtr<Node>;
class Statement;
class Expression;
class ErrorNode;
class ScopedBlock;
class MathematicalConstant;
class StringLiteral;
class BinaryOperation;
class UnaryOperation;
class IsOneOfOperation;
class UnresolvedReference;
class ReturnExpression;
class ReturnNode;
class AssertExpression;
class IfBranch;
class ElseIfBranch;