File tree 3 files changed +5
-7
lines changed
3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -685,7 +685,7 @@ export abstract class Node {
685
685
686
686
static createEnumValueDeclaration (
687
687
name : IdentifierExpression ,
688
- value : Expression | null ,
688
+ initializer : Expression | null ,
689
689
flags : CommonFlags ,
690
690
range : Range
691
691
) : EnumValueDeclaration {
@@ -694,7 +694,7 @@ export abstract class Node {
694
694
node . range = range ;
695
695
node . flags = flags ;
696
696
node . name = name ;
697
- node . value = value ;
697
+ node . initializer = initializer ;
698
698
return node ;
699
699
}
700
700
@@ -1848,8 +1848,6 @@ export class EnumDeclaration extends DeclarationStatement {
1848
1848
1849
1849
/** Represents a value of an `enum` declaration. */
1850
1850
export class EnumValueDeclaration extends VariableLikeDeclarationStatement {
1851
- /** Value expression. */
1852
- value : Expression | null ;
1853
1851
}
1854
1852
1855
1853
/** Represents an `export import` statement of an interface. */
Original file line number Diff line number Diff line change @@ -1000,9 +1000,9 @@ export class ASTBuilder {
1000
1000
1001
1001
visitEnumValueDeclaration ( node : EnumValueDeclaration ) : void {
1002
1002
this . visitIdentifierExpression ( node . name ) ;
1003
- if ( node . value ) {
1003
+ if ( node . initializer ) {
1004
1004
this . sb . push ( " = " ) ;
1005
- this . visitNode ( node . value ) ;
1005
+ this . visitNode ( node . initializer ) ;
1006
1006
}
1007
1007
}
1008
1008
Original file line number Diff line number Diff line change @@ -2789,7 +2789,7 @@ export class EnumValue extends VariableLikeElement {
2789
2789
2790
2790
/** Gets the associated value node. */
2791
2791
get valueNode ( ) : Expression | null {
2792
- return ( < EnumValueDeclaration > this . declaration ) . value ;
2792
+ return ( < EnumValueDeclaration > this . declaration ) . initializer ;
2793
2793
}
2794
2794
2795
2795
/* @override */
You can’t perform that action at this time.
0 commit comments