Member predicate TypeScript::EnumDeclaration::getVariable

Gets the variable holding the enumeration object.

For example, this would be the variable E introduced by enum E { A, B }.

If the enumeration is a const enum then this variable will not exist at runtime and all uses of the variable will be constant-folded by the TypeScript compiler, but the analysis models it as an ordinary variable.

Variable getVariable()