Package com.google.javascript.jscomp
Class CheckExtraRequiresPassConfig
java.lang.Object
com.google.javascript.jscomp.PassConfig
com.google.javascript.jscomp.PassConfig.PassConfigDelegate
com.google.javascript.jscomp.CheckExtraRequiresPassConfig
A PassConfig to only run the CheckExtraRequires linter rule. This allows user to select which
goog.require imports to be removed, provided by requiresToRemove
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.javascript.jscomp.PassConfig
PassConfig.OptimizationPasses, PassConfig.PassConfigDelegate -
Field Summary
Fields inherited from class com.google.javascript.jscomp.PassConfig
options -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PassListBuilderGets the checking passes to run.protected PassListBuildergetOptimizations(PassConfig.OptimizationPasses optimizationPasses) Gets the optimization passes to run.Methods inherited from class com.google.javascript.jscomp.PassConfig.PassConfigDelegate
getFinalizations, getTranspileOnlyPasses, getWhitespaceOnlyPasses
-
Constructor Details
-
CheckExtraRequiresPassConfig
-
-
Method Details
-
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.
- Overrides:
getChecksin classPassConfig.PassConfigDelegate
-
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.
- Overrides:
getOptimizationsin classPassConfig.PassConfigDelegate
-