@GwtIncompatible(value="FileInstrumentationData") public class BranchCoverageInstrumentationCallback extends NodeTraversal.AbstractPostOrderCallback
Constructor and Description |
---|
BranchCoverageInstrumentationCallback(AbstractCompiler compiler,
Map<String,com.google.javascript.jscomp.FileInstrumentationData> instrumentationData) |
Modifier and Type | Method and Description |
---|---|
void |
visit(NodeTraversal traversal,
Node node,
Node parent)
Visits a node in postorder (after its children have been visited).
|
shouldTraverse
public BranchCoverageInstrumentationCallback(AbstractCompiler compiler, Map<String,com.google.javascript.jscomp.FileInstrumentationData> instrumentationData)
public void visit(NodeTraversal traversal, Node node, Node parent)
NodeTraversal.Callback
Visits a node in postorder (after its children have been visited).
A node is visited only if all its parents should be traversed
(NodeTraversal.Callback.shouldTraverse(NodeTraversal, Node, Node)
).
Implementations can have side effects (e.g. modifying the parse tree).
Copyright © 2009-2016 Google. All Rights Reserved.