@openrewrite/rewrite 0.22.0 → 0.22.2
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.
- package/dist/src/javascript/parser.d.ts +30 -28
- package/dist/src/javascript/parser.d.ts.map +1 -1
- package/dist/src/javascript/parser.js +108 -58
- package/dist/src/javascript/parser.js.map +1 -1
- package/dist/src/javascript/remote/receiver.d.ts.map +1 -1
- package/dist/src/javascript/remote/receiver.js +155 -45
- package/dist/src/javascript/remote/receiver.js.map +1 -1
- package/dist/src/javascript/remote/sender.d.ts.map +1 -1
- package/dist/src/javascript/remote/sender.js +115 -35
- package/dist/src/javascript/remote/sender.js.map +1 -1
- package/dist/src/javascript/tree/extensions.js +2 -2
- package/dist/src/javascript/tree/extensions.js.map +1 -1
- package/dist/src/javascript/tree/support_types.d.ts +62 -30
- package/dist/src/javascript/tree/support_types.d.ts.map +1 -1
- package/dist/src/javascript/tree/support_types.js +62 -30
- package/dist/src/javascript/tree/support_types.js.map +1 -1
- package/dist/src/javascript/tree/tree.d.ts +592 -137
- package/dist/src/javascript/tree/tree.d.ts.map +1 -1
- package/dist/src/javascript/tree/tree.js +802 -228
- package/dist/src/javascript/tree/tree.js.map +1 -1
- package/dist/src/javascript/visitor.d.ts +14 -4
- package/dist/src/javascript/visitor.d.ts.map +1 -1
- package/dist/src/javascript/visitor.js +155 -35
- package/dist/src/javascript/visitor.js.map +1 -1
- package/package.json +1 -1
|
@@ -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, JsImportSpecifier_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,
|
|
31
|
+
var CompilationUnit_1, Alias_1, ArrowFunction_1, Await_1, ConditionalType_1, DefaultType_1, Delete_1, Export_1, ExpressionWithTypeArguments_1, FunctionType_1, JsImport_1, JsImportSpecifier_1, JsBinary_1, ObjectBindingDeclarations_1, PropertyAssignment_1, ScopedVariableDeclarations_1, TaggedTemplateExpression_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, 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.FunctionDeclaration = exports.NamespaceDeclaration = exports.
|
|
33
|
+
exports.BindingElement = exports.ArrayBindingPattern = exports.IndexSignatureDeclaration = exports.TypeLiteral = exports.FunctionDeclaration = exports.NamespaceDeclaration = exports.JSForInOfLoopControl = exports.JSForInLoop = exports.JSForOfLoop = 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.TaggedTemplateExpression = exports.ScopedVariableDeclarations = exports.PropertyAssignment = exports.ObjectBindingDeclarations = exports.JsBinary = exports.JsImportSpecifier = exports.JsImport = exports.FunctionType = exports.ExpressionWithTypeArguments = exports.Export = exports.Delete = exports.DefaultType = exports.ConditionalType = 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");
|
|
@@ -344,6 +344,71 @@ exports.Await = Await;
|
|
|
344
344
|
exports.Await = Await = Await_1 = __decorate([
|
|
345
345
|
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$Await")
|
|
346
346
|
], Await);
|
|
347
|
+
let ConditionalType = ConditionalType_1 = class ConditionalType extends (0, support_types_1.JSMixin)(Object) {
|
|
348
|
+
constructor(id, prefix, markers, checkType, condition, _type) {
|
|
349
|
+
super();
|
|
350
|
+
this._id = id;
|
|
351
|
+
this._prefix = prefix;
|
|
352
|
+
this._markers = markers;
|
|
353
|
+
this._checkType = checkType;
|
|
354
|
+
this._condition = condition;
|
|
355
|
+
this._type = _type;
|
|
356
|
+
}
|
|
357
|
+
get id() {
|
|
358
|
+
return this._id;
|
|
359
|
+
}
|
|
360
|
+
withId(id) {
|
|
361
|
+
return id === this._id ? this : new ConditionalType_1(id, this._prefix, this._markers, this._checkType, this._condition, this._type);
|
|
362
|
+
}
|
|
363
|
+
get prefix() {
|
|
364
|
+
return this._prefix;
|
|
365
|
+
}
|
|
366
|
+
withPrefix(prefix) {
|
|
367
|
+
return prefix === this._prefix ? this : new ConditionalType_1(this._id, prefix, this._markers, this._checkType, this._condition, this._type);
|
|
368
|
+
}
|
|
369
|
+
get markers() {
|
|
370
|
+
return this._markers;
|
|
371
|
+
}
|
|
372
|
+
withMarkers(markers) {
|
|
373
|
+
return markers === this._markers ? this : new ConditionalType_1(this._id, this._prefix, markers, this._checkType, this._condition, this._type);
|
|
374
|
+
}
|
|
375
|
+
get checkType() {
|
|
376
|
+
return this._checkType;
|
|
377
|
+
}
|
|
378
|
+
withCheckType(checkType) {
|
|
379
|
+
return checkType === this._checkType ? this : new ConditionalType_1(this._id, this._prefix, this._markers, checkType, this._condition, this._type);
|
|
380
|
+
}
|
|
381
|
+
get condition() {
|
|
382
|
+
return this._condition.elements;
|
|
383
|
+
}
|
|
384
|
+
withCondition(condition) {
|
|
385
|
+
return this.padding.withCondition(tree_1.JContainer.withElements(this._condition, condition));
|
|
386
|
+
}
|
|
387
|
+
get type() {
|
|
388
|
+
return this._type;
|
|
389
|
+
}
|
|
390
|
+
withType(_type) {
|
|
391
|
+
return _type === this._type ? this : new ConditionalType_1(this._id, this._prefix, this._markers, this._checkType, this._condition, _type);
|
|
392
|
+
}
|
|
393
|
+
acceptJavaScript(v, p) {
|
|
394
|
+
return v.visitConditionalType(this, p);
|
|
395
|
+
}
|
|
396
|
+
get padding() {
|
|
397
|
+
const t = this;
|
|
398
|
+
return new class {
|
|
399
|
+
get condition() {
|
|
400
|
+
return t._condition;
|
|
401
|
+
}
|
|
402
|
+
withCondition(condition) {
|
|
403
|
+
return t._condition === condition ? t : new ConditionalType_1(t._id, t._prefix, t._markers, t._checkType, condition, t._type);
|
|
404
|
+
}
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
};
|
|
408
|
+
exports.ConditionalType = ConditionalType;
|
|
409
|
+
exports.ConditionalType = ConditionalType = ConditionalType_1 = __decorate([
|
|
410
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$ConditionalType")
|
|
411
|
+
], ConditionalType);
|
|
347
412
|
let DefaultType = DefaultType_1 = class DefaultType extends (0, support_types_1.JSMixin)(Object) {
|
|
348
413
|
constructor(id, prefix, markers, left, beforeEquals, right, _type) {
|
|
349
414
|
super();
|
|
@@ -530,12 +595,78 @@ exports.Export = Export;
|
|
|
530
595
|
exports.Export = Export = Export_1 = __decorate([
|
|
531
596
|
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$Export")
|
|
532
597
|
], Export);
|
|
598
|
+
let ExpressionWithTypeArguments = ExpressionWithTypeArguments_1 = class ExpressionWithTypeArguments extends (0, support_types_1.JSMixin)(Object) {
|
|
599
|
+
constructor(id, prefix, markers, clazz, typeArguments, _type) {
|
|
600
|
+
super();
|
|
601
|
+
this._id = id;
|
|
602
|
+
this._prefix = prefix;
|
|
603
|
+
this._markers = markers;
|
|
604
|
+
this._clazz = clazz;
|
|
605
|
+
this._typeArguments = typeArguments;
|
|
606
|
+
this._type = _type;
|
|
607
|
+
}
|
|
608
|
+
get id() {
|
|
609
|
+
return this._id;
|
|
610
|
+
}
|
|
611
|
+
withId(id) {
|
|
612
|
+
return id === this._id ? this : new ExpressionWithTypeArguments_1(id, this._prefix, this._markers, this._clazz, this._typeArguments, this._type);
|
|
613
|
+
}
|
|
614
|
+
get prefix() {
|
|
615
|
+
return this._prefix;
|
|
616
|
+
}
|
|
617
|
+
withPrefix(prefix) {
|
|
618
|
+
return prefix === this._prefix ? this : new ExpressionWithTypeArguments_1(this._id, prefix, this._markers, this._clazz, this._typeArguments, this._type);
|
|
619
|
+
}
|
|
620
|
+
get markers() {
|
|
621
|
+
return this._markers;
|
|
622
|
+
}
|
|
623
|
+
withMarkers(markers) {
|
|
624
|
+
return markers === this._markers ? this : new ExpressionWithTypeArguments_1(this._id, this._prefix, markers, this._clazz, this._typeArguments, this._type);
|
|
625
|
+
}
|
|
626
|
+
get clazz() {
|
|
627
|
+
return this._clazz;
|
|
628
|
+
}
|
|
629
|
+
withClazz(clazz) {
|
|
630
|
+
return clazz === this._clazz ? this : new ExpressionWithTypeArguments_1(this._id, this._prefix, this._markers, clazz, this._typeArguments, this._type);
|
|
631
|
+
}
|
|
632
|
+
get typeArguments() {
|
|
633
|
+
return this._typeArguments === null ? null : this._typeArguments.elements;
|
|
634
|
+
}
|
|
635
|
+
withTypeArguments(typeArguments) {
|
|
636
|
+
return this.padding.withTypeArguments(tree_1.JContainer.withElementsNullable(this._typeArguments, typeArguments));
|
|
637
|
+
}
|
|
638
|
+
get type() {
|
|
639
|
+
return this._type;
|
|
640
|
+
}
|
|
641
|
+
withType(_type) {
|
|
642
|
+
return _type === this._type ? this : new ExpressionWithTypeArguments_1(this._id, this._prefix, this._markers, this._clazz, this._typeArguments, _type);
|
|
643
|
+
}
|
|
644
|
+
acceptJavaScript(v, p) {
|
|
645
|
+
return v.visitExpressionWithTypeArguments(this, p);
|
|
646
|
+
}
|
|
647
|
+
get padding() {
|
|
648
|
+
const t = this;
|
|
649
|
+
return new class {
|
|
650
|
+
get typeArguments() {
|
|
651
|
+
return t._typeArguments;
|
|
652
|
+
}
|
|
653
|
+
withTypeArguments(typeArguments) {
|
|
654
|
+
return t._typeArguments === typeArguments ? t : new ExpressionWithTypeArguments_1(t._id, t._prefix, t._markers, t._clazz, typeArguments, t._type);
|
|
655
|
+
}
|
|
656
|
+
};
|
|
657
|
+
}
|
|
658
|
+
};
|
|
659
|
+
exports.ExpressionWithTypeArguments = ExpressionWithTypeArguments;
|
|
660
|
+
exports.ExpressionWithTypeArguments = ExpressionWithTypeArguments = ExpressionWithTypeArguments_1 = __decorate([
|
|
661
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$ExpressionWithTypeArguments")
|
|
662
|
+
], ExpressionWithTypeArguments);
|
|
533
663
|
let FunctionType = FunctionType_1 = class FunctionType extends (0, support_types_1.JSMixin)(Object) {
|
|
534
|
-
constructor(id, prefix, markers, parameters, arrow, returnType, _type) {
|
|
664
|
+
constructor(id, prefix, markers, constructorType, parameters, arrow, returnType, _type) {
|
|
535
665
|
super();
|
|
536
666
|
this._id = id;
|
|
537
667
|
this._prefix = prefix;
|
|
538
668
|
this._markers = markers;
|
|
669
|
+
this._constructorType = constructorType;
|
|
539
670
|
this._parameters = parameters;
|
|
540
671
|
this._arrow = arrow;
|
|
541
672
|
this._returnType = returnType;
|
|
@@ -545,19 +676,25 @@ let FunctionType = FunctionType_1 = class FunctionType extends (0, support_types
|
|
|
545
676
|
return this._id;
|
|
546
677
|
}
|
|
547
678
|
withId(id) {
|
|
548
|
-
return id === this._id ? this : new FunctionType_1(id, this._prefix, this._markers, this._parameters, this._arrow, this._returnType, this._type);
|
|
679
|
+
return id === this._id ? this : new FunctionType_1(id, this._prefix, this._markers, this._constructorType, this._parameters, this._arrow, this._returnType, this._type);
|
|
549
680
|
}
|
|
550
681
|
get prefix() {
|
|
551
682
|
return this._prefix;
|
|
552
683
|
}
|
|
553
684
|
withPrefix(prefix) {
|
|
554
|
-
return prefix === this._prefix ? this : new FunctionType_1(this._id, prefix, this._markers, this._parameters, this._arrow, this._returnType, this._type);
|
|
685
|
+
return prefix === this._prefix ? this : new FunctionType_1(this._id, prefix, this._markers, this._constructorType, this._parameters, this._arrow, this._returnType, this._type);
|
|
555
686
|
}
|
|
556
687
|
get markers() {
|
|
557
688
|
return this._markers;
|
|
558
689
|
}
|
|
559
690
|
withMarkers(markers) {
|
|
560
|
-
return markers === this._markers ? this : new FunctionType_1(this._id, this._prefix, markers, this._parameters, this._arrow, this._returnType, this._type);
|
|
691
|
+
return markers === this._markers ? this : new FunctionType_1(this._id, this._prefix, markers, this._constructorType, this._parameters, this._arrow, this._returnType, this._type);
|
|
692
|
+
}
|
|
693
|
+
get constructorType() {
|
|
694
|
+
return this._constructorType.element;
|
|
695
|
+
}
|
|
696
|
+
withConstructorType(constructorType) {
|
|
697
|
+
return this.padding.withConstructorType(this._constructorType.withElement(constructorType));
|
|
561
698
|
}
|
|
562
699
|
get parameters() {
|
|
563
700
|
return this._parameters.elements;
|
|
@@ -569,19 +706,19 @@ let FunctionType = FunctionType_1 = class FunctionType extends (0, support_types
|
|
|
569
706
|
return this._arrow;
|
|
570
707
|
}
|
|
571
708
|
withArrow(arrow) {
|
|
572
|
-
return arrow === this._arrow ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._parameters, arrow, this._returnType, this._type);
|
|
709
|
+
return arrow === this._arrow ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._constructorType, this._parameters, arrow, this._returnType, this._type);
|
|
573
710
|
}
|
|
574
711
|
get returnType() {
|
|
575
712
|
return this._returnType;
|
|
576
713
|
}
|
|
577
714
|
withReturnType(returnType) {
|
|
578
|
-
return returnType === this._returnType ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._parameters, this._arrow, returnType, this._type);
|
|
715
|
+
return returnType === this._returnType ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._constructorType, this._parameters, this._arrow, returnType, this._type);
|
|
579
716
|
}
|
|
580
717
|
get type() {
|
|
581
718
|
return this._type;
|
|
582
719
|
}
|
|
583
720
|
withType(_type) {
|
|
584
|
-
return _type === this._type ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._parameters, this._arrow, this._returnType, _type);
|
|
721
|
+
return _type === this._type ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._constructorType, this._parameters, this._arrow, this._returnType, _type);
|
|
585
722
|
}
|
|
586
723
|
acceptJavaScript(v, p) {
|
|
587
724
|
return v.visitFunctionType(this, p);
|
|
@@ -589,11 +726,17 @@ let FunctionType = FunctionType_1 = class FunctionType extends (0, support_types
|
|
|
589
726
|
get padding() {
|
|
590
727
|
const t = this;
|
|
591
728
|
return new class {
|
|
729
|
+
get constructorType() {
|
|
730
|
+
return t._constructorType;
|
|
731
|
+
}
|
|
732
|
+
withConstructorType(constructorType) {
|
|
733
|
+
return t._constructorType === constructorType ? t : new FunctionType_1(t._id, t._prefix, t._markers, constructorType, t._parameters, t._arrow, t._returnType, t._type);
|
|
734
|
+
}
|
|
592
735
|
get parameters() {
|
|
593
736
|
return t._parameters;
|
|
594
737
|
}
|
|
595
738
|
withParameters(parameters) {
|
|
596
|
-
return t._parameters === parameters ? t : new FunctionType_1(t._id, t._prefix, t._markers, parameters, t._arrow, t._returnType, t._type);
|
|
739
|
+
return t._parameters === parameters ? t : new FunctionType_1(t._id, t._prefix, t._markers, t._constructorType, parameters, t._arrow, t._returnType, t._type);
|
|
597
740
|
}
|
|
598
741
|
};
|
|
599
742
|
}
|
|
@@ -944,106 +1087,6 @@ exports.ObjectBindingDeclarations = ObjectBindingDeclarations;
|
|
|
944
1087
|
exports.ObjectBindingDeclarations = ObjectBindingDeclarations = ObjectBindingDeclarations_1 = __decorate([
|
|
945
1088
|
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$ObjectBindingDeclarations")
|
|
946
1089
|
], ObjectBindingDeclarations);
|
|
947
|
-
(function (ObjectBindingDeclarations) {
|
|
948
|
-
let Binding = class Binding extends (0, support_types_1.JSMixin)(Object) {
|
|
949
|
-
constructor(id, prefix, markers, propertyName, name, dimensionsAfterName, afterVararg, initializer, variableType) {
|
|
950
|
-
super();
|
|
951
|
-
this._id = id;
|
|
952
|
-
this._prefix = prefix;
|
|
953
|
-
this._markers = markers;
|
|
954
|
-
this._propertyName = propertyName;
|
|
955
|
-
this._name = name;
|
|
956
|
-
this._dimensionsAfterName = dimensionsAfterName;
|
|
957
|
-
this._afterVararg = afterVararg;
|
|
958
|
-
this._initializer = initializer;
|
|
959
|
-
this._variableType = variableType;
|
|
960
|
-
}
|
|
961
|
-
get id() {
|
|
962
|
-
return this._id;
|
|
963
|
-
}
|
|
964
|
-
withId(id) {
|
|
965
|
-
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);
|
|
966
|
-
}
|
|
967
|
-
get prefix() {
|
|
968
|
-
return this._prefix;
|
|
969
|
-
}
|
|
970
|
-
withPrefix(prefix) {
|
|
971
|
-
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);
|
|
972
|
-
}
|
|
973
|
-
get markers() {
|
|
974
|
-
return this._markers;
|
|
975
|
-
}
|
|
976
|
-
withMarkers(markers) {
|
|
977
|
-
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);
|
|
978
|
-
}
|
|
979
|
-
get propertyName() {
|
|
980
|
-
return this._propertyName === null ? null : this._propertyName.element;
|
|
981
|
-
}
|
|
982
|
-
withPropertyName(propertyName) {
|
|
983
|
-
return this.padding.withPropertyName(tree_1.JRightPadded.withElement(this._propertyName, propertyName));
|
|
984
|
-
}
|
|
985
|
-
get name() {
|
|
986
|
-
return this._name;
|
|
987
|
-
}
|
|
988
|
-
withName(name) {
|
|
989
|
-
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);
|
|
990
|
-
}
|
|
991
|
-
get dimensionsAfterName() {
|
|
992
|
-
return this._dimensionsAfterName;
|
|
993
|
-
}
|
|
994
|
-
withDimensionsAfterName(dimensionsAfterName) {
|
|
995
|
-
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);
|
|
996
|
-
}
|
|
997
|
-
get afterVararg() {
|
|
998
|
-
return this._afterVararg;
|
|
999
|
-
}
|
|
1000
|
-
withAfterVararg(afterVararg) {
|
|
1001
|
-
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);
|
|
1002
|
-
}
|
|
1003
|
-
get initializer() {
|
|
1004
|
-
return this._initializer === null ? null : this._initializer.element;
|
|
1005
|
-
}
|
|
1006
|
-
withInitializer(initializer) {
|
|
1007
|
-
return this.padding.withInitializer(tree_1.JLeftPadded.withElement(this._initializer, initializer));
|
|
1008
|
-
}
|
|
1009
|
-
get variableType() {
|
|
1010
|
-
return this._variableType;
|
|
1011
|
-
}
|
|
1012
|
-
withVariableType(variableType) {
|
|
1013
|
-
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);
|
|
1014
|
-
}
|
|
1015
|
-
acceptJavaScript(v, p) {
|
|
1016
|
-
return v.visitBinding(this, p);
|
|
1017
|
-
}
|
|
1018
|
-
get type() {
|
|
1019
|
-
return extensions.getJavaType(this);
|
|
1020
|
-
}
|
|
1021
|
-
withType(type) {
|
|
1022
|
-
return extensions.withJavaType(this, type);
|
|
1023
|
-
}
|
|
1024
|
-
get padding() {
|
|
1025
|
-
const t = this;
|
|
1026
|
-
return new class {
|
|
1027
|
-
get propertyName() {
|
|
1028
|
-
return t._propertyName;
|
|
1029
|
-
}
|
|
1030
|
-
withPropertyName(propertyName) {
|
|
1031
|
-
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);
|
|
1032
|
-
}
|
|
1033
|
-
get initializer() {
|
|
1034
|
-
return t._initializer;
|
|
1035
|
-
}
|
|
1036
|
-
withInitializer(initializer) {
|
|
1037
|
-
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);
|
|
1038
|
-
}
|
|
1039
|
-
};
|
|
1040
|
-
}
|
|
1041
|
-
};
|
|
1042
|
-
Binding = __decorate([
|
|
1043
|
-
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$ObjectBindingDeclarations$Binding")
|
|
1044
|
-
], Binding);
|
|
1045
|
-
ObjectBindingDeclarations.Binding = Binding;
|
|
1046
|
-
})(ObjectBindingDeclarations || (exports.ObjectBindingDeclarations = ObjectBindingDeclarations = {}));
|
|
1047
1090
|
let PropertyAssignment = PropertyAssignment_1 = class PropertyAssignment extends (0, support_types_1.JSMixin)(Object) {
|
|
1048
1091
|
constructor(id, prefix, markers, name, initializer) {
|
|
1049
1092
|
super();
|
|
@@ -1187,40 +1230,34 @@ exports.ScopedVariableDeclarations = ScopedVariableDeclarations = ScopedVariable
|
|
|
1187
1230
|
Scope[Scope["Var"] = 2] = "Var";
|
|
1188
1231
|
})(Scope = ScopedVariableDeclarations.Scope || (ScopedVariableDeclarations.Scope = {}));
|
|
1189
1232
|
})(ScopedVariableDeclarations || (exports.ScopedVariableDeclarations = ScopedVariableDeclarations = {}));
|
|
1190
|
-
let
|
|
1191
|
-
constructor(id, prefix, markers,
|
|
1233
|
+
let TaggedTemplateExpression = TaggedTemplateExpression_1 = class TaggedTemplateExpression extends (0, support_types_1.JSMixin)(Object) {
|
|
1234
|
+
constructor(id, prefix, markers, tag, typeArguments, templateExpression, _type) {
|
|
1192
1235
|
super();
|
|
1193
1236
|
this._id = id;
|
|
1194
1237
|
this._prefix = prefix;
|
|
1195
1238
|
this._markers = markers;
|
|
1196
|
-
this._delimiter = delimiter;
|
|
1197
1239
|
this._tag = tag;
|
|
1198
|
-
this.
|
|
1240
|
+
this._typeArguments = typeArguments;
|
|
1241
|
+
this._templateExpression = templateExpression;
|
|
1199
1242
|
this._type = _type;
|
|
1200
1243
|
}
|
|
1201
1244
|
get id() {
|
|
1202
1245
|
return this._id;
|
|
1203
1246
|
}
|
|
1204
1247
|
withId(id) {
|
|
1205
|
-
return id === this._id ? this : new
|
|
1248
|
+
return id === this._id ? this : new TaggedTemplateExpression_1(id, this._prefix, this._markers, this._tag, this._typeArguments, this._templateExpression, this._type);
|
|
1206
1249
|
}
|
|
1207
1250
|
get prefix() {
|
|
1208
1251
|
return this._prefix;
|
|
1209
1252
|
}
|
|
1210
1253
|
withPrefix(prefix) {
|
|
1211
|
-
return prefix === this._prefix ? this : new
|
|
1254
|
+
return prefix === this._prefix ? this : new TaggedTemplateExpression_1(this._id, prefix, this._markers, this._tag, this._typeArguments, this._templateExpression, this._type);
|
|
1212
1255
|
}
|
|
1213
1256
|
get markers() {
|
|
1214
1257
|
return this._markers;
|
|
1215
1258
|
}
|
|
1216
1259
|
withMarkers(markers) {
|
|
1217
|
-
return markers === this._markers ? this : new
|
|
1218
|
-
}
|
|
1219
|
-
get delimiter() {
|
|
1220
|
-
return this._delimiter;
|
|
1221
|
-
}
|
|
1222
|
-
withDelimiter(delimiter) {
|
|
1223
|
-
return delimiter === this._delimiter ? this : new TemplateExpression_1(this._id, this._prefix, this._markers, delimiter, this._tag, this._strings, this._type);
|
|
1260
|
+
return markers === this._markers ? this : new TaggedTemplateExpression_1(this._id, this._prefix, markers, this._tag, this._typeArguments, this._templateExpression, this._type);
|
|
1224
1261
|
}
|
|
1225
1262
|
get tag() {
|
|
1226
1263
|
return this._tag === null ? null : this._tag.element;
|
|
@@ -1228,20 +1265,26 @@ let TemplateExpression = TemplateExpression_1 = class TemplateExpression extends
|
|
|
1228
1265
|
withTag(tag) {
|
|
1229
1266
|
return this.padding.withTag(tree_1.JRightPadded.withElement(this._tag, tag));
|
|
1230
1267
|
}
|
|
1231
|
-
get
|
|
1232
|
-
return this.
|
|
1268
|
+
get typeArguments() {
|
|
1269
|
+
return this._typeArguments === null ? null : this._typeArguments.elements;
|
|
1233
1270
|
}
|
|
1234
|
-
|
|
1235
|
-
return
|
|
1271
|
+
withTypeArguments(typeArguments) {
|
|
1272
|
+
return this.padding.withTypeArguments(tree_1.JContainer.withElementsNullable(this._typeArguments, typeArguments));
|
|
1273
|
+
}
|
|
1274
|
+
get templateExpression() {
|
|
1275
|
+
return this._templateExpression;
|
|
1276
|
+
}
|
|
1277
|
+
withTemplateExpression(templateExpression) {
|
|
1278
|
+
return templateExpression === this._templateExpression ? this : new TaggedTemplateExpression_1(this._id, this._prefix, this._markers, this._tag, this._typeArguments, templateExpression, this._type);
|
|
1236
1279
|
}
|
|
1237
1280
|
get type() {
|
|
1238
1281
|
return this._type;
|
|
1239
1282
|
}
|
|
1240
1283
|
withType(_type) {
|
|
1241
|
-
return _type === this._type ? this : new
|
|
1284
|
+
return _type === this._type ? this : new TaggedTemplateExpression_1(this._id, this._prefix, this._markers, this._tag, this._typeArguments, this._templateExpression, _type);
|
|
1242
1285
|
}
|
|
1243
1286
|
acceptJavaScript(v, p) {
|
|
1244
|
-
return v.
|
|
1287
|
+
return v.visitTaggedTemplateExpression(this, p);
|
|
1245
1288
|
}
|
|
1246
1289
|
get padding() {
|
|
1247
1290
|
const t = this;
|
|
@@ -1250,7 +1293,78 @@ let TemplateExpression = TemplateExpression_1 = class TemplateExpression extends
|
|
|
1250
1293
|
return t._tag;
|
|
1251
1294
|
}
|
|
1252
1295
|
withTag(tag) {
|
|
1253
|
-
return t._tag === tag ? t : new
|
|
1296
|
+
return t._tag === tag ? t : new TaggedTemplateExpression_1(t._id, t._prefix, t._markers, tag, t._typeArguments, t._templateExpression, t._type);
|
|
1297
|
+
}
|
|
1298
|
+
get typeArguments() {
|
|
1299
|
+
return t._typeArguments;
|
|
1300
|
+
}
|
|
1301
|
+
withTypeArguments(typeArguments) {
|
|
1302
|
+
return t._typeArguments === typeArguments ? t : new TaggedTemplateExpression_1(t._id, t._prefix, t._markers, t._tag, typeArguments, t._templateExpression, t._type);
|
|
1303
|
+
}
|
|
1304
|
+
};
|
|
1305
|
+
}
|
|
1306
|
+
};
|
|
1307
|
+
exports.TaggedTemplateExpression = TaggedTemplateExpression;
|
|
1308
|
+
exports.TaggedTemplateExpression = TaggedTemplateExpression = TaggedTemplateExpression_1 = __decorate([
|
|
1309
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$TaggedTemplateExpression")
|
|
1310
|
+
], TaggedTemplateExpression);
|
|
1311
|
+
let TemplateExpression = TemplateExpression_1 = class TemplateExpression extends (0, support_types_1.JSMixin)(Object) {
|
|
1312
|
+
constructor(id, prefix, markers, head, templateSpans, _type) {
|
|
1313
|
+
super();
|
|
1314
|
+
this._id = id;
|
|
1315
|
+
this._prefix = prefix;
|
|
1316
|
+
this._markers = markers;
|
|
1317
|
+
this._head = head;
|
|
1318
|
+
this._templateSpans = templateSpans;
|
|
1319
|
+
this._type = _type;
|
|
1320
|
+
}
|
|
1321
|
+
get id() {
|
|
1322
|
+
return this._id;
|
|
1323
|
+
}
|
|
1324
|
+
withId(id) {
|
|
1325
|
+
return id === this._id ? this : new TemplateExpression_1(id, this._prefix, this._markers, this._head, this._templateSpans, this._type);
|
|
1326
|
+
}
|
|
1327
|
+
get prefix() {
|
|
1328
|
+
return this._prefix;
|
|
1329
|
+
}
|
|
1330
|
+
withPrefix(prefix) {
|
|
1331
|
+
return prefix === this._prefix ? this : new TemplateExpression_1(this._id, prefix, this._markers, this._head, this._templateSpans, this._type);
|
|
1332
|
+
}
|
|
1333
|
+
get markers() {
|
|
1334
|
+
return this._markers;
|
|
1335
|
+
}
|
|
1336
|
+
withMarkers(markers) {
|
|
1337
|
+
return markers === this._markers ? this : new TemplateExpression_1(this._id, this._prefix, markers, this._head, this._templateSpans, this._type);
|
|
1338
|
+
}
|
|
1339
|
+
get head() {
|
|
1340
|
+
return this._head;
|
|
1341
|
+
}
|
|
1342
|
+
withHead(head) {
|
|
1343
|
+
return head === this._head ? this : new TemplateExpression_1(this._id, this._prefix, this._markers, head, this._templateSpans, this._type);
|
|
1344
|
+
}
|
|
1345
|
+
get templateSpans() {
|
|
1346
|
+
return tree_1.JRightPadded.getElements(this._templateSpans);
|
|
1347
|
+
}
|
|
1348
|
+
withTemplateSpans(templateSpans) {
|
|
1349
|
+
return this.padding.withTemplateSpans(tree_1.JRightPadded.withElements(this._templateSpans, templateSpans));
|
|
1350
|
+
}
|
|
1351
|
+
get type() {
|
|
1352
|
+
return this._type;
|
|
1353
|
+
}
|
|
1354
|
+
withType(_type) {
|
|
1355
|
+
return _type === this._type ? this : new TemplateExpression_1(this._id, this._prefix, this._markers, this._head, this._templateSpans, _type);
|
|
1356
|
+
}
|
|
1357
|
+
acceptJavaScript(v, p) {
|
|
1358
|
+
return v.visitTemplateExpression(this, p);
|
|
1359
|
+
}
|
|
1360
|
+
get padding() {
|
|
1361
|
+
const t = this;
|
|
1362
|
+
return new class {
|
|
1363
|
+
get templateSpans() {
|
|
1364
|
+
return t._templateSpans;
|
|
1365
|
+
}
|
|
1366
|
+
withTemplateSpans(templateSpans) {
|
|
1367
|
+
return t._templateSpans === templateSpans ? t : new TemplateExpression_1(t._id, t._prefix, t._markers, t._head, templateSpans, t._type);
|
|
1254
1368
|
}
|
|
1255
1369
|
};
|
|
1256
1370
|
}
|
|
@@ -1260,60 +1374,53 @@ exports.TemplateExpression = TemplateExpression = TemplateExpression_1 = __decor
|
|
|
1260
1374
|
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$TemplateExpression")
|
|
1261
1375
|
], TemplateExpression);
|
|
1262
1376
|
(function (TemplateExpression) {
|
|
1263
|
-
let
|
|
1264
|
-
constructor(id, prefix, markers,
|
|
1377
|
+
let TemplateSpan = class TemplateSpan extends (0, support_types_1.JSMixin)(Object) {
|
|
1378
|
+
constructor(id, prefix, markers, expression, tail) {
|
|
1265
1379
|
super();
|
|
1266
1380
|
this._id = id;
|
|
1267
1381
|
this._prefix = prefix;
|
|
1268
1382
|
this._markers = markers;
|
|
1269
|
-
this.
|
|
1270
|
-
this.
|
|
1271
|
-
this._enclosedInBraces = enclosedInBraces;
|
|
1383
|
+
this._expression = expression;
|
|
1384
|
+
this._tail = tail;
|
|
1272
1385
|
}
|
|
1273
1386
|
get id() {
|
|
1274
1387
|
return this._id;
|
|
1275
1388
|
}
|
|
1276
1389
|
withId(id) {
|
|
1277
|
-
return id === this._id ? this : new TemplateExpression.
|
|
1390
|
+
return id === this._id ? this : new TemplateExpression.TemplateSpan(id, this._prefix, this._markers, this._expression, this._tail);
|
|
1278
1391
|
}
|
|
1279
1392
|
get prefix() {
|
|
1280
1393
|
return this._prefix;
|
|
1281
1394
|
}
|
|
1282
1395
|
withPrefix(prefix) {
|
|
1283
|
-
return prefix === this._prefix ? this : new TemplateExpression.
|
|
1396
|
+
return prefix === this._prefix ? this : new TemplateExpression.TemplateSpan(this._id, prefix, this._markers, this._expression, this._tail);
|
|
1284
1397
|
}
|
|
1285
1398
|
get markers() {
|
|
1286
1399
|
return this._markers;
|
|
1287
1400
|
}
|
|
1288
1401
|
withMarkers(markers) {
|
|
1289
|
-
return markers === this._markers ? this : new TemplateExpression.
|
|
1290
|
-
}
|
|
1291
|
-
get tree() {
|
|
1292
|
-
return this._tree;
|
|
1402
|
+
return markers === this._markers ? this : new TemplateExpression.TemplateSpan(this._id, this._prefix, markers, this._expression, this._tail);
|
|
1293
1403
|
}
|
|
1294
|
-
|
|
1295
|
-
return
|
|
1404
|
+
get expression() {
|
|
1405
|
+
return this._expression;
|
|
1296
1406
|
}
|
|
1297
|
-
|
|
1298
|
-
return this.
|
|
1407
|
+
withExpression(expression) {
|
|
1408
|
+
return expression === this._expression ? this : new TemplateExpression.TemplateSpan(this._id, this._prefix, this._markers, expression, this._tail);
|
|
1299
1409
|
}
|
|
1300
|
-
|
|
1301
|
-
return
|
|
1410
|
+
get tail() {
|
|
1411
|
+
return this._tail;
|
|
1302
1412
|
}
|
|
1303
|
-
|
|
1304
|
-
return this.
|
|
1305
|
-
}
|
|
1306
|
-
withEnclosedInBraces(enclosedInBraces) {
|
|
1307
|
-
return enclosedInBraces === this._enclosedInBraces ? this : new TemplateExpression.Value(this._id, this._prefix, this._markers, this._tree, this._after, enclosedInBraces);
|
|
1413
|
+
withTail(tail) {
|
|
1414
|
+
return tail === this._tail ? this : new TemplateExpression.TemplateSpan(this._id, this._prefix, this._markers, this._expression, tail);
|
|
1308
1415
|
}
|
|
1309
1416
|
acceptJavaScript(v, p) {
|
|
1310
|
-
return v.
|
|
1417
|
+
return v.visitTemplateExpressionTemplateSpan(this, p);
|
|
1311
1418
|
}
|
|
1312
1419
|
};
|
|
1313
|
-
|
|
1314
|
-
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$TemplateExpression$
|
|
1315
|
-
],
|
|
1316
|
-
TemplateExpression.
|
|
1420
|
+
TemplateSpan = __decorate([
|
|
1421
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$TemplateExpression$TemplateSpan")
|
|
1422
|
+
], TemplateSpan);
|
|
1423
|
+
TemplateExpression.TemplateSpan = TemplateSpan;
|
|
1317
1424
|
})(TemplateExpression || (exports.TemplateExpression = TemplateExpression = {}));
|
|
1318
1425
|
let Tuple = Tuple_1 = class Tuple extends (0, support_types_1.JSMixin)(Object) {
|
|
1319
1426
|
constructor(id, prefix, markers, elements, _type) {
|
|
@@ -1374,12 +1481,11 @@ exports.Tuple = Tuple = Tuple_1 = __decorate([
|
|
|
1374
1481
|
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$Tuple")
|
|
1375
1482
|
], Tuple);
|
|
1376
1483
|
let TypeDeclaration = TypeDeclaration_1 = class TypeDeclaration extends (0, support_types_1.JSMixin)(Object) {
|
|
1377
|
-
constructor(id, prefix, markers,
|
|
1484
|
+
constructor(id, prefix, markers, modifiers, name, typeParameters, initializer, _type) {
|
|
1378
1485
|
super();
|
|
1379
1486
|
this._id = id;
|
|
1380
1487
|
this._prefix = prefix;
|
|
1381
1488
|
this._markers = markers;
|
|
1382
|
-
this._leadingAnnotations = leadingAnnotations;
|
|
1383
1489
|
this._modifiers = modifiers;
|
|
1384
1490
|
this._name = name;
|
|
1385
1491
|
this._typeParameters = typeParameters;
|
|
@@ -1390,43 +1496,37 @@ let TypeDeclaration = TypeDeclaration_1 = class TypeDeclaration extends (0, supp
|
|
|
1390
1496
|
return this._id;
|
|
1391
1497
|
}
|
|
1392
1498
|
withId(id) {
|
|
1393
|
-
return id === this._id ? this : new TypeDeclaration_1(id, this._prefix, this._markers, this.
|
|
1499
|
+
return id === this._id ? this : new TypeDeclaration_1(id, this._prefix, this._markers, this._modifiers, this._name, this._typeParameters, this._initializer, this._type);
|
|
1394
1500
|
}
|
|
1395
1501
|
get prefix() {
|
|
1396
1502
|
return this._prefix;
|
|
1397
1503
|
}
|
|
1398
1504
|
withPrefix(prefix) {
|
|
1399
|
-
return prefix === this._prefix ? this : new TypeDeclaration_1(this._id, prefix, this._markers, this.
|
|
1505
|
+
return prefix === this._prefix ? this : new TypeDeclaration_1(this._id, prefix, this._markers, this._modifiers, this._name, this._typeParameters, this._initializer, this._type);
|
|
1400
1506
|
}
|
|
1401
1507
|
get markers() {
|
|
1402
1508
|
return this._markers;
|
|
1403
1509
|
}
|
|
1404
1510
|
withMarkers(markers) {
|
|
1405
|
-
return markers === this._markers ? this : new TypeDeclaration_1(this._id, this._prefix, markers, this.
|
|
1406
|
-
}
|
|
1407
|
-
get leadingAnnotations() {
|
|
1408
|
-
return this._leadingAnnotations;
|
|
1409
|
-
}
|
|
1410
|
-
withLeadingAnnotations(leadingAnnotations) {
|
|
1411
|
-
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);
|
|
1511
|
+
return markers === this._markers ? this : new TypeDeclaration_1(this._id, this._prefix, markers, this._modifiers, this._name, this._typeParameters, this._initializer, this._type);
|
|
1412
1512
|
}
|
|
1413
1513
|
get modifiers() {
|
|
1414
1514
|
return this._modifiers;
|
|
1415
1515
|
}
|
|
1416
1516
|
withModifiers(modifiers) {
|
|
1417
|
-
return modifiers === this._modifiers ? this : new TypeDeclaration_1(this._id, this._prefix, this._markers,
|
|
1517
|
+
return modifiers === this._modifiers ? this : new TypeDeclaration_1(this._id, this._prefix, this._markers, modifiers, this._name, this._typeParameters, this._initializer, this._type);
|
|
1418
1518
|
}
|
|
1419
1519
|
get name() {
|
|
1420
|
-
return this._name;
|
|
1520
|
+
return this._name.element;
|
|
1421
1521
|
}
|
|
1422
1522
|
withName(name) {
|
|
1423
|
-
return
|
|
1523
|
+
return this.padding.withName(this._name.withElement(name));
|
|
1424
1524
|
}
|
|
1425
1525
|
get typeParameters() {
|
|
1426
1526
|
return this._typeParameters;
|
|
1427
1527
|
}
|
|
1428
1528
|
withTypeParameters(typeParameters) {
|
|
1429
|
-
return typeParameters === this._typeParameters ? this : new TypeDeclaration_1(this._id, this._prefix, this._markers, this.
|
|
1529
|
+
return typeParameters === this._typeParameters ? this : new TypeDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, this._name, typeParameters, this._initializer, this._type);
|
|
1430
1530
|
}
|
|
1431
1531
|
get initializer() {
|
|
1432
1532
|
return this._initializer.element;
|
|
@@ -1438,7 +1538,7 @@ let TypeDeclaration = TypeDeclaration_1 = class TypeDeclaration extends (0, supp
|
|
|
1438
1538
|
return this._type;
|
|
1439
1539
|
}
|
|
1440
1540
|
withType(_type) {
|
|
1441
|
-
return _type === this._type ? this : new TypeDeclaration_1(this._id, this._prefix, this._markers, this.
|
|
1541
|
+
return _type === this._type ? this : new TypeDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, this._name, this._typeParameters, this._initializer, _type);
|
|
1442
1542
|
}
|
|
1443
1543
|
acceptJavaScript(v, p) {
|
|
1444
1544
|
return v.visitTypeDeclaration(this, p);
|
|
@@ -1446,11 +1546,17 @@ let TypeDeclaration = TypeDeclaration_1 = class TypeDeclaration extends (0, supp
|
|
|
1446
1546
|
get padding() {
|
|
1447
1547
|
const t = this;
|
|
1448
1548
|
return new class {
|
|
1549
|
+
get name() {
|
|
1550
|
+
return t._name;
|
|
1551
|
+
}
|
|
1552
|
+
withName(name) {
|
|
1553
|
+
return t._name === name ? t : new TypeDeclaration_1(t._id, t._prefix, t._markers, t._modifiers, name, t._typeParameters, t._initializer, t._type);
|
|
1554
|
+
}
|
|
1449
1555
|
get initializer() {
|
|
1450
1556
|
return t._initializer;
|
|
1451
1557
|
}
|
|
1452
1558
|
withInitializer(initializer) {
|
|
1453
|
-
return t._initializer === initializer ? t : new TypeDeclaration_1(t._id, t._prefix, t._markers, t.
|
|
1559
|
+
return t._initializer === initializer ? t : new TypeDeclaration_1(t._id, t._prefix, t._markers, t._modifiers, t._name, t._typeParameters, initializer, t._type);
|
|
1454
1560
|
}
|
|
1455
1561
|
};
|
|
1456
1562
|
}
|
|
@@ -1506,6 +1612,53 @@ exports.TypeOf = TypeOf;
|
|
|
1506
1612
|
exports.TypeOf = TypeOf = TypeOf_1 = __decorate([
|
|
1507
1613
|
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$TypeOf")
|
|
1508
1614
|
], TypeOf);
|
|
1615
|
+
let TypeQuery = TypeQuery_1 = class TypeQuery extends (0, support_types_1.JSMixin)(Object) {
|
|
1616
|
+
constructor(id, prefix, markers, typeExpression, _type) {
|
|
1617
|
+
super();
|
|
1618
|
+
this._id = id;
|
|
1619
|
+
this._prefix = prefix;
|
|
1620
|
+
this._markers = markers;
|
|
1621
|
+
this._typeExpression = typeExpression;
|
|
1622
|
+
this._type = _type;
|
|
1623
|
+
}
|
|
1624
|
+
get id() {
|
|
1625
|
+
return this._id;
|
|
1626
|
+
}
|
|
1627
|
+
withId(id) {
|
|
1628
|
+
return id === this._id ? this : new TypeQuery_1(id, this._prefix, this._markers, this._typeExpression, this._type);
|
|
1629
|
+
}
|
|
1630
|
+
get prefix() {
|
|
1631
|
+
return this._prefix;
|
|
1632
|
+
}
|
|
1633
|
+
withPrefix(prefix) {
|
|
1634
|
+
return prefix === this._prefix ? this : new TypeQuery_1(this._id, prefix, this._markers, this._typeExpression, this._type);
|
|
1635
|
+
}
|
|
1636
|
+
get markers() {
|
|
1637
|
+
return this._markers;
|
|
1638
|
+
}
|
|
1639
|
+
withMarkers(markers) {
|
|
1640
|
+
return markers === this._markers ? this : new TypeQuery_1(this._id, this._prefix, markers, this._typeExpression, this._type);
|
|
1641
|
+
}
|
|
1642
|
+
get typeExpression() {
|
|
1643
|
+
return this._typeExpression;
|
|
1644
|
+
}
|
|
1645
|
+
withTypeExpression(typeExpression) {
|
|
1646
|
+
return typeExpression === this._typeExpression ? this : new TypeQuery_1(this._id, this._prefix, this._markers, typeExpression, this._type);
|
|
1647
|
+
}
|
|
1648
|
+
get type() {
|
|
1649
|
+
return this._type;
|
|
1650
|
+
}
|
|
1651
|
+
withType(_type) {
|
|
1652
|
+
return _type === this._type ? this : new TypeQuery_1(this._id, this._prefix, this._markers, this._typeExpression, _type);
|
|
1653
|
+
}
|
|
1654
|
+
acceptJavaScript(v, p) {
|
|
1655
|
+
return v.visitTypeQuery(this, p);
|
|
1656
|
+
}
|
|
1657
|
+
};
|
|
1658
|
+
exports.TypeQuery = TypeQuery;
|
|
1659
|
+
exports.TypeQuery = TypeQuery = TypeQuery_1 = __decorate([
|
|
1660
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$TypeQuery")
|
|
1661
|
+
], TypeQuery);
|
|
1509
1662
|
let TypeOperator = TypeOperator_1 = class TypeOperator extends (0, support_types_1.JSMixin)(Object) {
|
|
1510
1663
|
constructor(id, prefix, markers, operator, expression) {
|
|
1511
1664
|
super();
|
|
@@ -1710,8 +1863,66 @@ exports.Union = Union;
|
|
|
1710
1863
|
exports.Union = Union = Union_1 = __decorate([
|
|
1711
1864
|
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$Union")
|
|
1712
1865
|
], Union);
|
|
1713
|
-
let
|
|
1714
|
-
constructor(id, prefix, markers,
|
|
1866
|
+
let Intersection = Intersection_1 = class Intersection extends (0, support_types_1.JSMixin)(Object) {
|
|
1867
|
+
constructor(id, prefix, markers, types, _type) {
|
|
1868
|
+
super();
|
|
1869
|
+
this._id = id;
|
|
1870
|
+
this._prefix = prefix;
|
|
1871
|
+
this._markers = markers;
|
|
1872
|
+
this._types = types;
|
|
1873
|
+
this._type = _type;
|
|
1874
|
+
}
|
|
1875
|
+
get id() {
|
|
1876
|
+
return this._id;
|
|
1877
|
+
}
|
|
1878
|
+
withId(id) {
|
|
1879
|
+
return id === this._id ? this : new Intersection_1(id, this._prefix, this._markers, this._types, this._type);
|
|
1880
|
+
}
|
|
1881
|
+
get prefix() {
|
|
1882
|
+
return this._prefix;
|
|
1883
|
+
}
|
|
1884
|
+
withPrefix(prefix) {
|
|
1885
|
+
return prefix === this._prefix ? this : new Intersection_1(this._id, prefix, this._markers, this._types, this._type);
|
|
1886
|
+
}
|
|
1887
|
+
get markers() {
|
|
1888
|
+
return this._markers;
|
|
1889
|
+
}
|
|
1890
|
+
withMarkers(markers) {
|
|
1891
|
+
return markers === this._markers ? this : new Intersection_1(this._id, this._prefix, markers, this._types, this._type);
|
|
1892
|
+
}
|
|
1893
|
+
get types() {
|
|
1894
|
+
return tree_1.JRightPadded.getElements(this._types);
|
|
1895
|
+
}
|
|
1896
|
+
withTypes(types) {
|
|
1897
|
+
return this.padding.withTypes(tree_1.JRightPadded.withElements(this._types, types));
|
|
1898
|
+
}
|
|
1899
|
+
get type() {
|
|
1900
|
+
return this._type;
|
|
1901
|
+
}
|
|
1902
|
+
withType(_type) {
|
|
1903
|
+
return _type === this._type ? this : new Intersection_1(this._id, this._prefix, this._markers, this._types, _type);
|
|
1904
|
+
}
|
|
1905
|
+
acceptJavaScript(v, p) {
|
|
1906
|
+
return v.visitIntersection(this, p);
|
|
1907
|
+
}
|
|
1908
|
+
get padding() {
|
|
1909
|
+
const t = this;
|
|
1910
|
+
return new class {
|
|
1911
|
+
get types() {
|
|
1912
|
+
return t._types;
|
|
1913
|
+
}
|
|
1914
|
+
withTypes(types) {
|
|
1915
|
+
return t._types === types ? t : new Intersection_1(t._id, t._prefix, t._markers, types, t._type);
|
|
1916
|
+
}
|
|
1917
|
+
};
|
|
1918
|
+
}
|
|
1919
|
+
};
|
|
1920
|
+
exports.Intersection = Intersection;
|
|
1921
|
+
exports.Intersection = Intersection = Intersection_1 = __decorate([
|
|
1922
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$Intersection")
|
|
1923
|
+
], Intersection);
|
|
1924
|
+
let Void = Void_1 = class Void extends (0, support_types_1.JSMixin)(Object) {
|
|
1925
|
+
constructor(id, prefix, markers, expression) {
|
|
1715
1926
|
super();
|
|
1716
1927
|
this._id = id;
|
|
1717
1928
|
this._prefix = prefix;
|
|
@@ -2159,103 +2370,199 @@ exports.JSMethodDeclaration = JSMethodDeclaration;
|
|
|
2159
2370
|
exports.JSMethodDeclaration = JSMethodDeclaration = JSMethodDeclaration_1 = __decorate([
|
|
2160
2371
|
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$JSMethodDeclaration")
|
|
2161
2372
|
], JSMethodDeclaration);
|
|
2162
|
-
let
|
|
2163
|
-
constructor(id, prefix, markers,
|
|
2373
|
+
let JSForOfLoop = JSForOfLoop_1 = class JSForOfLoop extends (0, support_types_1.JSMixin)(Object) {
|
|
2374
|
+
constructor(id, prefix, markers, await, control, body) {
|
|
2164
2375
|
super();
|
|
2165
2376
|
this._id = id;
|
|
2166
2377
|
this._prefix = prefix;
|
|
2167
2378
|
this._markers = markers;
|
|
2168
|
-
this.
|
|
2169
|
-
this.
|
|
2170
|
-
this.
|
|
2171
|
-
this._arguments = _arguments;
|
|
2172
|
-
this._methodType = methodType;
|
|
2379
|
+
this._await = await;
|
|
2380
|
+
this._control = control;
|
|
2381
|
+
this._body = body;
|
|
2173
2382
|
}
|
|
2174
2383
|
get id() {
|
|
2175
2384
|
return this._id;
|
|
2176
2385
|
}
|
|
2177
2386
|
withId(id) {
|
|
2178
|
-
return id === this._id ? this : new
|
|
2387
|
+
return id === this._id ? this : new JSForOfLoop_1(id, this._prefix, this._markers, this._await, this._control, this._body);
|
|
2179
2388
|
}
|
|
2180
2389
|
get prefix() {
|
|
2181
2390
|
return this._prefix;
|
|
2182
2391
|
}
|
|
2183
2392
|
withPrefix(prefix) {
|
|
2184
|
-
return prefix === this._prefix ? this : new
|
|
2393
|
+
return prefix === this._prefix ? this : new JSForOfLoop_1(this._id, prefix, this._markers, this._await, this._control, this._body);
|
|
2185
2394
|
}
|
|
2186
2395
|
get markers() {
|
|
2187
2396
|
return this._markers;
|
|
2188
2397
|
}
|
|
2189
2398
|
withMarkers(markers) {
|
|
2190
|
-
return markers === this._markers ? this : new
|
|
2399
|
+
return markers === this._markers ? this : new JSForOfLoop_1(this._id, this._prefix, markers, this._await, this._control, this._body);
|
|
2191
2400
|
}
|
|
2192
|
-
get
|
|
2193
|
-
return this.
|
|
2401
|
+
get await() {
|
|
2402
|
+
return this._await.element;
|
|
2194
2403
|
}
|
|
2195
|
-
|
|
2196
|
-
return this.padding.
|
|
2404
|
+
withAwait(await) {
|
|
2405
|
+
return this.padding.withAwait(this._await.withElement(await));
|
|
2197
2406
|
}
|
|
2198
|
-
get
|
|
2199
|
-
return this.
|
|
2407
|
+
get control() {
|
|
2408
|
+
return this._control;
|
|
2200
2409
|
}
|
|
2201
|
-
|
|
2202
|
-
return this.
|
|
2410
|
+
withControl(control) {
|
|
2411
|
+
return control === this._control ? this : new JSForOfLoop_1(this._id, this._prefix, this._markers, this._await, control, this._body);
|
|
2203
2412
|
}
|
|
2204
|
-
get
|
|
2205
|
-
return this.
|
|
2413
|
+
get body() {
|
|
2414
|
+
return this._body.element;
|
|
2206
2415
|
}
|
|
2207
|
-
|
|
2208
|
-
return
|
|
2416
|
+
withBody(body) {
|
|
2417
|
+
return this.padding.withBody(this._body.withElement(body));
|
|
2209
2418
|
}
|
|
2210
|
-
|
|
2211
|
-
return this
|
|
2419
|
+
acceptJavaScript(v, p) {
|
|
2420
|
+
return v.visitJSForOfLoop(this, p);
|
|
2212
2421
|
}
|
|
2213
|
-
|
|
2214
|
-
|
|
2422
|
+
get padding() {
|
|
2423
|
+
const t = this;
|
|
2424
|
+
return new class {
|
|
2425
|
+
get await() {
|
|
2426
|
+
return t._await;
|
|
2427
|
+
}
|
|
2428
|
+
withAwait(await) {
|
|
2429
|
+
return t._await === await ? t : new JSForOfLoop_1(t._id, t._prefix, t._markers, await, t._control, t._body);
|
|
2430
|
+
}
|
|
2431
|
+
get body() {
|
|
2432
|
+
return t._body;
|
|
2433
|
+
}
|
|
2434
|
+
withBody(body) {
|
|
2435
|
+
return t._body === body ? t : new JSForOfLoop_1(t._id, t._prefix, t._markers, t._await, t._control, body);
|
|
2436
|
+
}
|
|
2437
|
+
};
|
|
2215
2438
|
}
|
|
2216
|
-
|
|
2217
|
-
|
|
2439
|
+
};
|
|
2440
|
+
exports.JSForOfLoop = JSForOfLoop;
|
|
2441
|
+
exports.JSForOfLoop = JSForOfLoop = JSForOfLoop_1 = __decorate([
|
|
2442
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$JSForOfLoop")
|
|
2443
|
+
], JSForOfLoop);
|
|
2444
|
+
let JSForInLoop = JSForInLoop_1 = class JSForInLoop extends (0, support_types_1.JSMixin)(Object) {
|
|
2445
|
+
constructor(id, prefix, markers, control, body) {
|
|
2446
|
+
super();
|
|
2447
|
+
this._id = id;
|
|
2448
|
+
this._prefix = prefix;
|
|
2449
|
+
this._markers = markers;
|
|
2450
|
+
this._control = control;
|
|
2451
|
+
this._body = body;
|
|
2218
2452
|
}
|
|
2219
|
-
|
|
2220
|
-
return
|
|
2453
|
+
get id() {
|
|
2454
|
+
return this._id;
|
|
2221
2455
|
}
|
|
2222
|
-
|
|
2223
|
-
return
|
|
2456
|
+
withId(id) {
|
|
2457
|
+
return id === this._id ? this : new JSForInLoop_1(id, this._prefix, this._markers, this._control, this._body);
|
|
2224
2458
|
}
|
|
2225
|
-
get
|
|
2226
|
-
return
|
|
2459
|
+
get prefix() {
|
|
2460
|
+
return this._prefix;
|
|
2227
2461
|
}
|
|
2228
|
-
|
|
2229
|
-
return
|
|
2462
|
+
withPrefix(prefix) {
|
|
2463
|
+
return prefix === this._prefix ? this : new JSForInLoop_1(this._id, prefix, this._markers, this._control, this._body);
|
|
2464
|
+
}
|
|
2465
|
+
get markers() {
|
|
2466
|
+
return this._markers;
|
|
2467
|
+
}
|
|
2468
|
+
withMarkers(markers) {
|
|
2469
|
+
return markers === this._markers ? this : new JSForInLoop_1(this._id, this._prefix, markers, this._control, this._body);
|
|
2470
|
+
}
|
|
2471
|
+
get control() {
|
|
2472
|
+
return this._control;
|
|
2473
|
+
}
|
|
2474
|
+
withControl(control) {
|
|
2475
|
+
return control === this._control ? this : new JSForInLoop_1(this._id, this._prefix, this._markers, control, this._body);
|
|
2476
|
+
}
|
|
2477
|
+
get body() {
|
|
2478
|
+
return this._body.element;
|
|
2479
|
+
}
|
|
2480
|
+
withBody(body) {
|
|
2481
|
+
return this.padding.withBody(this._body.withElement(body));
|
|
2482
|
+
}
|
|
2483
|
+
acceptJavaScript(v, p) {
|
|
2484
|
+
return v.visitJSForInLoop(this, p);
|
|
2230
2485
|
}
|
|
2231
2486
|
get padding() {
|
|
2232
2487
|
const t = this;
|
|
2233
2488
|
return new class {
|
|
2234
|
-
get
|
|
2235
|
-
return t.
|
|
2489
|
+
get body() {
|
|
2490
|
+
return t._body;
|
|
2236
2491
|
}
|
|
2237
|
-
|
|
2238
|
-
return t.
|
|
2492
|
+
withBody(body) {
|
|
2493
|
+
return t._body === body ? t : new JSForInLoop_1(t._id, t._prefix, t._markers, t._control, body);
|
|
2239
2494
|
}
|
|
2240
|
-
|
|
2241
|
-
|
|
2495
|
+
};
|
|
2496
|
+
}
|
|
2497
|
+
};
|
|
2498
|
+
exports.JSForInLoop = JSForInLoop;
|
|
2499
|
+
exports.JSForInLoop = JSForInLoop = JSForInLoop_1 = __decorate([
|
|
2500
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$JSForInLoop")
|
|
2501
|
+
], JSForInLoop);
|
|
2502
|
+
let JSForInOfLoopControl = JSForInOfLoopControl_1 = class JSForInOfLoopControl extends (0, support_types_1.JSMixin)(Object) {
|
|
2503
|
+
constructor(id, prefix, markers, variable, iterable) {
|
|
2504
|
+
super();
|
|
2505
|
+
this._id = id;
|
|
2506
|
+
this._prefix = prefix;
|
|
2507
|
+
this._markers = markers;
|
|
2508
|
+
this._variable = variable;
|
|
2509
|
+
this._iterable = iterable;
|
|
2510
|
+
}
|
|
2511
|
+
get id() {
|
|
2512
|
+
return this._id;
|
|
2513
|
+
}
|
|
2514
|
+
withId(id) {
|
|
2515
|
+
return id === this._id ? this : new JSForInOfLoopControl_1(id, this._prefix, this._markers, this._variable, this._iterable);
|
|
2516
|
+
}
|
|
2517
|
+
get prefix() {
|
|
2518
|
+
return this._prefix;
|
|
2519
|
+
}
|
|
2520
|
+
withPrefix(prefix) {
|
|
2521
|
+
return prefix === this._prefix ? this : new JSForInOfLoopControl_1(this._id, prefix, this._markers, this._variable, this._iterable);
|
|
2522
|
+
}
|
|
2523
|
+
get markers() {
|
|
2524
|
+
return this._markers;
|
|
2525
|
+
}
|
|
2526
|
+
withMarkers(markers) {
|
|
2527
|
+
return markers === this._markers ? this : new JSForInOfLoopControl_1(this._id, this._prefix, markers, this._variable, this._iterable);
|
|
2528
|
+
}
|
|
2529
|
+
get variable() {
|
|
2530
|
+
return this._variable.element;
|
|
2531
|
+
}
|
|
2532
|
+
withVariable(variable) {
|
|
2533
|
+
return this.padding.withVariable(this._variable.withElement(variable));
|
|
2534
|
+
}
|
|
2535
|
+
get iterable() {
|
|
2536
|
+
return this._iterable.element;
|
|
2537
|
+
}
|
|
2538
|
+
withIterable(iterable) {
|
|
2539
|
+
return this.padding.withIterable(this._iterable.withElement(iterable));
|
|
2540
|
+
}
|
|
2541
|
+
acceptJavaScript(v, p) {
|
|
2542
|
+
return v.visitJSForInOfLoopControl(this, p);
|
|
2543
|
+
}
|
|
2544
|
+
get padding() {
|
|
2545
|
+
const t = this;
|
|
2546
|
+
return new class {
|
|
2547
|
+
get variable() {
|
|
2548
|
+
return t._variable;
|
|
2242
2549
|
}
|
|
2243
|
-
|
|
2244
|
-
return t.
|
|
2550
|
+
withVariable(variable) {
|
|
2551
|
+
return t._variable === variable ? t : new JSForInOfLoopControl_1(t._id, t._prefix, t._markers, variable, t._iterable);
|
|
2245
2552
|
}
|
|
2246
|
-
get
|
|
2247
|
-
return t.
|
|
2553
|
+
get iterable() {
|
|
2554
|
+
return t._iterable;
|
|
2248
2555
|
}
|
|
2249
|
-
|
|
2250
|
-
return t.
|
|
2556
|
+
withIterable(iterable) {
|
|
2557
|
+
return t._iterable === iterable ? t : new JSForInOfLoopControl_1(t._id, t._prefix, t._markers, t._variable, iterable);
|
|
2251
2558
|
}
|
|
2252
2559
|
};
|
|
2253
2560
|
}
|
|
2254
2561
|
};
|
|
2255
|
-
exports.
|
|
2256
|
-
exports.
|
|
2257
|
-
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$
|
|
2258
|
-
],
|
|
2562
|
+
exports.JSForInOfLoopControl = JSForInOfLoopControl;
|
|
2563
|
+
exports.JSForInOfLoopControl = JSForInOfLoopControl = JSForInOfLoopControl_1 = __decorate([
|
|
2564
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$JSForInOfLoopControl")
|
|
2565
|
+
], JSForInOfLoopControl);
|
|
2259
2566
|
let NamespaceDeclaration = NamespaceDeclaration_1 = class NamespaceDeclaration extends (0, support_types_1.JSMixin)(Object) {
|
|
2260
2567
|
constructor(id, prefix, markers, modifiers, keywordType, name, body) {
|
|
2261
2568
|
super();
|
|
@@ -2434,4 +2741,271 @@ exports.FunctionDeclaration = FunctionDeclaration;
|
|
|
2434
2741
|
exports.FunctionDeclaration = FunctionDeclaration = FunctionDeclaration_1 = __decorate([
|
|
2435
2742
|
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$FunctionDeclaration")
|
|
2436
2743
|
], FunctionDeclaration);
|
|
2744
|
+
let TypeLiteral = TypeLiteral_1 = class TypeLiteral extends (0, support_types_1.JSMixin)(Object) {
|
|
2745
|
+
constructor(id, prefix, markers, members, _type) {
|
|
2746
|
+
super();
|
|
2747
|
+
this._id = id;
|
|
2748
|
+
this._prefix = prefix;
|
|
2749
|
+
this._markers = markers;
|
|
2750
|
+
this._members = members;
|
|
2751
|
+
this._type = _type;
|
|
2752
|
+
}
|
|
2753
|
+
get id() {
|
|
2754
|
+
return this._id;
|
|
2755
|
+
}
|
|
2756
|
+
withId(id) {
|
|
2757
|
+
return id === this._id ? this : new TypeLiteral_1(id, this._prefix, this._markers, this._members, this._type);
|
|
2758
|
+
}
|
|
2759
|
+
get prefix() {
|
|
2760
|
+
return this._prefix;
|
|
2761
|
+
}
|
|
2762
|
+
withPrefix(prefix) {
|
|
2763
|
+
return prefix === this._prefix ? this : new TypeLiteral_1(this._id, prefix, this._markers, this._members, this._type);
|
|
2764
|
+
}
|
|
2765
|
+
get markers() {
|
|
2766
|
+
return this._markers;
|
|
2767
|
+
}
|
|
2768
|
+
withMarkers(markers) {
|
|
2769
|
+
return markers === this._markers ? this : new TypeLiteral_1(this._id, this._prefix, markers, this._members, this._type);
|
|
2770
|
+
}
|
|
2771
|
+
get members() {
|
|
2772
|
+
return this._members;
|
|
2773
|
+
}
|
|
2774
|
+
withMembers(members) {
|
|
2775
|
+
return members === this._members ? this : new TypeLiteral_1(this._id, this._prefix, this._markers, members, this._type);
|
|
2776
|
+
}
|
|
2777
|
+
get type() {
|
|
2778
|
+
return this._type;
|
|
2779
|
+
}
|
|
2780
|
+
withType(_type) {
|
|
2781
|
+
return _type === this._type ? this : new TypeLiteral_1(this._id, this._prefix, this._markers, this._members, _type);
|
|
2782
|
+
}
|
|
2783
|
+
acceptJavaScript(v, p) {
|
|
2784
|
+
return v.visitTypeLiteral(this, p);
|
|
2785
|
+
}
|
|
2786
|
+
};
|
|
2787
|
+
exports.TypeLiteral = TypeLiteral;
|
|
2788
|
+
exports.TypeLiteral = TypeLiteral = TypeLiteral_1 = __decorate([
|
|
2789
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$TypeLiteral")
|
|
2790
|
+
], TypeLiteral);
|
|
2791
|
+
let IndexSignatureDeclaration = IndexSignatureDeclaration_1 = class IndexSignatureDeclaration extends (0, support_types_1.JSMixin)(Object) {
|
|
2792
|
+
constructor(id, prefix, markers, modifiers, parameters, typeExpression, _type) {
|
|
2793
|
+
super();
|
|
2794
|
+
this._id = id;
|
|
2795
|
+
this._prefix = prefix;
|
|
2796
|
+
this._markers = markers;
|
|
2797
|
+
this._modifiers = modifiers;
|
|
2798
|
+
this._parameters = parameters;
|
|
2799
|
+
this._typeExpression = typeExpression;
|
|
2800
|
+
this._type = _type;
|
|
2801
|
+
}
|
|
2802
|
+
get id() {
|
|
2803
|
+
return this._id;
|
|
2804
|
+
}
|
|
2805
|
+
withId(id) {
|
|
2806
|
+
return id === this._id ? this : new IndexSignatureDeclaration_1(id, this._prefix, this._markers, this._modifiers, this._parameters, this._typeExpression, this._type);
|
|
2807
|
+
}
|
|
2808
|
+
get prefix() {
|
|
2809
|
+
return this._prefix;
|
|
2810
|
+
}
|
|
2811
|
+
withPrefix(prefix) {
|
|
2812
|
+
return prefix === this._prefix ? this : new IndexSignatureDeclaration_1(this._id, prefix, this._markers, this._modifiers, this._parameters, this._typeExpression, this._type);
|
|
2813
|
+
}
|
|
2814
|
+
get markers() {
|
|
2815
|
+
return this._markers;
|
|
2816
|
+
}
|
|
2817
|
+
withMarkers(markers) {
|
|
2818
|
+
return markers === this._markers ? this : new IndexSignatureDeclaration_1(this._id, this._prefix, markers, this._modifiers, this._parameters, this._typeExpression, this._type);
|
|
2819
|
+
}
|
|
2820
|
+
get modifiers() {
|
|
2821
|
+
return this._modifiers;
|
|
2822
|
+
}
|
|
2823
|
+
withModifiers(modifiers) {
|
|
2824
|
+
return modifiers === this._modifiers ? this : new IndexSignatureDeclaration_1(this._id, this._prefix, this._markers, modifiers, this._parameters, this._typeExpression, this._type);
|
|
2825
|
+
}
|
|
2826
|
+
get parameters() {
|
|
2827
|
+
return this._parameters.elements;
|
|
2828
|
+
}
|
|
2829
|
+
withParameters(parameters) {
|
|
2830
|
+
return this.padding.withParameters(tree_1.JContainer.withElements(this._parameters, parameters));
|
|
2831
|
+
}
|
|
2832
|
+
get typeExpression() {
|
|
2833
|
+
return this._typeExpression.element;
|
|
2834
|
+
}
|
|
2835
|
+
withTypeExpression(typeExpression) {
|
|
2836
|
+
return this.padding.withTypeExpression(this._typeExpression.withElement(typeExpression));
|
|
2837
|
+
}
|
|
2838
|
+
get type() {
|
|
2839
|
+
return this._type;
|
|
2840
|
+
}
|
|
2841
|
+
withType(_type) {
|
|
2842
|
+
return _type === this._type ? this : new IndexSignatureDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, this._parameters, this._typeExpression, _type);
|
|
2843
|
+
}
|
|
2844
|
+
acceptJavaScript(v, p) {
|
|
2845
|
+
return v.visitIndexSignatureDeclaration(this, p);
|
|
2846
|
+
}
|
|
2847
|
+
get padding() {
|
|
2848
|
+
const t = this;
|
|
2849
|
+
return new class {
|
|
2850
|
+
get parameters() {
|
|
2851
|
+
return t._parameters;
|
|
2852
|
+
}
|
|
2853
|
+
withParameters(parameters) {
|
|
2854
|
+
return t._parameters === parameters ? t : new IndexSignatureDeclaration_1(t._id, t._prefix, t._markers, t._modifiers, parameters, t._typeExpression, t._type);
|
|
2855
|
+
}
|
|
2856
|
+
get typeExpression() {
|
|
2857
|
+
return t._typeExpression;
|
|
2858
|
+
}
|
|
2859
|
+
withTypeExpression(typeExpression) {
|
|
2860
|
+
return t._typeExpression === typeExpression ? t : new IndexSignatureDeclaration_1(t._id, t._prefix, t._markers, t._modifiers, t._parameters, typeExpression, t._type);
|
|
2861
|
+
}
|
|
2862
|
+
};
|
|
2863
|
+
}
|
|
2864
|
+
};
|
|
2865
|
+
exports.IndexSignatureDeclaration = IndexSignatureDeclaration;
|
|
2866
|
+
exports.IndexSignatureDeclaration = IndexSignatureDeclaration = IndexSignatureDeclaration_1 = __decorate([
|
|
2867
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$IndexSignatureDeclaration")
|
|
2868
|
+
], IndexSignatureDeclaration);
|
|
2869
|
+
let ArrayBindingPattern = ArrayBindingPattern_1 = class ArrayBindingPattern extends (0, support_types_1.JSMixin)(Object) {
|
|
2870
|
+
constructor(id, prefix, markers, elements, _type) {
|
|
2871
|
+
super();
|
|
2872
|
+
this._id = id;
|
|
2873
|
+
this._prefix = prefix;
|
|
2874
|
+
this._markers = markers;
|
|
2875
|
+
this._elements = elements;
|
|
2876
|
+
this._type = _type;
|
|
2877
|
+
}
|
|
2878
|
+
get id() {
|
|
2879
|
+
return this._id;
|
|
2880
|
+
}
|
|
2881
|
+
withId(id) {
|
|
2882
|
+
return id === this._id ? this : new ArrayBindingPattern_1(id, this._prefix, this._markers, this._elements, this._type);
|
|
2883
|
+
}
|
|
2884
|
+
get prefix() {
|
|
2885
|
+
return this._prefix;
|
|
2886
|
+
}
|
|
2887
|
+
withPrefix(prefix) {
|
|
2888
|
+
return prefix === this._prefix ? this : new ArrayBindingPattern_1(this._id, prefix, this._markers, this._elements, this._type);
|
|
2889
|
+
}
|
|
2890
|
+
get markers() {
|
|
2891
|
+
return this._markers;
|
|
2892
|
+
}
|
|
2893
|
+
withMarkers(markers) {
|
|
2894
|
+
return markers === this._markers ? this : new ArrayBindingPattern_1(this._id, this._prefix, markers, this._elements, this._type);
|
|
2895
|
+
}
|
|
2896
|
+
get elements() {
|
|
2897
|
+
return this._elements.elements;
|
|
2898
|
+
}
|
|
2899
|
+
withElements(elements) {
|
|
2900
|
+
return this.padding.withElements(tree_1.JContainer.withElements(this._elements, elements));
|
|
2901
|
+
}
|
|
2902
|
+
get type() {
|
|
2903
|
+
return this._type;
|
|
2904
|
+
}
|
|
2905
|
+
withType(_type) {
|
|
2906
|
+
return _type === this._type ? this : new ArrayBindingPattern_1(this._id, this._prefix, this._markers, this._elements, _type);
|
|
2907
|
+
}
|
|
2908
|
+
acceptJavaScript(v, p) {
|
|
2909
|
+
return v.visitArrayBindingPattern(this, p);
|
|
2910
|
+
}
|
|
2911
|
+
get padding() {
|
|
2912
|
+
const t = this;
|
|
2913
|
+
return new class {
|
|
2914
|
+
get elements() {
|
|
2915
|
+
return t._elements;
|
|
2916
|
+
}
|
|
2917
|
+
withElements(elements) {
|
|
2918
|
+
return t._elements === elements ? t : new ArrayBindingPattern_1(t._id, t._prefix, t._markers, elements, t._type);
|
|
2919
|
+
}
|
|
2920
|
+
};
|
|
2921
|
+
}
|
|
2922
|
+
};
|
|
2923
|
+
exports.ArrayBindingPattern = ArrayBindingPattern;
|
|
2924
|
+
exports.ArrayBindingPattern = ArrayBindingPattern = ArrayBindingPattern_1 = __decorate([
|
|
2925
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$ArrayBindingPattern")
|
|
2926
|
+
], ArrayBindingPattern);
|
|
2927
|
+
let BindingElement = BindingElement_1 = class BindingElement extends (0, support_types_1.JSMixin)(Object) {
|
|
2928
|
+
constructor(id, prefix, markers, propertyName, name, initializer, variableType) {
|
|
2929
|
+
super();
|
|
2930
|
+
this._id = id;
|
|
2931
|
+
this._prefix = prefix;
|
|
2932
|
+
this._markers = markers;
|
|
2933
|
+
this._propertyName = propertyName;
|
|
2934
|
+
this._name = name;
|
|
2935
|
+
this._initializer = initializer;
|
|
2936
|
+
this._variableType = variableType;
|
|
2937
|
+
}
|
|
2938
|
+
get id() {
|
|
2939
|
+
return this._id;
|
|
2940
|
+
}
|
|
2941
|
+
withId(id) {
|
|
2942
|
+
return id === this._id ? this : new BindingElement_1(id, this._prefix, this._markers, this._propertyName, this._name, this._initializer, this._variableType);
|
|
2943
|
+
}
|
|
2944
|
+
get prefix() {
|
|
2945
|
+
return this._prefix;
|
|
2946
|
+
}
|
|
2947
|
+
withPrefix(prefix) {
|
|
2948
|
+
return prefix === this._prefix ? this : new BindingElement_1(this._id, prefix, this._markers, this._propertyName, this._name, this._initializer, this._variableType);
|
|
2949
|
+
}
|
|
2950
|
+
get markers() {
|
|
2951
|
+
return this._markers;
|
|
2952
|
+
}
|
|
2953
|
+
withMarkers(markers) {
|
|
2954
|
+
return markers === this._markers ? this : new BindingElement_1(this._id, this._prefix, markers, this._propertyName, this._name, this._initializer, this._variableType);
|
|
2955
|
+
}
|
|
2956
|
+
get propertyName() {
|
|
2957
|
+
return this._propertyName === null ? null : this._propertyName.element;
|
|
2958
|
+
}
|
|
2959
|
+
withPropertyName(propertyName) {
|
|
2960
|
+
return this.padding.withPropertyName(tree_1.JRightPadded.withElement(this._propertyName, propertyName));
|
|
2961
|
+
}
|
|
2962
|
+
get name() {
|
|
2963
|
+
return this._name;
|
|
2964
|
+
}
|
|
2965
|
+
withName(name) {
|
|
2966
|
+
return name === this._name ? this : new BindingElement_1(this._id, this._prefix, this._markers, this._propertyName, name, this._initializer, this._variableType);
|
|
2967
|
+
}
|
|
2968
|
+
get initializer() {
|
|
2969
|
+
return this._initializer === null ? null : this._initializer.element;
|
|
2970
|
+
}
|
|
2971
|
+
withInitializer(initializer) {
|
|
2972
|
+
return this.padding.withInitializer(tree_1.JLeftPadded.withElement(this._initializer, initializer));
|
|
2973
|
+
}
|
|
2974
|
+
get variableType() {
|
|
2975
|
+
return this._variableType;
|
|
2976
|
+
}
|
|
2977
|
+
withVariableType(variableType) {
|
|
2978
|
+
return variableType === this._variableType ? this : new BindingElement_1(this._id, this._prefix, this._markers, this._propertyName, this._name, this._initializer, variableType);
|
|
2979
|
+
}
|
|
2980
|
+
acceptJavaScript(v, p) {
|
|
2981
|
+
return v.visitBindingElement(this, p);
|
|
2982
|
+
}
|
|
2983
|
+
get type() {
|
|
2984
|
+
return extensions.getJavaType(this);
|
|
2985
|
+
}
|
|
2986
|
+
withType(type) {
|
|
2987
|
+
return extensions.withJavaType(this, type);
|
|
2988
|
+
}
|
|
2989
|
+
get padding() {
|
|
2990
|
+
const t = this;
|
|
2991
|
+
return new class {
|
|
2992
|
+
get propertyName() {
|
|
2993
|
+
return t._propertyName;
|
|
2994
|
+
}
|
|
2995
|
+
withPropertyName(propertyName) {
|
|
2996
|
+
return t._propertyName === propertyName ? t : new BindingElement_1(t._id, t._prefix, t._markers, propertyName, t._name, t._initializer, t._variableType);
|
|
2997
|
+
}
|
|
2998
|
+
get initializer() {
|
|
2999
|
+
return t._initializer;
|
|
3000
|
+
}
|
|
3001
|
+
withInitializer(initializer) {
|
|
3002
|
+
return t._initializer === initializer ? t : new BindingElement_1(t._id, t._prefix, t._markers, t._propertyName, t._name, initializer, t._variableType);
|
|
3003
|
+
}
|
|
3004
|
+
};
|
|
3005
|
+
}
|
|
3006
|
+
};
|
|
3007
|
+
exports.BindingElement = BindingElement;
|
|
3008
|
+
exports.BindingElement = BindingElement = BindingElement_1 = __decorate([
|
|
3009
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$BindingElement")
|
|
3010
|
+
], BindingElement);
|
|
2437
3011
|
//# sourceMappingURL=tree.js.map
|