Fix enum initialization (#545)

This commit is contained in:
Daniel Wirtz
2019-03-18 04:54:44 +01:00
committed by GitHub
parent 6de4847356
commit fd99589527
7 changed files with 100 additions and 16 deletions

View File

@ -2266,6 +2266,9 @@ export class EnumValue extends VariableLikeElement {
this.setType(Type.i32);
}
/** Whether this enum value is immutable. */
isImmutable: bool = false;
/** Gets the associated value node. */
get valueNode(): Expression | null {
return (<EnumValueDeclaration>this.declaration).value;