code: public void runWholeFilesetPasses(SoyFileSetNode soyTree, TemplateRegistry templateRegistry) {
      ImmutableList<SoyFileNode> sourceFiles = ImmutableList.copyOf(soyTree.getChildren());
      IdGenerator idGenerator = soyTree.getNodeIdGenerator();
      for (CompilerFileSetPass pass : crossTemplateCheckingPasses) {
        CompilerFileSetPass.Result result = pass.run(sourceFiles, idGenerator, templateRegistry);
        if (result == CompilerFileSetPass.Result.STOP) {
          break;
        }
      }
    }
docs: Runs all the fileset passes including the autoescaper and optimization passes if configured.