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

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