You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it's unclear currently why some objects have .optimize() method while some do not. Examples of some that do include: Ast.Input and Ast.BooleanExpression, while those that don't include Ast.Expression and Ast.Statement. However, it seems if an object does not have such a method, you can find a function in optimize.ts that provides the functionality. This inconsistency can be confusing to developers.
If it makes sense to add an .optimize() method for all nodes, I believe we should go ahead and do it.
The text was updated successfully, but these errors were encountered:
it's unclear currently why some objects have
.optimize()
method while some do not. Examples of some that do include:Ast.Input
andAst.BooleanExpression
, while those that don't includeAst.Expression
andAst.Statement
. However, it seems if an object does not have such a method, you can find a function inoptimize.ts
that provides the functionality. This inconsistency can be confusing to developers.If it makes sense to add an
.optimize()
method for all nodes, I believe we should go ahead and do it.The text was updated successfully, but these errors were encountered: