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:
parent
ed5ef4da6d
commit
326bac19d9
5 changed files with 37 additions and 25 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue