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

Member predicate EnumMember::getIdentifier

Gets the name of the enum member, such as off in enum State { on, off }.

Note that if the name of the member is written as a string literal, a synthetic identifier node is created to represent the name. In other words, the name will always be an identifier node.

Identifier getIdentifier()