Package com.google.javascript.jscomp
Class PassFactory
java.lang.Object
com.google.javascript.jscomp.PassFactory
A factory for creating JSCompiler passes based on the Options injected.
Contains all meta-data about compiler passes (like whether it can be run multiple times, a human-readable name for logging, etc.).
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic PassFactory.Builderbuilder()final CompilerPasscreate(AbstractCompiler compiler) Creates a new compiler pass to be run.static PassFactorycreateEmptyPass(String name) Create a no-op pass that can only run once.abstract Function<CompilerOptions, Boolean> abstract StringgetName()The name of the pass as it will appear in logs.abstract booleanWhether this factory must or must not appear in aPhaseOptimizerloop.abstract PassFactory.Builder
-
Method Details
-
getName
The name of the pass as it will appear in logs. -
getCondition
-
isRunInFixedPointLoop
public abstract boolean isRunInFixedPointLoop()Whether this factory must or must not appear in aPhaseOptimizerloop. -
toBuilder
-
builder
-
createEmptyPass
Create a no-op pass that can only run once. Used to break up loops. -
create
Creates a new compiler pass to be run.
-