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.Builder
builder()
final CompilerPass
create
(AbstractCompiler compiler) Creates a new compiler pass to be run.static PassFactory
createEmptyPass
(String name) Create a no-op pass that can only run once.abstract Function
<CompilerOptions, Boolean> abstract String
getName()
The name of the pass as it will appear in logs.abstract boolean
Whether this factory must or must not appear in aPhaseOptimizer
loop.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 aPhaseOptimizer
loop. -
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.
-