CodeQL library for JavaScript/TypeScript
codeql/javascript-all 2.6.6-dev (changelog, source)
Search

Predicate isCompoundExpression

Holds if e is a compound expression that may contain sub-expressions with side effects. We should not flag these directly as useless since we want to flag only the innermost expressions that actually have no effect.

Import path

import Expressions.ExprHasNoEffect
predicate isCompoundExpression(Expr e)