CodeQL library for JavaScript/TypeScript
codeql/javascript-all 1.0.1 (changelog, source)

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()