@openrewrite/rewrite 0.21.0 → 0.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,9 +28,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  __setModuleDefault(result, mod);
29
29
  return result;
30
30
  };
31
- var CompilationUnit_1, Alias_1, ArrowFunction_1, Await_1, DefaultType_1, Delete_1, Export_1, FunctionType_1, JsImport_1, JsBinary_1, ObjectBindingDeclarations_1, PropertyAssignment_1, ScopedVariableDeclarations_1, TemplateExpression_1, Tuple_1, TypeDeclaration_1, TypeOf_1, TypeOperator_1, Unary_1, Union_1, Void_1, Yield_1, TypeInfo_1, JSVariableDeclarations_1, JSMethodDeclaration_1, NamespaceDeclaration_1;
31
+ var CompilationUnit_1, Alias_1, ArrowFunction_1, Await_1, DefaultType_1, Delete_1, Export_1, FunctionType_1, JsImport_1, JsImportSpecifier_1, JsBinary_1, ObjectBindingDeclarations_1, PropertyAssignment_1, ScopedVariableDeclarations_1, TemplateExpression_1, Tuple_1, TypeDeclaration_1, TypeOf_1, TypeQuery_1, TypeOperator_1, Unary_1, Union_1, Intersection_1, Void_1, Yield_1, TypeInfo_1, JSVariableDeclarations_1, JSMethodDeclaration_1, JSMethodInvocation_1, JSForOfLoop_1, JSForInLoop_1, JSForInOfLoopControl_1, NamespaceDeclaration_1, FunctionDeclaration_1, TypeLiteral_1, IndexSignatureDeclaration_1, ArrayBindingPattern_1, BindingElement_1;
32
32
  Object.defineProperty(exports, "__esModule", { value: true });
33
- exports.NamespaceDeclaration = exports.JSMethodDeclaration = exports.JSVariableDeclarations = exports.TypeInfo = exports.Yield = exports.Void = exports.Union = exports.Unary = exports.TypeOperator = exports.TypeOf = exports.TypeDeclaration = exports.Tuple = exports.TemplateExpression = exports.ScopedVariableDeclarations = exports.PropertyAssignment = exports.ObjectBindingDeclarations = exports.JsBinary = exports.JsImport = exports.FunctionType = exports.Export = exports.Delete = exports.DefaultType = exports.Await = exports.ArrowFunction = exports.Alias = exports.CompilationUnit = void 0;
33
+ exports.BindingElement = exports.ArrayBindingPattern = exports.IndexSignatureDeclaration = exports.TypeLiteral = exports.FunctionDeclaration = exports.NamespaceDeclaration = exports.JSForInOfLoopControl = exports.JSForInLoop = exports.JSForOfLoop = exports.JSMethodInvocation = exports.JSMethodDeclaration = exports.JSVariableDeclarations = exports.TypeInfo = exports.Yield = exports.Void = exports.Intersection = exports.Union = exports.Unary = exports.TypeOperator = exports.TypeQuery = exports.TypeOf = exports.TypeDeclaration = exports.Tuple = exports.TemplateExpression = exports.ScopedVariableDeclarations = exports.PropertyAssignment = exports.ObjectBindingDeclarations = exports.JsBinary = exports.JsImportSpecifier = exports.JsImport = exports.FunctionType = exports.Export = exports.Delete = exports.DefaultType = exports.Await = exports.ArrowFunction = exports.Alias = exports.CompilationUnit = void 0;
34
34
  const extensions = __importStar(require("./extensions"));
35
35
  const support_types_1 = require("./support_types");
36
36
  const core_1 = require("../../core");
@@ -209,13 +209,14 @@ exports.Alias = Alias = Alias_1 = __decorate([
209
209
  (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$Alias")
210
210
  ], Alias);
211
211
  let ArrowFunction = ArrowFunction_1 = class ArrowFunction extends (0, support_types_1.JSMixin)(Object) {
212
- constructor(id, prefix, markers, leadingAnnotations, modifiers, parameters, returnTypeExpression, arrow, body, _type) {
212
+ constructor(id, prefix, markers, leadingAnnotations, modifiers, typeParameters, parameters, returnTypeExpression, arrow, body, _type) {
213
213
  super();
214
214
  this._id = id;
215
215
  this._prefix = prefix;
216
216
  this._markers = markers;
217
217
  this._leadingAnnotations = leadingAnnotations;
218
218
  this._modifiers = modifiers;
219
+ this._typeParameters = typeParameters;
219
220
  this._parameters = parameters;
220
221
  this._returnTypeExpression = returnTypeExpression;
221
222
  this._arrow = arrow;
@@ -226,61 +227,67 @@ let ArrowFunction = ArrowFunction_1 = class ArrowFunction extends (0, support_ty
226
227
  return this._id;
227
228
  }
228
229
  withId(id) {
229
- return id === this._id ? this : new ArrowFunction_1(id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._parameters, this._returnTypeExpression, this._arrow, this._body, this._type);
230
+ return id === this._id ? this : new ArrowFunction_1(id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._typeParameters, this._parameters, this._returnTypeExpression, this._arrow, this._body, this._type);
230
231
  }
231
232
  get prefix() {
232
233
  return this._prefix;
233
234
  }
234
235
  withPrefix(prefix) {
235
- return prefix === this._prefix ? this : new ArrowFunction_1(this._id, prefix, this._markers, this._leadingAnnotations, this._modifiers, this._parameters, this._returnTypeExpression, this._arrow, this._body, this._type);
236
+ return prefix === this._prefix ? this : new ArrowFunction_1(this._id, prefix, this._markers, this._leadingAnnotations, this._modifiers, this._typeParameters, this._parameters, this._returnTypeExpression, this._arrow, this._body, this._type);
236
237
  }
237
238
  get markers() {
238
239
  return this._markers;
239
240
  }
240
241
  withMarkers(markers) {
241
- return markers === this._markers ? this : new ArrowFunction_1(this._id, this._prefix, markers, this._leadingAnnotations, this._modifiers, this._parameters, this._returnTypeExpression, this._arrow, this._body, this._type);
242
+ return markers === this._markers ? this : new ArrowFunction_1(this._id, this._prefix, markers, this._leadingAnnotations, this._modifiers, this._typeParameters, this._parameters, this._returnTypeExpression, this._arrow, this._body, this._type);
242
243
  }
243
244
  get leadingAnnotations() {
244
245
  return this._leadingAnnotations;
245
246
  }
246
247
  withLeadingAnnotations(leadingAnnotations) {
247
- return leadingAnnotations === this._leadingAnnotations ? this : new ArrowFunction_1(this._id, this._prefix, this._markers, leadingAnnotations, this._modifiers, this._parameters, this._returnTypeExpression, this._arrow, this._body, this._type);
248
+ return leadingAnnotations === this._leadingAnnotations ? this : new ArrowFunction_1(this._id, this._prefix, this._markers, leadingAnnotations, this._modifiers, this._typeParameters, this._parameters, this._returnTypeExpression, this._arrow, this._body, this._type);
248
249
  }
249
250
  get modifiers() {
250
251
  return this._modifiers;
251
252
  }
252
253
  withModifiers(modifiers) {
253
- return modifiers === this._modifiers ? this : new ArrowFunction_1(this._id, this._prefix, this._markers, this._leadingAnnotations, modifiers, this._parameters, this._returnTypeExpression, this._arrow, this._body, this._type);
254
+ return modifiers === this._modifiers ? this : new ArrowFunction_1(this._id, this._prefix, this._markers, this._leadingAnnotations, modifiers, this._typeParameters, this._parameters, this._returnTypeExpression, this._arrow, this._body, this._type);
255
+ }
256
+ get typeParameters() {
257
+ return this._typeParameters;
258
+ }
259
+ withTypeParameters(typeParameters) {
260
+ return typeParameters === this._typeParameters ? this : new ArrowFunction_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, typeParameters, this._parameters, this._returnTypeExpression, this._arrow, this._body, this._type);
254
261
  }
255
262
  get parameters() {
256
263
  return this._parameters;
257
264
  }
258
265
  withParameters(parameters) {
259
- return parameters === this._parameters ? this : new ArrowFunction_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, parameters, this._returnTypeExpression, this._arrow, this._body, this._type);
266
+ return parameters === this._parameters ? this : new ArrowFunction_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._typeParameters, parameters, this._returnTypeExpression, this._arrow, this._body, this._type);
260
267
  }
261
268
  get returnTypeExpression() {
262
269
  return this._returnTypeExpression;
263
270
  }
264
271
  withReturnTypeExpression(returnTypeExpression) {
265
- return returnTypeExpression === this._returnTypeExpression ? this : new ArrowFunction_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._parameters, returnTypeExpression, this._arrow, this._body, this._type);
272
+ return returnTypeExpression === this._returnTypeExpression ? this : new ArrowFunction_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._typeParameters, this._parameters, returnTypeExpression, this._arrow, this._body, this._type);
266
273
  }
267
274
  get arrow() {
268
275
  return this._arrow;
269
276
  }
270
277
  withArrow(arrow) {
271
- return arrow === this._arrow ? this : new ArrowFunction_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._parameters, this._returnTypeExpression, arrow, this._body, this._type);
278
+ return arrow === this._arrow ? this : new ArrowFunction_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._typeParameters, this._parameters, this._returnTypeExpression, arrow, this._body, this._type);
272
279
  }
273
280
  get body() {
274
281
  return this._body;
275
282
  }
276
283
  withBody(body) {
277
- return body === this._body ? this : new ArrowFunction_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._parameters, this._returnTypeExpression, this._arrow, body, this._type);
284
+ return body === this._body ? this : new ArrowFunction_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._typeParameters, this._parameters, this._returnTypeExpression, this._arrow, body, this._type);
278
285
  }
