@@ -152,8 +152,7 @@ export namespace ASTNode {
152
152
return this . _type ?? TypeAny ;
153
153
}
154
154
155
- override set ( loc : ShaderRange , children : NodeChild [ ] ) {
156
- super . set ( loc , children ) ;
155
+ override init ( ) : void {
157
156
this . _type = undefined ;
158
157
}
159
158
}
@@ -694,6 +693,7 @@ export namespace ASTNode {
694
693
fnSymbol : FnSymbol | StructSymbol | undefined ;
695
694
696
695
override init ( ) : void {
696
+ super . init ( ) ;
697
697
this . fnSymbol = undefined ;
698
698
}
699
699
@@ -858,6 +858,7 @@ export namespace ASTNode {
858
858
@ASTNodeDecorator ( ENonTerminal . postfix_expression )
859
859
export class PostfixExpression extends ExpressionAstNode {
860
860
override init ( ) : void {
861
+ super . init ( ) ;
861
862
if ( this . children . length === 1 ) {
862
863
const child = this . children [ 0 ] as PrimaryExpression | FunctionCall ;
863
864
this . type = child . type ;
@@ -883,6 +884,7 @@ export namespace ASTNode {
883
884
@ASTNodeDecorator ( ENonTerminal . multiplicative_expression )
884
885
export class MultiplicativeExpression extends ExpressionAstNode {
885
886
override init ( ) : void {
887
+ super . init ( ) ;
886
888
if ( this . children . length === 1 ) {
887
889
this . type = ( this . children [ 0 ] as UnaryExpression ) . type ;
888
890
} else {
@@ -898,6 +900,7 @@ export namespace ASTNode {
898
900
@ASTNodeDecorator ( ENonTerminal . additive_expression )
899
901
export class AdditiveExpression extends ExpressionAstNode {
900
902
override init ( ) : void {
903
+ super . init ( ) ;
901
904
if ( this . children . length === 1 ) {
902
905
this . type = ( this . children [ 0 ] as MultiplicativeExpression ) . type ;
903
906
} else {
0 commit comments