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

Member predicate DataFlow::PropRef::getPropertyName

Gets the name of the property being read or written, if it can be statically determined.

By default, this predicate is undefined for dynamic property references such as e[computePropertyName()] and for spread/rest properties.

string getPropertyName()