Package com.google.javascript.jscomp
Class PassConfig.PassConfigDelegate
- java.lang.Object
-
- com.google.javascript.jscomp.PassConfig
-
- com.google.javascript.jscomp.PassConfig.PassConfigDelegate
-
- Direct Known Subclasses:
CheckExtraRequiresPassConfig
,ConformancePassConfig
- Enclosing class:
- PassConfig
public static class PassConfig.PassConfigDelegate extends PassConfig
An implementation of PassConfig that just proxies all its method calls into an inner class.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.javascript.jscomp.PassConfig
PassConfig.PassConfigDelegate
-
-
Field Summary
-
Fields inherited from class com.google.javascript.jscomp.PassConfig
options
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PassConfigDelegate(PassConfig delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PassListBuilder
getChecks()
Gets the checking passes to run.protected PassListBuilder
getFinalizations()
Gets the finalization passes to run.protected PassListBuilder
getOptimizations()
Gets the optimization passes to run.protected PassListBuilder
getTranspileOnlyPasses()
Gets the transpilation passesprotected PassListBuilder
getWhitespaceOnlyPasses()
Gets additional checking passes that are run always, even in "whitespace only" mode.
-
-
-
Constructor Detail
-
PassConfigDelegate
protected PassConfigDelegate(PassConfig delegate)
-
-
Method Detail
-
getWhitespaceOnlyPasses
protected PassListBuilder getWhitespaceOnlyPasses()
Description copied from class:PassConfig
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.- Overrides:
getWhitespaceOnlyPasses
in classPassConfig
-
getChecks
protected PassListBuilder getChecks()
Description copied from class:PassConfig
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.
- Specified by:
getChecks
in classPassConfig
-
getOptimizations
protected PassListBuilder getOptimizations()
Description copied from class:PassConfig
Gets the optimization passes to run.Optimization passes revolve around producing smaller and faster code. They should always run after checking passes.
- Specified by:
getOptimizations
in classPassConfig
-
getFinalizations
protected PassListBuilder getFinalizations()
Description copied from class:PassConfig
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.
- Specified by:
getFinalizations
in classPassConfig
-
getTranspileOnlyPasses
protected PassListBuilder getTranspileOnlyPasses()
Description copied from class:PassConfig
Gets the transpilation passes- Overrides:
getTranspileOnlyPasses
in classPassConfig
-
-