Package com.google.javascript.jscomp
Class DefaultPassConfig
java.lang.Object
com.google.javascript.jscomp.PassConfig
com.google.javascript.jscomp.DefaultPassConfig
Pass factories and meta-data for native JSCompiler passes.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.javascript.jscomp.PassConfig
PassConfig.State -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<PassFactory>Gets the checking passes to run.protected PassConfig.StateGet intermediate state for a running pass config, so it can be paused and started again later.protected List<PassFactory>Gets the optimization passes to run.protected voidSet the intermediate state for a pass config, to restart a compilation process that had been previously paused.
-
Constructor Details
-
DefaultPassConfig
-
-
Method Details
-
getIntermediateState
Description copied from class:PassConfigGet intermediate state for a running pass config, so it can be paused and started again later.- Specified by:
getIntermediateStatein classPassConfig
-
setIntermediateState
Description copied from class:PassConfigSet the intermediate state for a pass config, to restart a compilation process that had been previously paused.- Specified by:
setIntermediateStatein classPassConfig
-
getChecks
Description copied from class:PassConfigGets 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.- Specified by:
getChecksin classPassConfig
-
getOptimizations
Description copied from class:PassConfigGets the optimization passes to run. Optimization passes revolve around producing smaller and faster code. They should always run after checking passes.- Specified by:
getOptimizationsin classPassConfig
-