code: function (ast, setting, debug) {
          let optimizer = new Optimizer(ast, setting, debug);
          optimizer.analyze();
          optimizer.optimize();
          return ast;
      }
docs: Detect & apply optimization patterns