279
286
  get type() {
280
287
  return this._type;
281
288
  }
282
289
  withType(_type) {
283
- return _type === this._type ? this : new ArrowFunction_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._parameters, this._returnTypeExpression, this._arrow, this._body, _type);
290
+ return _type === this._type ? this : new ArrowFunction_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._typeParameters, this._parameters, this._returnTypeExpression, this._arrow, this._body, _type);
284
291
  }
285
292
  acceptJavaScript(v, p) {
286
293
  return v.visitArrowFunction(this, p);
@@ -524,11 +531,12 @@ exports.Export = Export = Export_1 = __decorate([
524
531
  (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$Export")
525
532
  ], Export);
526
533
  let FunctionType = FunctionType_1 = class FunctionType extends (0, support_types_1.JSMixin)(Object) {
527
- constructor(id, prefix, markers, parameters, arrow, returnType, _type) {
534
+ constructor(id, prefix, markers, constructorType, parameters, arrow, returnType, _type) {
528
535
  super();
529
536
  this._id = id;
530
537
  this._prefix = prefix;
531
538
  this._markers = markers;
539
+ this._constructorType = constructorType;
532
540
  this._parameters = parameters;
533
541
  this._arrow = arrow;
534
542
  this._returnType = returnType;
@@ -538,19 +546,25 @@ let FunctionType = FunctionType_1 = class FunctionType extends (0, support_types
538
546
  return this._id;
539
547
  }
540
548
  withId(id) {
541
- return id === this._id ? this : new FunctionType_1(id, this._prefix, this._markers, this._parameters, this._arrow, this._returnType, this._type);
549
+ return id === this._id ? this : new FunctionType_1(id, this._prefix, this._markers, this._constructorType, this._parameters, this._arrow, this._returnType, this._type);
542
550
  }
543
551
  get prefix() {
544
552
  return this._prefix;
545
553
  }
546
554
  withPrefix(prefix) {
547
- return prefix === this._prefix ? this : new FunctionType_1(this._id, prefix, this._markers, this._parameters, this._arrow, this._returnType, this._type);
555
+ return prefix === this._prefix ? this : new FunctionType_1(this._id, prefix, this._markers, this._constructorType, this._parameters, this._arrow, this._returnType, this._type);
548
556
  }
549
557
  get markers() {
550
558
  return this._markers;
551
559
  }
552
560
  withMarkers(markers) {
553
- return markers === this._markers ? this : new FunctionType_1(this._id, this._prefix, markers, this._parameters, this._arrow, this._returnType, this._type);
561
+ return markers === this._markers ? this : new FunctionType_1(this._id, this._prefix, markers, this._constructorType, this._parameters, this._arrow, this._returnType, this._type);
562
+ }
563
+ get constructorType() {
564
+ return this._constructorType.element;
565
+ }
566
+ withConstructorType(constructorType) {
567
+ return this.padding.withConstructorType(this._constructorType.withElement(constructorType));
554
568
  }
555
569
  get parameters() {
556
570
  return this._parameters.elements;
@@ -562,19 +576,19 @@ let FunctionType = FunctionType_1 = class FunctionType extends (0, support_types
562
576
  return this._arrow;
563
577
  }
564
578
  withArrow(arrow) {
565
- return arrow === this._arrow ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._parameters, arrow, this._returnType, this._type);
579
+ return arrow === this._arrow ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._constructorType, this._parameters, arrow, this._returnType, this._type);
566
580
  }
567
581
  get returnType() {
568
582
  return this._returnType;
569
583
  }
570
584
  withReturnType(returnType) {
571
- return returnType === this._returnType ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._parameters, this._arrow, returnType, this._type);
585
+ return returnType === this._returnType ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._constructorType, this._parameters, this._arrow, returnType, this._type);
572
586
  }
573
587
  get type() {
574
588
  return this._type;
575
589
  }
576
590
  withType(_type) {
577
- return _type === this._type ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._parameters, this._arrow, this._returnType, _type);
591
+ return _type === this._type ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._constructorType, this._parameters, this._arrow, this._returnType, _type);
578
592
  }
