Package com.google.javascript.jscomp
Class ConformancePassConfig
- java.lang.Object
-
- com.google.javascript.jscomp.PassConfig
-
- com.google.javascript.jscomp.PassConfig.PassConfigDelegate
-
- com.google.javascript.jscomp.ConformancePassConfig
-
public class ConformancePassConfig extends PassConfig.PassConfigDelegate
Runs only the user-supplied conformance checks and any earlier passes required by conformance.
-
-
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 Constructor Description ConformancePassConfig(PassConfig delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<PassFactory>
getChecks()
Gets the checking passes to run.protected java.util.List<PassFactory>
getOptimizations()
Gets the optimization passes to run.-
Methods inherited from class com.google.javascript.jscomp.PassConfig.PassConfigDelegate
getFinalizations, getTranspileOnlyPasses, getWhitespaceOnlyPasses
-
-
-
-
Constructor Detail
-
ConformancePassConfig
public ConformancePassConfig(PassConfig delegate)
-
-
Method Detail
-
getChecks
protected java.util.List<PassFactory> 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.
- Overrides:
getChecks
in classPassConfig.PassConfigDelegate
-
getOptimizations
protected java.util.List<PassFactory> 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.
- Overrides:
getOptimizations
in classPassConfig.PassConfigDelegate
-
-