ASTOptimizer applies an optimization over an AST and returns the optimized result.
| 259 | |
| 260 | // ASTOptimizer applies an optimization over an AST and returns the optimized result. |
| 261 | type ASTOptimizer interface { |
| 262 | // Optimize optimizes a type-checked AST within an Environment and accumulates any issues. |
| 263 | Optimize(*OptimizerContext, *ast.AST) *ast.AST |
| 264 | } |
| 265 | |
| 266 | type optimizerExprFactory struct { |
| 267 | *idGenerator |
no outgoing calls
no test coverage detected