Yoann Padioleau
Yoann Padioleau
I can't access your shared snippet @anshumanbh Would you mind copy pasting the rule you used and testing code, so I can try to reproduce?
Well if you could reshare a snippet from the playground that shows the issue that would help. Without the code and the pattern, I can't do much.
In theory we could even allow every rule to use the syntax of the language they are analyzing, so the metavariable-condition: would be expressed in Python or Ruby or JS...
This should be fixed by #6040
Or maybe there's something else going on.
seems related to #6031
cc @brandonspark
One possible fix is to use an intermediate variable to store the value of the expression a, so we don't repeat a each time so we map `a?.b` to `let...
This should avoid the AST explosion.
@IagoAbal could we do this rewriting? (introduce some intermediate var in the generic AST). Would this interfere with constant propagation and matching? or Let is already handled there?