mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +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
|
@ -49,7 +49,7 @@ Vector<NodeSubtreePointer> IsOneOfOperation::subtrees()
|
|||
return result;
|
||||
}
|
||||
|
||||
Vector<NodeSubtreePointer> ReturnExpression::subtrees()
|
||||
Vector<NodeSubtreePointer> ReturnNode::subtrees()
|
||||
{
|
||||
return { { &m_return_value } };
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue