Open lochana-chathura opened 2 years ago
I think Option 1 is the safest and easy to migrate.
First, we extend the BracedExpressionNode with ParenthesisedExpressionNode and deprecate it. Also, we can update the usage of BracedExpressionNode to ParenthesisedExpressionNode. After one or two updates we can remove the BracedExpressionNode.
Description: $subject.
We can have the two nodes with an is-a relationship. e.g. Renaming
BracedExpressionNode
toParenthesisedExpressionNode
BracedExpressionNode extends ParenthesisedExpressionNode
BracedExpressionNode
methods to consumeParenthesisedExpressionNode
methods underneath. If the method names also have changed.Need to evaluate if this causes a lot of complications with treeModifiers, transformers, etc.
Also, we need to find a way to allow it via treegen.