Class PassConfig

    • Method Detail

      • getWhitespaceOnlyPasses

        protected java.util.List<PassFactory> getWhitespaceOnlyPasses()
        Gets additional checking passes that are run always, even in "whitespace only" mode. For very specific cases where processing is required even in a mode which is intended not to have any processing - specifically introduced to support goog.module() usage.
      • getTranspileOnlyPasses

        protected java.util.List<PassFactory> getTranspileOnlyPasses()
        Gets the transpilation passes
      • getChecks

        protected abstract java.util.List<PassFactory> getChecks()
        Gets the checking passes to run. Checking passes revolve around emitting warnings and errors. They also may include pre-processor passes needed to do error analysis more effectively. Clients that only want to analyze code (like IDEs) and not emit code will only run checks and not optimizations.
      • getOptimizations

        protected abstract java.util.List<PassFactory> getOptimizations()
        Gets the optimization passes to run. Optimization passes revolve around producing smaller and faster code. They should always run after checking passes.