CodeQL library for JavaScript
Search

Predicate inVoidContext

Holds if e appears in a syntactic context where its value is discarded.

Import path

import Expressions.ExprHasNoEffect
predicate inVoidContext(Expr e)