Package com.google.javascript.jscomp
Class PassConfig
java.lang.Object
com.google.javascript.jscomp.PassConfig
- Direct Known Subclasses:
DefaultPassConfig
Pass factories and meta-data for native Compiler passes.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Intermediate state for a running pass configuration. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract List<PassFactory>
Gets the checking passes to run.protected abstract PassConfig.State
Get intermediate state for a running pass config, so it can be paused and started again later.protected abstract List<PassFactory>
Gets the optimization passes to run.protected abstract void
Set the intermediate state for a pass config, to restart a compilation process that had been previously paused.
-
Constructor Details
-
PassConfig
-
-
Method Details
-
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
Gets the optimization passes to run. Optimization passes revolve around producing smaller and faster code. They should always run after checking passes. -
getIntermediateState
Get intermediate state for a running pass config, so it can be paused and started again later. -
setIntermediateState
Set the intermediate state for a pass config, to restart a compilation process that had been previously paused.
-