CodeQL library for JavaScript

Member predicate Property::getNameExpr

Gets the expression specifying the name of this property.

For normal properties, this is either an identifier, a string literal, or a numeric literal; for computed properties it can be an arbitrary expression; for spread properties, it is not defined.

Expr getNameExpr()