Package com.google.javascript.jscomp
Class PassConfig
java.lang.Object
com.google.javascript.jscomp.PassConfig
- Direct Known Subclasses:
DefaultPassConfig
,PassConfig.PassConfigDelegate
Pass factories and meta-data for native Compiler passes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Different ways to split optimization passes.static class
An implementation of PassConfig that just proxies all its method calls into an inner class. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract PassListBuilder
Gets the checking passes to run.protected abstract PassListBuilder
Gets the finalization passes to run.protected abstract PassListBuilder
getOptimizations
(PassConfig.OptimizationPasses optimizationPasses) Gets the optimization passes to run.protected PassListBuilder
Gets the transpilation passesprotected PassListBuilder
Gets additional checking passes that are run always, even in "whitespace only" mode.
-
Field Details
-
options
-
-
Constructor Details
-
PassConfig
-
-
Method Details
-
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
Gets the transpilation passes -
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 PassListBuilder getOptimizations(PassConfig.OptimizationPasses optimizationPasses) Gets the optimization passes to run.Optimization passes revolve around producing smaller and faster code. They should always run after checking passes.
-
getFinalizations
Gets the finalization passes to run.Finalization passes include the injection of locale-specific code and converting the AST to its final form for output.
-