CodeQL library for JavaScript
Search

Predicate returnExpr

Holds if source corresponds to an expression returned by f, and sink equals source.

Import path

import semmle.javascript.dataflow.internal.FlowSteps
predicate returnExpr(Function f, Node source, Node sink)