Class CoverageInstrumentationPass
- java.lang.Object
-
- com.google.javascript.jscomp.instrumentation.CoverageInstrumentationPass
-
- All Implemented Interfaces:
CompilerPass
@GwtIncompatible("FileInstrumentationData") public class CoverageInstrumentationPass extends java.lang.Object implements CompilerPassThis code implements the instrumentation pass over the AST (returned by JSCompiler).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCoverageInstrumentationPass.CoverageReachConfigures which statements in the AST should be instrumented
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJS_INSTRUMENTATION_OBJECT_NAME
-
Constructor Summary
Constructors Constructor Description CoverageInstrumentationPass(AbstractCompiler compiler, CoverageInstrumentationPass.CoverageReach reach)Deprecated.CoverageInstrumentationPass(AbstractCompiler compiler, CoverageInstrumentationPass.CoverageReach reach, CompilerOptions.InstrumentOption instrumentOption, java.lang.String productionInstrumentationArrayName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocess(Node externsNode, Node rootNode)Process the JS with root node root.
-
-
-
Field Detail
-
JS_INSTRUMENTATION_OBJECT_NAME
public static final java.lang.String JS_INSTRUMENTATION_OBJECT_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CoverageInstrumentationPass
public CoverageInstrumentationPass(AbstractCompiler compiler, CoverageInstrumentationPass.CoverageReach reach, CompilerOptions.InstrumentOption instrumentOption, java.lang.String productionInstrumentationArrayName)
- Parameters:
compiler- the compiler which generates the AST.
-
CoverageInstrumentationPass
@Deprecated public CoverageInstrumentationPass(AbstractCompiler compiler, CoverageInstrumentationPass.CoverageReach reach)
Deprecated.
-
-
Method Detail
-
process
public void process(Node externsNode, Node rootNode)
Description copied from interface:CompilerPassProcess the JS with root node root. Can modify the contents of each Node tree- Specified by:
processin interfaceCompilerPass- Parameters:
externsNode- Top of external JS treerootNode- Top of JS tree
-
-