CodeQL library for JavaScript

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