579
593
  acceptJavaScript(v, p) {
580
594
  return v.visitFunctionType(this, p);
@@ -582,11 +596,17 @@ let FunctionType = FunctionType_1 = class FunctionType extends (0, support_types
582
596
  get padding() {
583
597
  const t = this;
584
598
  return new class {
599
+ get constructorType() {
600
+ return t._constructorType;
601
+ }
602
+ withConstructorType(constructorType) {
603
+ return t._constructorType === constructorType ? t : new FunctionType_1(t._id, t._prefix, t._markers, constructorType, t._parameters, t._arrow, t._returnType, t._type);
604
+ }
585
605
  get parameters() {
586
606
  return t._parameters;
587
607
  }
588
608
  withParameters(parameters) {
589
- return t._parameters === parameters ? t : new FunctionType_1(t._id, t._prefix, t._markers, parameters, t._arrow, t._returnType, t._type);
609
+ return t._parameters === parameters ? t : new FunctionType_1(t._id, t._prefix, t._markers, t._constructorType, parameters, t._arrow, t._returnType, t._type);
590
610
  }
591
611
  };
592
612
  }
@@ -596,12 +616,13 @@ exports.FunctionType = FunctionType = FunctionType_1 = __decorate([
596
616
  (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$FunctionType")
597
617
  ], FunctionType);
598
618
  let JsImport = JsImport_1 = class JsImport extends (0, support_types_1.JSMixin)(Object) {
599
- constructor(id, prefix, markers, name, imports, _from, target, initializer) {
619
+ constructor(id, prefix, markers, name, importType, imports, _from, target, initializer) {
600
620
  super();
601
621
  this._id = id;
602
622
  this._prefix = prefix;
603
623
  this._markers = markers;
604
624
  this._name = name;
625
+ this._importType = importType;
605
626
  this._imports = imports;
606
627
  this._from = _from;
607
628
  this._target = target;
@@ -611,19 +632,19 @@ let JsImport = JsImport_1 = class JsImport extends (0, support_types_1.JSMixin)(
611
632
  return this._id;
612
633
  }
613
634
  withId(id) {
614
- return id === this._id ? this : new JsImport_1(id, this._prefix, this._markers, this._name, this._imports, this._from, this._target, this._initializer);
635
+ return id === this._id ? this : new JsImport_1(id, this._prefix, this._markers, this._name, this._importType, this._imports, this._from, this._target, this._initializer);
615
636
  }
616
637
  get prefix() {
617
638
  return this._prefix;
618
639
  }
619
640
  withPrefix(prefix) {
620
- return prefix === this._prefix ? this : new JsImport_1(this._id, prefix, this._markers, this._name, this._imports, this._from, this._target, this._initializer);
641
+ return prefix === this._prefix ? this : new JsImport_1(this._id, prefix, this._markers, this._name, this._importType, this._imports, this._from, this._target, this._initializer);
621
642
  }
622
643
  get markers() {
623
644
  return this._markers;
624
645
  }
625
646
  withMarkers(markers) {
626
- return markers === this._markers ? this : new JsImport_1(this._id, this._prefix, markers, this._name, this._imports, this._from, this._target, this._initializer);
647
+ return markers === this._markers ? this : new JsImport_1(this._id, this._prefix, markers, this._name, this._importType, this._imports, this._from, this._target, this._initializer);
627
648
  }
628
649
  get name() {
629
650
  return this._name === null ? null : this._name.element;
@@ -631,6 +652,12 @@ let JsImport = JsImport_1 = class JsImport extends (0, support_types_1.JSMixin)(
631
652
  withName(name) {
632
653
  return this.padding.withName(tree_1.JRightPadded.withElement(this._name, name));
633
654
  }
655
+ get importType() {
656
+ return this._importType.element;
657
+ }
658
+ withImportType(importType) {
659
+ return this.padding.withImportType(this._importType.withElement(importType));
660
+ }
634
661
  get imports() {
635
662
  return this._imports === null ? null : this._imports.elements;
636
663
  }
@@ -641,13 +668,13 @@ let JsImport = JsImport_1 = class JsImport extends (0, support_types_1.JSMixin)(
641
668
  return this._from;
642
669
  }
643
670
  withFrom(_from) {
644
- return _from === this._from ? this : new JsImport_1(this._id, this._prefix, this._markers, this._name, this._imports, _from, this._target, this._initializer);
671
+ return _from === this._from ? this : new JsImport_1(this._id, this._prefix, this._markers, this._name, this._importType, this._imports, _from, this._target, this._initializer);
645
672
  }
646
673
  get target() {
647
674
  return this._target;
648
675
  }
649
676
  withTarget(target) {
650
- return target === this._target ? this : new JsImport_1(this._id, this._prefix, this._markers, this._name, this._imports, this._from, target, this._initializer);
677
+ return target === this._target ? this : new JsImport_1(this._id, this._prefix, this._markers, this._name, this._importType, this._imports, this._from, target, this._initializer);
651
678
  }
652
679
  get initializer() {
653
680
  return this._initializer === null ? null : this._initializer.element;
@@ -665,19 +692,25 @@ let JsImport = JsImport_1 = class JsImport extends (0, support_types_1.JSMixin)(
665
692
  return t._name;
666
693
  }
667
694
  withName(name) {
668
- return t._name === name ? t : new JsImport_1(t._id, t._prefix, t._markers, name, t._imports, t._from, t._target, t._initializer);
695
+ return t._name === name ? t : new JsImport_1(t._id, t._prefix, t._markers, name, t._importType, t._imports, t._from, t._target, t._initializer);
696
+ }
697
+ get importType() {
698
+ return t._importType;
699
+ }
700
+ withImportType(importType) {
701
+ return t._importType === importType ? t : new JsImport_1(t._id, t._prefix, t._markers, t._name, importType, t._imports, t._from, t._target, t._initializer);
669
702
  }
670
703
  get imports() {
671
704
  return t._imports;
672
705
  }
673
706
  withImports(imports) {
674
- return t._imports === imports ? t : new JsImport_1(t._id, t._prefix, t._markers, t._name, imports, t._from, t._target, t._initializer);
707
+ return t._imports === imports ? t : new JsImport_1(t._id, t._prefix, t._markers, t._name, t._importType, imports, t._from, t._target, t._initializer);
675
708
  }
676
709
  get initializer() {
677
710
  return t._initializer;
678
711
  }
679
712
  withInitializer(initializer) {
680
- return t._initializer === initializer ? t : new JsImport_1(t._id, t._prefix, t._markers, t._name, t._imports, t._from, t._target, initializer);
713
+ return t._initializer === initializer ? t : new JsImport_1(t._id, t._prefix, t._markers, t._name, t._importType, t._imports, t._from, t._target, initializer);
681
714
  }
682
715
  };
683
716
  }
@@ -686,6 +719,71 @@ exports.JsImport = JsImport;
686
719
  exports.JsImport = JsImport = JsImport_1 = __decorate([
687
720
  (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$JsImport")
688
721
  ], JsImport);
722
+ let JsImportSpecifier = JsImportSpecifier_1 = class JsImportSpecifier extends (0, support_types_1.JSMixin)(Object) {
723
+ constructor(id, prefix, markers, importType, specifier, _type) {
724
+ super();
725
+ this._id = id;
726
+ this._prefix = prefix;
727
+ this._markers = markers;
728
+ this._importType = importType;
729
+ this._specifier = specifier;
730
+ this._type = _type;
731
+ }
732
+ get id() {
733
+ return this._id;
734
+ }
735
+ withId(id) {
736
+ return id === this._id ? this : new JsImportSpecifier_1(id, this._prefix, this._markers, this._importType, this._specifier, this._type);
737
+ }
738
+ get prefix() {
739
+ return this._prefix;
740
+ }
741
+ withPrefix(prefix) {
742
+ return prefix === this._prefix ? this : new JsImportSpecifier_1(this._id, prefix, this._markers, this._importType, this._specifier, this._type);
743
+ }
744
+ get markers() {
745
+ return this._markers;
746
+ }
747
+ withMarkers(markers) {
748
+ return markers === this._markers ? this : new JsImportSpecifier_1(this._id, this._prefix, markers, this._importType, this._specifier, this._type);
749
+ }
750
+ get importType() {
751
+ return this._importType.element;
752
+ }
753
+ withImportType(importType) {
754
+ return this.padding.withImportType(this._importType.withElement(importType));
755
+ }
756
+ get specifier() {
757
+ return this._specifier;
758
+ }
759
+ withSpecifier(specifier) {
760
+ return specifier === this._specifier ? this : new JsImportSpecifier_1(this._id, this._prefix, this._markers, this._importType, specifier, this._type);
761
+ }
762
+ get type() {
763
+ return this._type;
764
+ }
765
+ withType(_type) {
766
+ return _type === this._type ? this : new JsImportSpecifier_1(this._id, this._prefix, this._markers, this._importType, this._specifier, _type);
767
+ }
768
+ acceptJavaScript(v, p) {
769
+ return v.visitJsImportSpecifier(this, p);
770
+ }
771
+ get padding() {
772
+ const t = this;
773
+ return new class {
774
+ get importType() {
775
+ return t._importType;
776
+ }
777
+ withImportType(importType) {
778
+ return t._importType === importType ? t : new JsImportSpecifier_1(t._id, t._prefix, t._markers, importType, t._specifier, t._type);
779
+ }
780
+ };
781
+ }
782
+ };
783
+ exports.JsImportSpecifier = JsImportSpecifier;
784
+ exports.JsImportSpecifier = JsImportSpecifier = JsImportSpecifier_1 = __decorate([
785
+ (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$JsImportSpecifier")
786
+ ], JsImportSpecifier);
689
787
  let JsBinary = JsBinary_1 = class JsBinary extends (0, support_types_1.JSMixin)(Object) {
690
788
  constructor(id, prefix, markers, left, operator, right, _type) {
691
789
  super();
@@ -859,106 +957,6 @@ exports.ObjectBindingDeclarations = ObjectBindingDeclarations;
859
957
  exports.ObjectBindingDeclarations = ObjectBindingDeclarations = ObjectBindingDeclarations_1 = __decorate([
860
958
  (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$ObjectBindingDeclarations")
861
959
  ], ObjectBindingDeclarations);
862
- (function (ObjectBindingDeclarations) {
863
- let Binding = class Binding extends (0, support_types_1.JSMixin)(Object) {
864
- constructor(id, prefix, markers, propertyName, name, dimensionsAfterName, afterVararg, initializer, variableType) {
865
- super();
866
- this._id = id;
867
- this._prefix = prefix;
868
- this._markers = markers;
869
- this._propertyName = propertyName;
870
- this._name = name;
871
- this._dimensionsAfterName = dimensionsAfterName;
872
- this._afterVararg = afterVararg;
873
- this._initializer = initializer;
874
- this._variableType = variableType;
875
- }
876
- get id() {
877
- return this._id;
878
- }
879
- withId(id) {
880
- return id === this._id ? this : new ObjectBindingDeclarations.Binding(id, this._prefix, this._markers, this._propertyName, this._name, this._dimensionsAfterName, this._afterVararg, this._initializer, this._variableType);
881
- }
882
- get prefix() {
883
- return this._prefix;
884
- }
885
- withPrefix(prefix) {
886
- return prefix === this._prefix ? this : new ObjectBindingDeclarations.Binding(this._id, prefix, this._markers, this._propertyName, this._name, this._dimensionsAfterName, this._afterVararg, this._initializer, this._variableType);
887
- }
888
- get markers() {
889
- return this._markers;
890
- }
891
- withMarkers(markers) {
892
- return markers === this._markers ? this : new ObjectBindingDeclarations.Binding(this._id, this._prefix, markers, this._propertyName, this._name, this._dimensionsAfterName, this._afterVararg, this._initializer, this._variableType);
893
- }
894
- get propertyName() {
895
- return this._propertyName === null ? null : this._propertyName.element;
896
- }
897
- withPropertyName(propertyName) {
898
- return this.padding.withPropertyName(tree_1.JRightPadded.withElement(this._propertyName, propertyName));
899
- }
900
- get name() {
901
- return this._name;
902
- }
903
- withName(name) {
904
- return name === this._name ? this : new ObjectBindingDeclarations.Binding(this._id, this._prefix, this._markers, this._propertyName, name, this._dimensionsAfterName, this._afterVararg, this._initializer, this._variableType);
905
- }
906
- get dimensionsAfterName() {
907
- return this._dimensionsAfterName;
908
- }
909
- withDimensionsAfterName(dimensionsAfterName) {
910
- return dimensionsAfterName === this._dimensionsAfterName ? this : new ObjectBindingDeclarations.Binding(this._id, this._prefix, this._markers, this._propertyName, this._name, dimensionsAfterName, this._afterVararg, this._initializer, this._variableType);
911
- }
912
- get afterVararg() {
913
- return this._afterVararg;
914
- }
915
- withAfterVararg(afterVararg) {
916
- return afterVararg === this._afterVararg ? this : new ObjectBindingDeclarations.Binding(this._id, this._prefix, this._markers, this._propertyName, this._name, this._dimensionsAfterName, afterVararg, this._initializer, this._variableType);
917
- }
918
- get initializer() {
919
- return this._initializer === null ? null : this._initializer.element;
920
- }
921
- withInitializer(initializer) {
922
- return this.padding.withInitializer(tree_1.JLeftPadded.withElement(this._initializer, initializer));
923
- }
924
- get variableType() {
925
- return this._variableType;
926
- }
927
- withVariableType(variableType) {
928
- return variableType === this._variableType ? this : new ObjectBindingDeclarations.Binding(this._id, this._prefix, this._markers, this._propertyName, this._name, this._dimensionsAfterName, this._afterVararg, this._initializer, variableType);
929
- }
930
- acceptJavaScript(v, p) {
931
- return v.visitBinding(this, p);
932
- }
933
- get type() {
934
- return extensions.getJavaType(this);
935
- }
936
- withType(type) {
937
- return extensions.withJavaType(this, type);
938
- }
939
- get padding() {
940
- const t = this;
941
- return new class {
942
- get propertyName() {
943
- return t._propertyName;
944
- }
945
- withPropertyName(propertyName) {
946
- return t._propertyName === propertyName ? t : new ObjectBindingDeclarations.Binding(t._id, t._prefix, t._markers, propertyName, t._name, t._dimensionsAfterName, t._afterVararg, t._initializer, t._variableType);
947
- }
948
- get initializer() {
949
- return t._initializer;
950
- }
951
- withInitializer(initializer) {
952
- return t._initializer === initializer ? t : new ObjectBindingDeclarations.Binding(t._id, t._prefix, t._markers, t._propertyName, t._name, t._dimensionsAfterName, t._afterVararg, initializer, t._variableType);
953
- }
954
- };
955
- }
956
- };
957
- Binding = __decorate([
958
- (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$ObjectBindingDeclarations$Binding")
959
- ], Binding);
960
- ObjectBindingDeclarations.Binding = Binding;
961
- })(ObjectBindingDeclarations || (exports.ObjectBindingDeclarations = ObjectBindingDeclarations = {}));
962
960
  let PropertyAssignment = PropertyAssignment_1 = class PropertyAssignment extends (0, support_types_1.JSMixin)(Object) {
963
961
  constructor(id, prefix, markers, name, initializer) {
964
962
  super();
@@ -1289,12 +1287,11 @@ exports.Tuple = Tuple = Tuple_1 = __decorate([
1289
1287
  (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$Tuple")
1290
1288
  ], Tuple);
1291
1289
  let TypeDeclaration = TypeDeclaration_1 = class TypeDeclaration extends (0, support_types_1.JSMixin)(Object) {
1292
- constructor(id, prefix, markers, leadingAnnotations, modifiers, name, typeParameters, initializer, _type) {
1290
+ constructor(id, prefix, markers, modifiers, name, typeParameters, initializer, _type) {
1293
1291
  super();
1294
1292
  this._id = id;
1295
1293
  this._prefix = prefix;
1296
1294
  this._markers = markers;
1297
- this._leadingAnnotations = leadingAnnotations;
1298
1295
  this._modifiers = modifiers;
1299
1296
  this._name = name;
1300
1297
  this._typeParameters = typeParameters;
@@ -1305,43 +1302,37 @@ let TypeDeclaration = TypeDeclaration_1 = class TypeDeclaration extends (0, supp
1305
1302
  return this._id;
1306
1303
  }
1307
1304
  withId(id) {
1308
- return id === this._id ? this : new TypeDeclaration_1(id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._name, this._typeParameters, this._initializer, this._type);
1305
+ return id === this._id ? this : new TypeDeclaration_1(id, this._prefix, this._markers, this._modifiers, this._name, this._typeParameters, this._initializer, this._type);
1309
1306
  }
1310
1307
  get prefix() {
1311
1308
  return this._prefix;
1312
1309
  }
1313
1310
  withPrefix(prefix) {
1314
- return prefix === this._prefix ? this : new TypeDeclaration_1(this._id, prefix, this._markers, this._leadingAnnotations, this._modifiers, this._name, this._typeParameters, this._initializer, this._type);
1311
+ return prefix === this._prefix ? this : new TypeDeclaration_1(this._id, prefix, this._markers, this._modifiers, this._name, this._typeParameters, this._initializer, this._type);
1315
1312
  }
1316
1313
  get markers() {
1317
1314
  return this._markers;
1318
1315
  }
1319
1316
  withMarkers(markers) {
1320
- return markers === this._markers ? this : new TypeDeclaration_1(this._id, this._prefix, markers, this._leadingAnnotations, this._modifiers, this._name, this._typeParameters, this._initializer, this._type);
1321
- }
1322
- get leadingAnnotations() {
1323
- return this._leadingAnnotations;
1324
- }
1325
- withLeadingAnnotations(leadingAnnotations) {
1326
- return leadingAnnotations === this._leadingAnnotations ? this : new TypeDeclaration_1(this._id, this._prefix, this._markers, leadingAnnotations, this._modifiers, this._name, this._typeParameters, this._initializer, this._type);
1317
+ return markers === this._markers ? this : new TypeDeclaration_1(this._id, this._prefix, markers, this._modifiers, this._name, this._typeParameters, this._initializer, this._type);
1327
1318
  }
1328
1319
  get modifiers() {
1329
1320
  return this._modifiers;
1330
1321
  }
1331
1322
  withModifiers(modifiers) {
1332
- return modifiers === this._modifiers ? this : new TypeDeclaration_1(this._id, this._prefix, this._markers, this._leadingAnnotations, modifiers, this._name, this._typeParameters, this._initializer, this._type);
1323
+ return modifiers === this._modifiers ? this : new TypeDeclaration_1(this._id, this._prefix, this._markers, modifiers, this._name, this._typeParameters, this._initializer, this._type);
1333
1324
  }
1334
1325
  get name() {
1335
1326
  return this._name;
1336
1327
  }
1337
1328
  withName(name) {
1338
- return name === this._name ? this : new TypeDeclaration_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, name, this._typeParameters, this._initializer, this._type);
1329
+ return name === this._name ? this : new TypeDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, name, this._typeParameters, this._initializer, this._type);
1339
1330
  }
1340
1331
  get typeParameters() {
1341
1332
  return this._typeParameters;
1342
1333
  }
1343
1334
  withTypeParameters(typeParameters) {
1344
- return typeParameters === this._typeParameters ? this : new TypeDeclaration_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._name, typeParameters, this._initializer, this._type);
1335
+ return typeParameters === this._typeParameters ? this : new TypeDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, this._name, typeParameters, this._initializer, this._type);
1345
1336
  }
1346
1337
  get initializer() {
1347
1338
  return this._initializer.element;
@@ -1353,7 +1344,7 @@ let TypeDeclaration = TypeDeclaration_1 = class TypeDeclaration extends (0, supp
1353
1344
  return this._type;
1354
1345
  }
1355
1346
  withType(_type) {
1356
- return _type === this._type ? this : new TypeDeclaration_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._name, this._typeParameters, this._initializer, _type);
1347
+ return _type === this._type ? this : new TypeDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, this._name, this._typeParameters, this._initializer, _type);
1357
1348
  }
1358
1349
  acceptJavaScript(v, p) {
1359
1350
  return v.visitTypeDeclaration(this, p);
@@ -1365,7 +1356,7 @@ let TypeDeclaration = TypeDeclaration_1 = class TypeDeclaration extends (0, supp
1365
1356
  return t._initializer;
1366
1357
  }
1367
1358
  withInitializer(initializer) {
1368
- return t._initializer === initializer ? t : new TypeDeclaration_1(t._id, t._prefix, t._markers, t._leadingAnnotations, t._modifiers, t._name, t._typeParameters, initializer, t._type);
1359
+ return t._initializer === initializer ? t : new TypeDeclaration_1(t._id, t._prefix, t._markers, t._modifiers, t._name, t._typeParameters, initializer, t._type);
1369
1360
  }
1370
1361
  };
1371
1362
  }
@@ -1421,6 +1412,53 @@ exports.TypeOf = TypeOf;
1421
1412
  exports.TypeOf = TypeOf = TypeOf_1 = __decorate([
1422
1413
  (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$TypeOf")
1423
1414
  ], TypeOf);
1415
+ let TypeQuery = TypeQuery_1 = class TypeQuery extends (0, support_types_1.JSMixin)(Object) {
1416
+ constructor(id, prefix, markers, typeExpression, _type) {
1417
+ super();
1418
+ this._id = id;
1419
+ this._prefix = prefix;
1420
+ this._markers = markers;
1421
+ this._typeExpression = typeExpression;
1422
+ this._type = _type;
1423
+ }
1424
+ get id() {
1425
+ return this._id;
1426
+ }
1427
+ withId(id) {
1428
+ return id === this._id ? this : new TypeQuery_1(id, this._prefix, this._markers, this._typeExpression, this._type);
1429
+ }
1430
+ get prefix() {
1431
+ return this._prefix;
1432
+ }
1433
+ withPrefix(prefix) {
1434
+ return prefix === this._prefix ? this : new TypeQuery_1(this._id, prefix, this._markers, this._typeExpression, this._type);
1435
+ }
1436
+ get markers() {
1437
+ return this._markers;
1438
+ }
1439
+ withMarkers(markers) {
1440
+ return markers === this._markers ? this : new TypeQuery_1(this._id, this._prefix, markers, this._typeExpression, this._type);
1441
+ }
1442
+ get typeExpression() {
1443
+ return this._typeExpression;
1444
+ }
1445
+ withTypeExpression(typeExpression) {
1446
+ return typeExpression === this._typeExpression ? this : new TypeQuery_1(this._id, this._prefix, this._markers, typeExpression, this._type);
1447
+ }
1448
+ get type() {
1449
+ return this._type;
1450
+ }
1451
+ withType(_type) {
1452
+ return _type === this._type ? this : new TypeQuery_1(this._id, this._prefix, this._markers, this._typeExpression, _type);
1453
+ }
1454
+ acceptJavaScript(v, p) {
1455
+ return v.visitTypeQuery(this, p);
1456
+ }
1457
+ };
1458
+ exports.TypeQuery = TypeQuery;
1459
+ exports.TypeQuery = TypeQuery = TypeQuery_1 = __decorate([
1460
+ (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$TypeQuery")
1461
+ ], TypeQuery);
1424
1462
  let TypeOperator = TypeOperator_1 = class TypeOperator extends (0, support_types_1.JSMixin)(Object) {
1425
1463
  constructor(id, prefix, markers, operator, expression) {
1426
1464
  super();
@@ -1564,6 +1602,7 @@ exports.Unary = Unary = Unary_1 = __decorate([
1564
1602
  Type[Type["Optional"] = 1] = "Optional";
1565
1603
  Type[Type["Exclamation"] = 2] = "Exclamation";
1566
1604
  Type[Type["QuestionDot"] = 3] = "QuestionDot";
1605
+ Type[Type["QuestionDotWithDot"] = 4] = "QuestionDotWithDot";
1567
1606
  })(Type = Unary.Type || (Unary.Type = {}));
1568
1607
  })(Unary || (exports.Unary = Unary = {}));
1569
1608
  let Union = Union_1 = class Union extends (0, support_types_1.JSMixin)(Object) {
@@ -1624,6 +1663,64 @@ exports.Union = Union;
1624
1663
  exports.Union = Union = Union_1 = __decorate([
1625
1664
  (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$Union")
1626
1665
  ], Union);
1666
+ let Intersection = Intersection_1 = class Intersection extends (0, support_types_1.JSMixin)(Object) {
1667
+ constructor(id, prefix, markers, types, _type) {
1668
+ super();
1669
+ this._id = id;
1670
+ this._prefix = prefix;
1671
+ this._markers = markers;
1672
+ this._types = types;
1673
+ this._type = _type;
1674
+ }
1675
+ get id() {
1676
+ return this._id;
1677
+ }
1678
+ withId(id) {
1679
+ return id === this._id ? this : new Intersection_1(id, this._prefix, this._markers, this._types, this._type);
1680
+ }
1681
+ get prefix() {
1682
+ return this._prefix;
1683
+ }
1684
+ withPrefix(prefix) {
1685
+ return prefix === this._prefix ? this : new Intersection_1(this._id, prefix, this._markers, this._types, this._type);
1686
+ }
1687
+ get markers() {
1688
+ return this._markers;
1689
+ }
1690
+ withMarkers(markers) {
1691
+ return markers === this._markers ? this : new Intersection_1(this._id, this._prefix, markers, this._types, this._type);
1692
+ }
1693
+ get types() {
1694
+ return tree_1.JRightPadded.getElements(this._types);
1695
+ }
1696
+ withTypes(types) {
1697
+ return this.padding.withTypes(tree_1.JRightPadded.withElements(this._types, types));
1698
+ }
1699
+ get type() {
1700
+ return this._type;
1701
+ }
1702
+ withType(_type) {
1703
+ return _type === this._type ? this : new Intersection_1(this._id, this._prefix, this._markers, this._types, _type);
1704
+ }
1705
+ acceptJavaScript(v, p) {
1706
+ return v.visitIntersection(this, p);
1707
+ }
1708
+ get padding() {
1709
+ const t = this;
1710
+ return new class {
1711
+ get types() {
1712
+ return t._types;
1713
+ }
1714
+ withTypes(types) {
1715
+ return t._types === types ? t : new Intersection_1(t._id, t._prefix, t._markers, types, t._type);
1716
+ }
1717
+ };
1718
+ }
1719
+ };
1720
+ exports.Intersection = Intersection;
1721
+ exports.Intersection = Intersection = Intersection_1 = __decorate([
1722
+ (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$Intersection")
1723
+ ], Intersection);
1627
1724
  let Void = Void_1 = class Void extends (0, support_types_1.JSMixin)(Object) {
1628
1725
  constructor(id, prefix, markers, expression) {
1629
1726
  super();
@@ -2073,73 +2170,363 @@ exports.JSMethodDeclaration = JSMethodDeclaration;
2073
2170
  exports.JSMethodDeclaration = JSMethodDeclaration = JSMethodDeclaration_1 = __decorate([
2074
2171
  (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$JSMethodDeclaration")
2075
2172
  ], JSMethodDeclaration);
2076
- let NamespaceDeclaration = NamespaceDeclaration_1 = class NamespaceDeclaration extends (0, support_types_1.JSMixin)(Object) {
2077
- constructor(id, prefix, markers, modifiers, keywordType, name, body) {
2173
+ let JSMethodInvocation = JSMethodInvocation_1 = class JSMethodInvocation extends (0, support_types_1.JSMixin)(Object) {
2174
+ constructor(id, prefix, markers, select, typeParameters, name, _arguments, methodType) {
2078
2175
  super();
2079
2176
  this._id = id;
2080
2177
  this._prefix = prefix;
2081
2178
  this._markers = markers;
2082
- this._modifiers = modifiers;
2083
- this._keywordType = keywordType;
2179
+ this._select = select;
2180
+ this._typeParameters = typeParameters;
2084
2181
  this._name = name;
2085
- this._body = body;
2182
+ this._arguments = _arguments;
2183
+ this._methodType = methodType;
2086
2184
  }
2087
2185
  get id() {
2088
2186
  return this._id;
2089
2187
  }
2090
2188
  withId(id) {
2091
- return id === this._id ? this : new NamespaceDeclaration_1(id, this._prefix, this._markers, this._modifiers, this._keywordType, this._name, this._body);
2189
+ return id === this._id ? this : new JSMethodInvocation_1(id, this._prefix, this._markers, this._select, this._typeParameters, this._name, this._arguments, this._methodType);
2092
2190
  }
2093
2191
  get prefix() {
2094
2192
  return this._prefix;
2095
2193
  }
2096
2194
  withPrefix(prefix) {
2097
- return prefix === this._prefix ? this : new NamespaceDeclaration_1(this._id, prefix, this._markers, this._modifiers, this._keywordType, this._name, this._body);
2195
+ return prefix === this._prefix ? this : new JSMethodInvocation_1(this._id, prefix, this._markers, this._select, this._typeParameters, this._name, this._arguments, this._methodType);
2098
2196
  }
2099
2197
  get markers() {
2100
2198
  return this._markers;
2101
2199
  }
2102
2200
  withMarkers(markers) {
2103
- return markers === this._markers ? this : new NamespaceDeclaration_1(this._id, this._prefix, markers, this._modifiers, this._keywordType, this._name, this._body);
2201
+ return markers === this._markers ? this : new JSMethodInvocation_1(this._id, this._prefix, markers, this._select, this._typeParameters, this._name, this._arguments, this._methodType);
2104
2202
  }
2105
- get modifiers() {
2106
- return this._modifiers;
2203
+ get select() {
2204
+ return this._select === null ? null : this._select.element;
2107
2205
  }
2108
- withModifiers(modifiers) {
2109
- return modifiers === this._modifiers ? this : new NamespaceDeclaration_1(this._id, this._prefix, this._markers, modifiers, this._keywordType, this._name, this._body);
2206
+ withSelect(select) {
2207
+ return this.padding.withSelect(tree_1.JRightPadded.withElement(this._select, select));
2110
2208
  }
2111
- get keywordType() {
2112
- return this._keywordType.element;
2209
+ get typeParameters() {
2210
+ return this._typeParameters === null ? null : this._typeParameters.elements;
2113
2211
  }
2114
- withKeywordType(keywordType) {
2115
- return this.padding.withKeywordType(this._keywordType.withElement(keywordType));
2212
+ withTypeParameters(typeParameters) {
2213
+ return this.padding.withTypeParameters(tree_1.JContainer.withElementsNullable(this._typeParameters, typeParameters));
2116
2214
  }
2117
2215
  get name() {
2118
- return this._name.element;
2216
+ return this._name;
2119
2217
  }
2120
2218
  withName(name) {
2121
- return this.padding.withName(this._name.withElement(name));
2219
+ return name === this._name ? this : new JSMethodInvocation_1(this._id, this._prefix, this._markers, this._select, this._typeParameters, name, this._arguments, this._methodType);
2122
2220
  }
2123
- get body() {
2124
- return this._body;
2221
+ get arguments() {
2222
+ return this._arguments.elements;
2125
2223
  }
2126
- withBody(body) {
2127
- return body === this._body ? this : new NamespaceDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, this._keywordType, this._name, body);
2224
+ withArguments(_arguments) {
2225
+ return this.padding.withArguments(tree_1.JContainer.withElements(this._arguments, _arguments));
2226
+ }
2227
+ get methodType() {
2228
+ return this._methodType;
2229
+ }
2230
+ withMethodType(methodType) {
2231
+ return methodType === this._methodType ? this : new JSMethodInvocation_1(this._id, this._prefix, this._markers, this._select, this._typeParameters, this._name, this._arguments, methodType);
2128
2232
  }
2129
2233
  acceptJavaScript(v, p) {
2130
- return v.visitNamespaceDeclaration(this, p);
2234
+ return v.visitJSMethodInvocation(this, p);
2235
+ }
2236
+ get type() {
2237
+ return extensions.getJavaType(this);
2238
+ }
2239
+ withType(type) {
2240
+ return extensions.withJavaType(this, type);
2131
2241
  }
2132
2242
  get padding() {
2133
2243
  const t = this;
2134
2244
  return new class {
2135
- get keywordType() {
2136
- return t._keywordType;
2245
+ get select() {
2246
+ return t._select;
2137
2247
  }
2138
- withKeywordType(keywordType) {
2139
- return t._keywordType === keywordType ? t : new NamespaceDeclaration_1(t._id, t._prefix, t._markers, t._modifiers, keywordType, t._name, t._body);
2248
+ withSelect(select) {
2249
+ return t._select === select ? t : new JSMethodInvocation_1(t._id, t._prefix, t._markers, select, t._typeParameters, t._name, t._arguments, t._methodType);
2140
2250
  }
2141
- get name() {
2142
- return t._name;
2251
+ get typeParameters() {
2252
+ return t._typeParameters;
2253
+ }
2254
+ withTypeParameters(typeParameters) {
2255
+ return t._typeParameters === typeParameters ? t : new JSMethodInvocation_1(t._id, t._prefix, t._markers, t._select, typeParameters, t._name, t._arguments, t._methodType);
2256
+ }
2257
+ get arguments() {
2258
+ return t._arguments;
2259
+ }
2260
+ withArguments(_arguments) {
2261
+ return t._arguments === _arguments ? t : new JSMethodInvocation_1(t._id, t._prefix, t._markers, t._select, t._typeParameters, t._name, _arguments, t._methodType);
2262
+ }
2263
+ };
2264
+ }
2265
+ };
2266
+ exports.JSMethodInvocation = JSMethodInvocation;
2267
+ exports.JSMethodInvocation = JSMethodInvocation = JSMethodInvocation_1 = __decorate([
2268
+ (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$JSMethodInvocation")
2269
+ ], JSMethodInvocation);
2270
+ let JSForOfLoop = JSForOfLoop_1 = class JSForOfLoop extends (0, support_types_1.JSMixin)(Object) {
2271
+ constructor(id, prefix, markers, await, control, body) {
2272
+ super();
2273
+ this._id = id;
2274
+ this._prefix = prefix;
2275
+ this._markers = markers;
2276
+ this._await = await;
2277
+ this._control = control;
2278
+ this._body = body;
2279
+ }
2280
+ get id() {
2281
+ return this._id;
2282
+ }
2283
+ withId(id) {
2284
+ return id === this._id ? this : new JSForOfLoop_1(id, this._prefix, this._markers, this._await, this._control, this._body);
2285
+ }
2286
+ get prefix() {
2287
+ return this._prefix;
2288
+ }
2289
+ withPrefix(prefix) {
2290
+ return prefix === this._prefix ? this : new JSForOfLoop_1(this._id, prefix, this._markers, this._await, this._control, this._body);
2291
+ }
2292
+ get markers() {
2293
+ return this._markers;
2294
+ }
2295
+ withMarkers(markers) {
2296
+ return markers === this._markers ? this : new JSForOfLoop_1(this._id, this._prefix, markers, this._await, this._control, this._body);
2297
+ }
2298
+ get await() {
2299
+ return this._await.element;
2300
+ }
2301
+ withAwait(await) {
2302
+ return this.padding.withAwait(this._await.withElement(await));
2303
+ }
2304
+ get control() {
2305
+ return this._control;
2306
+ }
2307
+ withControl(control) {
2308
+ return control === this._control ? this : new JSForOfLoop_1(this._id, this._prefix, this._markers, this._await, control, this._body);
2309
+ }
2310
+ get body() {
2311
+ return this._body.element;
2312
+ }
2313
+ withBody(body) {
2314
+ return this.padding.withBody(this._body.withElement(body));
2315
+ }
2316
+ acceptJavaScript(v, p) {
2317
+ return v.visitJSForOfLoop(this, p);
2318
+ }
2319
+ get padding() {
2320
+ const t = this;
2321
+ return new class {
2322
+ get await() {
2323
+ return t._await;
2324
+ }
2325
+ withAwait(await) {
2326
+ return t._await === await ? t : new JSForOfLoop_1(t._id, t._prefix, t._markers, await, t._control, t._body);
2327
+ }
2328
+ get body() {
2329
+ return t._body;
2330
+ }
2331
+ withBody(body) {
2332
+ return t._body === body ? t : new JSForOfLoop_1(t._id, t._prefix, t._markers, t._await, t._control, body);
2333
+ }
2334
+ };
2335
+ }
2336
+ };
2337
+ exports.JSForOfLoop = JSForOfLoop;
2338
+ exports.JSForOfLoop = JSForOfLoop = JSForOfLoop_1 = __decorate([
2339
+ (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$JSForOfLoop")
2340
+ ], JSForOfLoop);
2341
+ let JSForInLoop = JSForInLoop_1 = class JSForInLoop extends (0, support_types_1.JSMixin)(Object) {
2342
+ constructor(id, prefix, markers, control, body) {
2343
+ super();
2344
+ this._id = id;
2345
+ this._prefix = prefix;
2346
+ this._markers = markers;
2347
+ this._control = control;
2348
+ this._body = body;
2349
+ }
2350
+ get id() {
2351
+ return this._id;
2352
+ }
2353
+ withId(id) {
2354
+ return id === this._id ? this : new JSForInLoop_1(id, this._prefix, this._markers, this._control, this._body);
2355
+ }
2356
+ get prefix() {
2357
+ return this._prefix;
2358
+ }
2359
+ withPrefix(prefix) {
2360
+ return prefix === this._prefix ? this : new JSForInLoop_1(this._id, prefix, this._markers, this._control, this._body);
2361
+ }
2362
+ get markers() {
2363
+ return this._markers;
2364
+ }
2365
+ withMarkers(markers) {
2366
+ return markers === this._markers ? this : new JSForInLoop_1(this._id, this._prefix, markers, this._control, this._body);
2367
+ }
2368
+ get control() {
2369
+ return this._control;
2370
+ }
2371
+ withControl(control) {
2372
+ return control === this._control ? this : new JSForInLoop_1(this._id, this._prefix, this._markers, control, this._body);
2373
+ }
2374
+ get body() {
2375
+ return this._body.element;
2376
+ }
2377
+ withBody(body) {
2378
+ return this.padding.withBody(this._body.withElement(body));
2379
+ }
2380
+ acceptJavaScript(v, p) {
2381
+ return v.visitJSForInLoop(this, p);
2382
+ }
2383
+ get padding() {
2384
+ const t = this;
2385
+ return new class {
2386
+ get body() {
2387
+ return t._body;
2388
+ }
2389
+ withBody(body) {
2390
+ return t._body === body ? t : new JSForInLoop_1(t._id, t._prefix, t._markers, t._control, body);
2391
+ }
2392
+ };
2393
+ }
2394
+ };
2395
+ exports.JSForInLoop = JSForInLoop;
2396
+ exports.JSForInLoop = JSForInLoop = JSForInLoop_1 = __decorate([
2397
+ (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$JSForInLoop")
2398
+ ], JSForInLoop);
2399
+ let JSForInOfLoopControl = JSForInOfLoopControl_1 = class JSForInOfLoopControl extends (0, support_types_1.JSMixin)(Object) {
2400
+ constructor(id, prefix, markers, variable, iterable) {
2401
+ super();
2402
+ this._id = id;
2403
+ this._prefix = prefix;
2404
+ this._markers = markers;
2405
+ this._variable = variable;
2406
+ this._iterable = iterable;
2407
+ }
2408
+ get id() {
2409
+ return this._id;
2410
+ }
2411
+ withId(id) {
2412
+ return id === this._id ? this : new JSForInOfLoopControl_1(id, this._prefix, this._markers, this._variable, this._iterable);
2413
+ }
2414
+ get prefix() {
2415
+ return this._prefix;
2416
+ }
2417
+ withPrefix(prefix) {
2418
+ return prefix === this._prefix ? this : new JSForInOfLoopControl_1(this._id, prefix, this._markers, this._variable, this._iterable);
2419
+ }
2420
+ get markers() {
2421
+ return this._markers;
2422
+ }
2423
+ withMarkers(markers) {
2424
+ return markers === this._markers ? this : new JSForInOfLoopControl_1(this._id, this._prefix, markers, this._variable, this._iterable);
2425
+ }
2426
+ get variable() {
2427
+ return this._variable.element;
2428
+ }
2429
+ withVariable(variable) {
2430
+ return this.padding.withVariable(this._variable.withElement(variable));
2431
+ }
2432
+ get iterable() {
2433
+ return this._iterable.element;
2434
+ }
2435
+ withIterable(iterable) {
2436
+ return this.padding.withIterable(this._iterable.withElement(iterable));
2437
+ }
2438
+ acceptJavaScript(v, p) {
2439
+ return v.visitJSForInOfLoopControl(this, p);
2440
+ }
2441
+ get padding() {
2442
+ const t = this;
2443
+ return new class {
2444
+ get variable() {
2445
+ return t._variable;
2446
+ }
2447
+ withVariable(variable) {
2448
+ return t._variable === variable ? t : new JSForInOfLoopControl_1(t._id, t._prefix, t._markers, variable, t._iterable);
2449
+ }
2450
+ get iterable() {
2451
+ return t._iterable;
2452
+ }
2453
+ withIterable(iterable) {
2454
+ return t._iterable === iterable ? t : new JSForInOfLoopControl_1(t._id, t._prefix, t._markers, t._variable, iterable);
2455
+ }
2456
+ };
2457
+ }
2458
+ };
2459
+ exports.JSForInOfLoopControl = JSForInOfLoopControl;
2460
+ exports.JSForInOfLoopControl = JSForInOfLoopControl = JSForInOfLoopControl_1 = __decorate([
2461
+ (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$JSForInOfLoopControl")
2462
+ ], JSForInOfLoopControl);
2463
+ let NamespaceDeclaration = NamespaceDeclaration_1 = class NamespaceDeclaration extends (0, support_types_1.JSMixin)(Object) {
2464
+ constructor(id, prefix, markers, modifiers, keywordType, name, body) {
2465
+ super();
2466
+ this._id = id;
2467
+ this._prefix = prefix;
2468
+ this._markers = markers;
2469
+ this._modifiers = modifiers;
2470
+ this._keywordType = keywordType;
2471
+ this._name = name;
2472
+ this._body = body;
2473
+ }
2474
+ get id() {
2475
+ return this._id;
2476
+ }
2477
+ withId(id) {
2478
+ return id === this._id ? this : new NamespaceDeclaration_1(id, this._prefix, this._markers, this._modifiers, this._keywordType, this._name, this._body);
2479
+ }
2480
+ get prefix() {
2481
+ return this._prefix;
2482
+ }
2483
+ withPrefix(prefix) {
2484
+ return prefix === this._prefix ? this : new NamespaceDeclaration_1(this._id, prefix, this._markers, this._modifiers, this._keywordType, this._name, this._body);
2485
+ }
2486
+ get markers() {
2487
+ return this._markers;
2488
+ }
2489
+ withMarkers(markers) {
2490
+ return markers === this._markers ? this : new NamespaceDeclaration_1(this._id, this._prefix, markers, this._modifiers, this._keywordType, this._name, this._body);
2491
+ }
2492
+ get modifiers() {
2493
+ return this._modifiers;
2494
+ }
2495
+ withModifiers(modifiers) {
2496
+ return modifiers === this._modifiers ? this : new NamespaceDeclaration_1(this._id, this._prefix, this._markers, modifiers, this._keywordType, this._name, this._body);
2497
+ }
2498
+ get keywordType() {
2499
+ return this._keywordType.element;
2500
+ }
2501
+ withKeywordType(keywordType) {
2502
+ return this.padding.withKeywordType(this._keywordType.withElement(keywordType));
2503
+ }
2504
+ get name() {
2505
+ return this._name.element;
2506
+ }
2507
+ withName(name) {
2508
+ return this.padding.withName(this._name.withElement(name));
2509
+ }
2510
+ get body() {
2511
+ return this._body;
2512
+ }
2513
+ withBody(body) {
2514
+ return body === this._body ? this : new NamespaceDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, this._keywordType, this._name, body);
2515
+ }
2516
+ acceptJavaScript(v, p) {
2517
+ return v.visitNamespaceDeclaration(this, p);
2518
+ }
2519
+ get padding() {
2520
+ const t = this;
2521
+ return new class {
2522
+ get keywordType() {
2523
+ return t._keywordType;
2524
+ }
2525
+ withKeywordType(keywordType) {
2526
+ return t._keywordType === keywordType ? t : new NamespaceDeclaration_1(t._id, t._prefix, t._markers, t._modifiers, keywordType, t._name, t._body);
2527
+ }
2528
+ get name() {
2529
+ return t._name;
2143
2530
  }
2144
2531
  withName(name) {
2145
2532
  return t._name === name ? t : new NamespaceDeclaration_1(t._id, t._prefix, t._markers, t._modifiers, t._keywordType, name, t._body);
@@ -2158,4 +2545,364 @@ exports.NamespaceDeclaration = NamespaceDeclaration = NamespaceDeclaration_1 = _
2158
2545
  KeywordType[KeywordType["Module"] = 1] = "Module";
2159
2546
  })(KeywordType = NamespaceDeclaration.KeywordType || (NamespaceDeclaration.KeywordType = {}));
2160
2547
  })(NamespaceDeclaration || (exports.NamespaceDeclaration = NamespaceDeclaration = {}));
2548
+ let FunctionDeclaration = FunctionDeclaration_1 = class FunctionDeclaration extends (0, support_types_1.JSMixin)(Object) {
2549
+ constructor(id, prefix, markers, modifiers, name, typeParameters, parameters, returnTypeExpression, body, _type) {
2550
+ super();
2551
+ this._id = id;
2552
+ this._prefix = prefix;
2553
+ this._markers = markers;
2554
+ this._modifiers = modifiers;
2555
+ this._name = name;
2556
+ this._typeParameters = typeParameters;
2557
+ this._parameters = parameters;
2558
+ this._returnTypeExpression = returnTypeExpression;
2559
+ this._body = body;
2560
+ this._type = _type;
2561
+ }
2562
+ get id() {
2563
+ return this._id;
2564
+ }
2565
+ withId(id) {
2566
+ return id === this._id ? this : new FunctionDeclaration_1(id, this._prefix, this._markers, this._modifiers, this._name, this._typeParameters, this._parameters, this._returnTypeExpression, this._body, this._type);
2567
+ }
2568
+ get prefix() {
2569
+ return this._prefix;
2570
+ }
2571
+ withPrefix(prefix) {
2572
+ return prefix === this._prefix ? this : new FunctionDeclaration_1(this._id, prefix, this._markers, this._modifiers, this._name, this._typeParameters, this._parameters, this._returnTypeExpression, this._body, this._type);
2573
+ }
2574
+ get markers() {
2575
+ return this._markers;
2576
+ }
2577
+ withMarkers(markers) {
2578
+ return markers === this._markers ? this : new FunctionDeclaration_1(this._id, this._prefix, markers, this._modifiers, this._name, this._typeParameters, this._parameters, this._returnTypeExpression, this._body, this._type);
2579
+ }
2580
+ get modifiers() {
2581
+ return this._modifiers;
2582
+ }
2583
+ withModifiers(modifiers) {
2584
+ return modifiers === this._modifiers ? this : new FunctionDeclaration_1(this._id, this._prefix, this._markers, modifiers, this._name, this._typeParameters, this._parameters, this._returnTypeExpression, this._body, this._type);
2585
+ }
2586
+ get name() {
2587
+ return this._name;
2588
+ }
2589
+ withName(name) {
2590
+ return name === this._name ? this : new FunctionDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, name, this._typeParameters, this._parameters, this._returnTypeExpression, this._body, this._type);
2591
+ }
2592
+ get typeParameters() {
2593
+ return this._typeParameters;
2594
+ }
2595
+ withTypeParameters(typeParameters) {
2596
+ return typeParameters === this._typeParameters ? this : new FunctionDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, this._name, typeParameters, this._parameters, this._returnTypeExpression, this._body, this._type);
2597
+ }
2598
+ get parameters() {
2599
+ return this._parameters.elements;
2600
+ }
2601
+ withParameters(parameters) {
2602
+ return this.padding.withParameters(tree_1.JContainer.withElements(this._parameters, parameters));
2603
+ }
2604
+ get returnTypeExpression() {
2605
+ return this._returnTypeExpression;
2606
+ }
2607
+ withReturnTypeExpression(returnTypeExpression) {
2608
+ return returnTypeExpression === this._returnTypeExpression ? this : new FunctionDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, this._name, this._typeParameters, this._parameters, returnTypeExpression, this._body, this._type);
2609
+ }
2610
+ get body() {
2611
+ return this._body;
2612
+ }
2613
+ withBody(body) {
2614
+ return body === this._body ? this : new FunctionDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, this._name, this._typeParameters, this._parameters, this._returnTypeExpression, body, this._type);
2615
+ }
2616
+ get type() {
2617
+ return this._type;
2618
+ }
2619
+ withType(_type) {
2620
+ return _type === this._type ? this : new FunctionDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, this._name, this._typeParameters, this._parameters, this._returnTypeExpression, this._body, _type);
2621
+ }
2622
+ acceptJavaScript(v, p) {
2623
+ return v.visitFunctionDeclaration(this, p);
2624
+ }
2625
+ get padding() {
2626
+ const t = this;
2627
+ return new class {
2628
+ get parameters() {
2629
+ return t._parameters;
2630
+ }
2631
+ withParameters(parameters) {
2632
+ return t._parameters === parameters ? t : new FunctionDeclaration_1(t._id, t._prefix, t._markers, t._modifiers, t._name, t._typeParameters, parameters, t._returnTypeExpression, t._body, t._type);
2633
+ }
2634
+ };
2635
+ }
2636
+ };
2637
+ exports.FunctionDeclaration = FunctionDeclaration;
2638
+ exports.FunctionDeclaration = FunctionDeclaration = FunctionDeclaration_1 = __decorate([
2639
+ (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$FunctionDeclaration")
2640
+ ], FunctionDeclaration);
2641
+ let TypeLiteral = TypeLiteral_1 = class TypeLiteral extends (0, support_types_1.JSMixin)(Object) {
2642
+ constructor(id, prefix, markers, members, _type) {
2643
+ super();
2644
+ this._id = id;
2645
+ this._prefix = prefix;
2646
+ this._markers = markers;
2647
+ this._members = members;
2648
+ this._type = _type;
2649
+ }
2650
+ get id() {
2651
+ return this._id;
2652
+ }
2653
+ withId(id) {
2654
+ return id === this._id ? this : new TypeLiteral_1(id, this._prefix, this._markers, this._members, this._type);
2655
+ }
2656
+ get prefix() {
2657
+ return this._prefix;
2658
+ }
2659
+ withPrefix(prefix) {
2660
+ return prefix === this._prefix ? this : new TypeLiteral_1(this._id, prefix, this._markers, this._members, this._type);
2661
+ }
2662
+ get markers() {
2663
+ return this._markers;
2664
+ }
2665
+ withMarkers(markers) {
2666
+ return markers === this._markers ? this : new TypeLiteral_1(this._id, this._prefix, markers, this._members, this._type);
2667
+ }
2668
+ get members() {
2669
+ return this._members;
2670
+ }
2671
+ withMembers(members) {
2672
+ return members === this._members ? this : new TypeLiteral_1(this._id, this._prefix, this._markers, members, this._type);
2673
+ }
2674
+ get type() {
2675
+ return this._type;
2676
+ }
2677
+ withType(_type) {
2678
+ return _type === this._type ? this : new TypeLiteral_1(this._id, this._prefix, this._markers, this._members, _type);
2679
+ }
2680
+ acceptJavaScript(v, p) {
2681
+ return v.visitTypeLiteral(this, p);
2682
+ }
2683
+ };
2684
+ exports.TypeLiteral = TypeLiteral;
2685
+ exports.TypeLiteral = TypeLiteral = TypeLiteral_1 = __decorate([
2686
+ (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$TypeLiteral")
2687
+ ], TypeLiteral);
2688
+ let IndexSignatureDeclaration = IndexSignatureDeclaration_1 = class IndexSignatureDeclaration extends (0, support_types_1.JSMixin)(Object) {
2689
+ constructor(id, prefix, markers, modifiers, parameters, typeExpression, _type) {
2690
+ super();
2691
+ this._id = id;
2692
+ this._prefix = prefix;
2693
+ this._markers = markers;
2694
+ this._modifiers = modifiers;
2695
+ this._parameters = parameters;
2696
+ this._typeExpression = typeExpression;
2697
+ this._type = _type;
2698
+ }
2699
+ get id() {
2700
+ return this._id;
2701
+ }
2702
+ withId(id) {
2703
+ return id === this._id ? this : new IndexSignatureDeclaration_1(id, this._prefix, this._markers, this._modifiers, this._parameters, this._typeExpression, this._type);
2704
+ }
2705
+ get prefix() {
2706
+ return this._prefix;
2707
+ }
2708
+ withPrefix(prefix) {
2709
+ return prefix === this._prefix ? this : new IndexSignatureDeclaration_1(this._id, prefix, this._markers, this._modifiers, this._parameters, this._typeExpression, this._type);
2710
+ }
2711
+ get markers() {
2712
+ return this._markers;
2713
+ }
2714
+ withMarkers(markers) {
2715
+ return markers === this._markers ? this : new IndexSignatureDeclaration_1(this._id, this._prefix, markers, this._modifiers, this._parameters, this._typeExpression, this._type);
2716
+ }
2717
+ get modifiers() {
2718
+ return this._modifiers;
2719
+ }
2720
+ withModifiers(modifiers) {
2721
+ return modifiers === this._modifiers ? this : new IndexSignatureDeclaration_1(this._id, this._prefix, this._markers, modifiers, this._parameters, this._typeExpression, this._type);
2722
+ }
2723
+ get parameters() {
2724
+ return this._parameters.elements;
2725
+ }
2726
+ withParameters(parameters) {
2727
+ return this.padding.withParameters(tree_1.JContainer.withElements(this._parameters, parameters));
2728
+ }
2729
+ get typeExpression() {
2730
+ return this._typeExpression.element;
2731
+ }
2732
+ withTypeExpression(typeExpression) {
2733
+ return this.padding.withTypeExpression(this._typeExpression.withElement(typeExpression));
2734
+ }
2735
+ get type() {
2736
+ return this._type;
2737
+ }
2738
+ withType(_type) {
2739
+ return _type === this._type ? this : new IndexSignatureDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, this._parameters, this._typeExpression, _type);
2740
+ }
2741
+ acceptJavaScript(v, p) {
2742
+ return v.visitIndexSignatureDeclaration(this, p);
2743
+ }
2744
+ get padding() {
2745
+ const t = this;
2746
+ return new class {
2747
+ get parameters() {
2748
+ return t._parameters;
2749
+ }
2750
+ withParameters(parameters) {
2751
+ return t._parameters === parameters ? t : new IndexSignatureDeclaration_1(t._id, t._prefix, t._markers, t._modifiers, parameters, t._typeExpression, t._type);
2752
+ }
2753
+ get typeExpression() {
2754
+ return t._typeExpression;
2755
+ }
2756
+ withTypeExpression(typeExpression) {
2757
+ return t._typeExpression === typeExpression ? t : new IndexSignatureDeclaration_1(t._id, t._prefix, t._markers, t._modifiers, t._parameters, typeExpression, t._type);
2758
+ }
2759
+ };
2760
+ }
2761
+ };
2762
+ exports.IndexSignatureDeclaration = IndexSignatureDeclaration;
2763
+ exports.IndexSignatureDeclaration = IndexSignatureDeclaration = IndexSignatureDeclaration_1 = __decorate([
2764
+ (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$IndexSignatureDeclaration")
2765
+ ], IndexSignatureDeclaration);
2766
+ let ArrayBindingPattern = ArrayBindingPattern_1 = class ArrayBindingPattern extends (0, support_types_1.JSMixin)(Object) {
2767
+ constructor(id, prefix, markers, elements, _type) {
2768
+ super();
2769
+ this._id = id;
2770
+ this._prefix = prefix;
2771
+ this._markers = markers;
2772
+ this._elements = elements;
2773
+ this._type = _type;
2774
+ }
2775
+ get id() {
2776
+ return this._id;
2777
+ }
2778
+ withId(id) {
2779
+ return id === this._id ? this : new ArrayBindingPattern_1(id, this._prefix, this._markers, this._elements, this._type);
2780
+ }
2781
+ get prefix() {
2782
+ return this._prefix;
2783
+ }
2784
+ withPrefix(prefix) {
2785
+ return prefix === this._prefix ? this : new ArrayBindingPattern_1(this._id, prefix, this._markers, this._elements, this._type);
2786
+ }
2787
+ get markers() {
2788
+ return this._markers;
2789
+ }
2790
+ withMarkers(markers) {
2791
+ return markers === this._markers ? this : new ArrayBindingPattern_1(this._id, this._prefix, markers, this._elements, this._type);
2792
+ }
2793
+ get elements() {
2794
+ return this._elements.elements;
2795
+ }
2796
+ withElements(elements) {
2797
+ return this.padding.withElements(tree_1.JContainer.withElements(this._elements, elements));
2798
+ }
2799
+ get type() {
2800
+ return this._type;
2801
+ }
2802
+ withType(_type) {
2803
+ return _type === this._type ? this : new ArrayBindingPattern_1(this._id, this._prefix, this._markers, this._elements, _type);
2804
+ }
2805
+ acceptJavaScript(v, p) {
2806
+ return v.visitArrayBindingPattern(this, p);
2807
+ }
2808
+ get padding() {
2809
+ const t = this;
2810
+ return new class {
2811
+ get elements() {
2812
+ return t._elements;
2813
+ }
2814
+ withElements(elements) {
2815
+ return t._elements === elements ? t : new ArrayBindingPattern_1(t._id, t._prefix, t._markers, elements, t._type);
2816
+ }
2817
+ };
2818
+ }
2819
+ };
2820
+ exports.ArrayBindingPattern = ArrayBindingPattern;
2821
+ exports.ArrayBindingPattern = ArrayBindingPattern = ArrayBindingPattern_1 = __decorate([
2822
+ (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$ArrayBindingPattern")
2823
+ ], ArrayBindingPattern);
2824
+ let BindingElement = BindingElement_1 = class BindingElement extends (0, support_types_1.JSMixin)(Object) {
2825
+ constructor(id, prefix, markers, propertyName, name, initializer, variableType) {
2826
+ super();
2827
+ this._id = id;
2828
+ this._prefix = prefix;
2829
+ this._markers = markers;
2830
+ this._propertyName = propertyName;
2831
+ this._name = name;
2832
+ this._initializer = initializer;
2833
+ this._variableType = variableType;
2834
+ }
2835
+ get id() {
2836
+ return this._id;
2837
+ }
2838
+ withId(id) {
2839
+ return id === this._id ? this : new BindingElement_1(id, this._prefix, this._markers, this._propertyName, this._name, this._initializer, this._variableType);
2840
+ }
2841
+ get prefix() {
2842
+ return this._prefix;
2843
+ }
2844
+ withPrefix(prefix) {
2845
+ return prefix === this._prefix ? this : new BindingElement_1(this._id, prefix, this._markers, this._propertyName, this._name, this._initializer, this._variableType);
2846
+ }
2847
+ get markers() {
2848
+ return this._markers;
2849
+ }
2850
+ withMarkers(markers) {
2851
+ return markers === this._markers ? this : new BindingElement_1(this._id, this._prefix, markers, this._propertyName, this._name, this._initializer, this._variableType);
2852
+ }
2853
+ get propertyName() {
2854
+ return this._propertyName === null ? null : this._propertyName.element;
2855
+ }
2856
+ withPropertyName(propertyName) {
2857
+ return this.padding.withPropertyName(tree_1.JRightPadded.withElement(this._propertyName, propertyName));
2858
+ }
2859
+ get name() {
2860
+ return this._name;
2861
+ }
2862
+ withName(name) {
2863
+ return name === this._name ? this : new BindingElement_1(this._id, this._prefix, this._markers, this._propertyName, name, this._initializer, this._variableType);
2864
+ }
2865
+ get initializer() {
2866
+ return this._initializer === null ? null : this._initializer.element;
2867
+ }
2868
+ withInitializer(initializer) {
2869
+ return this.padding.withInitializer(tree_1.JLeftPadded.withElement(this._initializer, initializer));
2870
+ }
2871
+ get variableType() {
2872
+ return this._variableType;
2873
+ }
2874
+ withVariableType(variableType) {
2875
+ return variableType === this._variableType ? this : new BindingElement_1(this._id, this._prefix, this._markers, this._propertyName, this._name, this._initializer, variableType);
2876
+ }
2877
+ acceptJavaScript(v, p) {
2878
+ return v.visitBindingElement(this, p);
2879
+ }
2880
+ get type() {
2881
+ return extensions.getJavaType(this);
2882
+ }
2883
+ withType(type) {
2884
+ return extensions.withJavaType(this, type);
2885
+ }
2886
+ get padding() {
2887
+ const t = this;
2888
+ return new class {
2889
+ get propertyName() {
2890
+ return t._propertyName;
2891
+ }
2892
+ withPropertyName(propertyName) {
2893
+ return t._propertyName === propertyName ? t : new BindingElement_1(t._id, t._prefix, t._markers, propertyName, t._name, t._initializer, t._variableType);
2894
+ }
2895
+ get initializer() {
2896
+ return t._initializer;
2897
+ }
2898
+ withInitializer(initializer) {
2899
+ return t._initializer === initializer ? t : new BindingElement_1(t._id, t._prefix, t._markers, t._propertyName, t._name, initializer, t._variableType);
2900
+ }
2901
+ };
2902
+ }
2903
+ };
2904
+ exports.BindingElement = BindingElement;
2905
+ exports.BindingElement = BindingElement = BindingElement_1 = __decorate([
2906
+ (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$BindingElement")
2907
+ ], BindingElement);
2161
2908
  //# sourceMappingURL=tree.js.map