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

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