Predicate isAssignedTo
Holds if rhs is assigned to a “name” that matches regexp.
The “name” is one of:
- the name of the written variable, if
rhsis the right hand side of a variable write - the name of the written property, if
rhsis the right hand side of a property write
Import path
import semmle.javascript.heuristics.SyntacticHeuristicspredicate isAssignedTo(Node rhs, string regexp)