CodeQL library for JavaScript
codeql/javascript-all 0.6.2 ( 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 ( )