closure
319
Anomaly identified by the detector. Please review whether this anomaly corresponds to a misuse.
4
com/google/javascript/jscomp/SideEffectsAnalysis.java
storageNodeIsLValue(Node)
class SideEffectsAnalysis.VisibilityLocationAbstraction { /** * Return true if the storage node is an l-value. */ private static boolean storageNodeIsLValue(Node node) { Preconditions.checkArgument(isStorageNode(node)); Node parent = node.getParent(); return (NodeUtil.isAssignmentOp(parent) && parent.getFirstChild() == node) || (NodeUtil.isForIn(parent) && parent.getFirstChild() == node) || NodeUtil.isVar(parent) || parent.getType() == Token.DEC || parent.getType() == Token.INC; } }
0.98
42.48
Node.getType () : int @ (0) < Node.getFirstChild () : Node @ (0)
43
Node.getType () : int @ (0) < Node.getType () : int @ (0);Node.getFirstChild () : Node @ (0) < Node.getFirstChild () : Node @ (0)
don't think order matters here