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

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