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

Member predicate Expr::getParentExpr

Gets the expression that is the parent of this expression in the AST, if any.

Note that for property names and property values the associated object expression or pattern is returned, skipping the property node itself (which is not an expression).

Expr getParentExpr()