@@ -79,7 +79,7 @@ export class UnaryExprFactory extends AstFactory<UnaryExpr> {
7979 operand ?: AstFactory < Expression > ;
8080
8181 constructor ( ) {
82- super ( { type : UnaryExpr , node : { operator : '!' } } ) ;
82+ super ( { type : UnaryExpr . $type , node : { operator : '!' } } ) ;
8383 }
8484
8585 setOperand ( builder : ( a : ExpressionBuilder ) => AstFactory < Expression > ) {
@@ -96,7 +96,7 @@ export class ReferenceExprFactory extends AstFactory<ReferenceExpr> {
9696 args : ReferenceArgFactory [ ] = [ ] ;
9797
9898 constructor ( ) {
99- super ( { type : ReferenceExpr , node : { args : [ ] } } ) ;
99+ super ( { type : ReferenceExpr . $type , node : { args : [ ] } } ) ;
100100 }
101101
102102 setTarget ( target : ReferenceTarget ) {
@@ -128,7 +128,7 @@ export class ReferenceArgFactory extends AstFactory<ReferenceArg> {
128128 value ?: AstFactory < Expression > ;
129129
130130 constructor ( ) {
131- super ( { type : ReferenceArg } ) ;
131+ super ( { type : ReferenceArg . $type } ) ;
132132 }
133133
134134 setName ( name : string ) {
@@ -153,7 +153,7 @@ export class MemberAccessExprFactory extends AstFactory<MemberAccessExpr> {
153153 operand ?: AstFactory < Expression > ;
154154
155155 constructor ( ) {
156- super ( { type : MemberAccessExpr } ) ;
156+ super ( { type : MemberAccessExpr . $type } ) ;
157157 }
158158
159159 setMember ( target : Reference < MemberAccessTarget > ) {
@@ -177,7 +177,7 @@ export class ObjectExprFactory extends AstFactory<ObjectExpr> {
177177 fields : FieldInitializerFactory [ ] = [ ] ;
178178
179179 constructor ( ) {
180- super ( { type : ObjectExpr , node : { fields : [ ] } } ) ;
180+ super ( { type : ObjectExpr . $type , node : { fields : [ ] } } ) ;
181181 }
182182
183183 addField ( builder : ( b : FieldInitializerFactory ) => FieldInitializerFactory ) {
@@ -194,7 +194,7 @@ export class FieldInitializerFactory extends AstFactory<FieldInitializer> {
194194 value ?: AstFactory < Expression > ;
195195
196196 constructor ( ) {
197- super ( { type : FieldInitializer } ) ;
197+ super ( { type : FieldInitializer . $type } ) ;
198198 }
199199
200200 setName ( name : RegularID ) {
@@ -219,7 +219,7 @@ export class InvocationExprFactory extends AstFactory<InvocationExpr> {
219219 function ?: Reference < FunctionDecl > ;
220220
221221 constructor ( ) {
222- super ( { type : InvocationExpr , node : { args : [ ] } } ) ;
222+ super ( { type : InvocationExpr . $type , node : { args : [ ] } } ) ;
223223 }
224224
225225 addArg ( builder : ( arg : ArgumentFactory ) => ArgumentFactory ) {
@@ -246,7 +246,7 @@ export class ArgumentFactory extends AstFactory<Argument> {
246246 value ?: AstFactory < Expression > ;
247247
248248 constructor ( ) {
249- super ( { type : Argument } ) ;
249+ super ( { type : Argument . $type } ) ;
250250 }
251251
252252 setValue ( builder : ( a : ExpressionBuilder ) => AstFactory < Expression > ) {
@@ -262,7 +262,7 @@ export class ArrayExprFactory extends AstFactory<ArrayExpr> {
262262 items : AstFactory < Expression > [ ] = [ ] ;
263263
264264 constructor ( ) {
265- super ( { type : ArrayExpr , node : { items : [ ] } } ) ;
265+ super ( { type : ArrayExpr . $type , node : { items : [ ] } } ) ;
266266 }
267267
268268 addItem ( builder : ( a : ExpressionBuilder ) => AstFactory < Expression > ) {
@@ -281,7 +281,7 @@ export class BinaryExprFactory extends AstFactory<BinaryExpr> {
281281 // TODO: add support for CollectionPredicateBinding
282282
283283 constructor ( ) {
284- super ( { type : BinaryExpr } ) ;
284+ super ( { type : BinaryExpr . $type } ) ;
285285 }
286286
287287 setOperator ( operator : BinaryExpr [ 'operator' ] ) {
0 commit comments