@openrewrite/rewrite 0.25.3 → 0.26.0
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/java/markers.d.ts +7 -0
- package/dist/src/java/markers.d.ts.map +1 -1
- package/dist/src/java/markers.js +20 -3
- package/dist/src/java/markers.js.map +1 -1
- package/dist/src/java/remote/receiver.d.ts.map +1 -1
- package/dist/src/java/remote/receiver.js +10 -0
- package/dist/src/java/remote/receiver.js.map +1 -1
- package/dist/src/java/remote/sender.d.ts.map +1 -1
- package/dist/src/java/remote/sender.js +7 -0
- package/dist/src/java/remote/sender.js.map +1 -1
- package/dist/src/java/tree/support_types.d.ts +2 -1
- package/dist/src/java/tree/support_types.d.ts.map +1 -1
- package/dist/src/java/tree/support_types.js.map +1 -1
- package/dist/src/java/tree/tree.d.ts +39 -0
- package/dist/src/java/tree/tree.d.ts.map +1 -1
- package/dist/src/java/tree/tree.js +48 -2
- package/dist/src/java/tree/tree.js.map +1 -1
- package/dist/src/java/visitor.d.ts +2 -1
- package/dist/src/java/visitor.d.ts.map +1 -1
- package/dist/src/java/visitor.js +15 -0
- package/dist/src/java/visitor.js.map +1 -1
- package/dist/src/javascript/parser.d.ts +3 -3
- package/dist/src/javascript/parser.d.ts.map +1 -1
- package/dist/src/javascript/parser.js +61 -47
- 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 +28 -4
- 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 +19 -1
- package/dist/src/javascript/remote/sender.js.map +1 -1
- package/dist/src/javascript/tree/support_types.d.ts +14 -11
- package/dist/src/javascript/tree/support_types.d.ts.map +1 -1
- package/dist/src/javascript/tree/support_types.js +11 -8
- package/dist/src/javascript/tree/support_types.js.map +1 -1
- package/dist/src/javascript/tree/tree.d.ts +87 -20
- package/dist/src/javascript/tree/tree.d.ts.map +1 -1
- package/dist/src/javascript/tree/tree.js +124 -25
- package/dist/src/javascript/tree/tree.js.map +1 -1
- package/dist/src/javascript/visitor.d.ts +2 -1
- package/dist/src/javascript/visitor.d.ts.map +1 -1
- package/dist/src/javascript/visitor.js +19 -1
- package/dist/src/javascript/visitor.js.map +1 -1
- package/package.json +1 -1
|
@@ -38,10 +38,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
return result;
|
|
39
39
|
};
|
|
40
40
|
})();
|
|
41
|
-
var CompilationUnit_1, Alias_1, ArrowFunction_1, Await_1, ConditionalType_1, DefaultType_1, Delete_1, Export_1, ExpressionWithTypeArguments_1, FunctionType_1, InferType_1, ImportType_1, JsImport_1, JsImportSpecifier_1, JsBinary_1, LiteralType_1, MappedType_1, ObjectBindingDeclarations_1, PropertyAssignment_1, SatisfiesExpression_1, ScopedVariableDeclarations_1, TaggedTemplateExpression_1, TemplateExpression_1, Tuple_1, TypeDeclaration_1, TypeOf_1, TypeQuery_1, TypeOperator_1, TypePredicate_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, ExportDeclaration_1, ExportAssignment_1, NamedExports_1, ExportSpecifier_1, IndexedAccessType_1, JsAssignmentOperation_1, TypeTreeExpression_1;
|
|
41
|
+
var CompilationUnit_1, Alias_1, ArrowFunction_1, Await_1, ConditionalType_1, DefaultType_1, Delete_1, Export_1, TrailingTokenStatement_1, ExpressionWithTypeArguments_1, FunctionType_1, InferType_1, ImportType_1, JsImport_1, JsImportSpecifier_1, JsBinary_1, LiteralType_1, MappedType_1, ObjectBindingDeclarations_1, PropertyAssignment_1, SatisfiesExpression_1, ScopedVariableDeclarations_1, TaggedTemplateExpression_1, TemplateExpression_1, Tuple_1, TypeDeclaration_1, TypeOf_1, TypeQuery_1, TypeOperator_1, TypePredicate_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, ExportDeclaration_1, ExportAssignment_1, NamedExports_1, ExportSpecifier_1, IndexedAccessType_1, JsAssignmentOperation_1, TypeTreeExpression_1;
|
|
42
42
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
-
exports.
|
|
44
|
-
exports.TypeTreeExpression = exports.JsAssignmentOperation = exports.IndexedAccessType = void 0;
|
|
43
|
+
exports.NamedExports = exports.ExportAssignment = exports.ExportDeclaration = 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.TypePredicate = exports.TypeOperator = exports.TypeQuery = exports.TypeOf = exports.TypeDeclaration = exports.Tuple = exports.TemplateExpression = exports.TaggedTemplateExpression = exports.ScopedVariableDeclarations = exports.SatisfiesExpression = exports.PropertyAssignment = exports.ObjectBindingDeclarations = exports.MappedType = exports.LiteralType = exports.JsBinary = exports.JsImportSpecifier = exports.JsImport = exports.ImportType = exports.InferType = exports.FunctionType = exports.ExpressionWithTypeArguments = exports.TrailingTokenStatement = exports.Export = exports.Delete = exports.DefaultType = exports.ConditionalType = exports.Await = exports.ArrowFunction = exports.Alias = exports.CompilationUnit = void 0;
|
|
44
|
+
exports.TypeTreeExpression = exports.JsAssignmentOperation = exports.IndexedAccessType = exports.ExportSpecifier = void 0;
|
|
45
45
|
const extensions = __importStar(require("./extensions"));
|
|
46
46
|
const support_types_1 = require("./support_types");
|
|
47
47
|
const core_1 = require("../../core");
|
|
@@ -610,6 +610,64 @@ exports.Export = Export;
|
|
|
610
610
|
exports.Export = Export = Export_1 = __decorate([
|
|
611
611
|
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$Export")
|
|
612
612
|
], Export);
|
|
613
|
+
let TrailingTokenStatement = TrailingTokenStatement_1 = class TrailingTokenStatement extends (0, support_types_1.JSMixin)(Object) {
|
|
614
|
+
constructor(id, prefix, markers, expression, _type) {
|
|
615
|
+
super();
|
|
616
|
+
this._id = id;
|
|
617
|
+
this._prefix = prefix;
|
|
618
|
+
this._markers = markers;
|
|
619
|
+
this._expression = expression;
|
|
620
|
+
this._type = _type;
|
|
621
|
+
}
|
|
622
|
+
get id() {
|
|
623
|
+
return this._id;
|
|
624
|
+
}
|
|
625
|
+
withId(id) {
|
|
626
|
+
return id === this._id ? this : new TrailingTokenStatement_1(id, this._prefix, this._markers, this._expression, this._type);
|
|
627
|
+
}
|
|
628
|
+
get prefix() {
|
|
629
|
+
return this._prefix;
|
|
630
|
+
}
|
|
631
|
+
withPrefix(prefix) {
|
|
632
|
+
return prefix === this._prefix ? this : new TrailingTokenStatement_1(this._id, prefix, this._markers, this._expression, this._type);
|
|
633
|
+
}
|
|
634
|
+
get markers() {
|
|
635
|
+
return this._markers;
|
|
636
|
+
}
|
|
637
|
+
withMarkers(markers) {
|
|
638
|
+
return markers === this._markers ? this : new TrailingTokenStatement_1(this._id, this._prefix, markers, this._expression, this._type);
|
|
639
|
+
}
|
|
640
|
+
get expression() {
|
|
641
|
+
return this._expression.element;
|
|
642
|
+
}
|
|
643
|
+
withExpression(expression) {
|
|
644
|
+
return this.padding.withExpression(this._expression.withElement(expression));
|
|
645
|
+
}
|
|
646
|
+
get type() {
|
|
647
|
+
return this._type;
|
|
648
|
+
}
|
|
649
|
+
withType(_type) {
|
|
650
|
+
return _type === this._type ? this : new TrailingTokenStatement_1(this._id, this._prefix, this._markers, this._expression, _type);
|
|
651
|
+
}
|
|
652
|
+
acceptJavaScript(v, p) {
|
|
653
|
+
return v.visitTrailingTokenStatement(this, p);
|
|
654
|
+
}
|
|
655
|
+
get padding() {
|
|
656
|
+
const t = this;
|
|
657
|
+
return new class {
|
|
658
|
+
get expression() {
|
|
659
|
+
return t._expression;
|
|
660
|
+
}
|
|
661
|
+
withExpression(expression) {
|
|
662
|
+
return t._expression === expression ? t : new TrailingTokenStatement_1(t._id, t._prefix, t._markers, expression, t._type);
|
|
663
|
+
}
|
|
664
|
+
};
|
|
665
|
+
}
|
|
666
|
+
};
|
|
667
|
+
exports.TrailingTokenStatement = TrailingTokenStatement;
|
|
668
|
+
exports.TrailingTokenStatement = TrailingTokenStatement = TrailingTokenStatement_1 = __decorate([
|
|
669
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$TrailingTokenStatement")
|
|
670
|
+
], TrailingTokenStatement);
|
|
613
671
|
let ExpressionWithTypeArguments = ExpressionWithTypeArguments_1 = class ExpressionWithTypeArguments extends (0, support_types_1.JSMixin)(Object) {
|
|
614
672
|
constructor(id, prefix, markers, clazz, typeArguments, _type) {
|
|
615
673
|
super();
|
|
@@ -676,11 +734,12 @@ exports.ExpressionWithTypeArguments = ExpressionWithTypeArguments = ExpressionWi
|
|
|
676
734
|
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$ExpressionWithTypeArguments")
|
|
677
735
|
], ExpressionWithTypeArguments);
|
|
678
736
|
let FunctionType = FunctionType_1 = class FunctionType extends (0, support_types_1.JSMixin)(Object) {
|
|
679
|
-
constructor(id, prefix, markers, constructorType, typeParameters, parameters, arrow, returnType, _type) {
|
|
737
|
+
constructor(id, prefix, markers, modifiers, constructorType, typeParameters, parameters, arrow, returnType, _type) {
|
|
680
738
|
super();
|
|
681
739
|
this._id = id;
|
|
682
740
|
this._prefix = prefix;
|
|
683
741
|
this._markers = markers;
|
|
742
|
+
this._modifiers = modifiers;
|
|
684
743
|
this._constructorType = constructorType;
|
|
685
744
|
this._typeParameters = typeParameters;
|
|
686
745
|
this._parameters = parameters;
|
|
@@ -692,19 +751,25 @@ let FunctionType = FunctionType_1 = class FunctionType extends (0, support_types
|
|
|
692
751
|
return this._id;
|
|
693
752
|
}
|
|
694
753
|
withId(id) {
|
|
695
|
-
return id === this._id ? this : new FunctionType_1(id, this._prefix, this._markers, this._constructorType, this._typeParameters, this._parameters, this._arrow, this._returnType, this._type);
|
|
754
|
+
return id === this._id ? this : new FunctionType_1(id, this._prefix, this._markers, this._modifiers, this._constructorType, this._typeParameters, this._parameters, this._arrow, this._returnType, this._type);
|
|
696
755
|
}
|
|
697
756
|
get prefix() {
|
|
698
757
|
return this._prefix;
|
|
699
758
|
}
|
|
700
759
|
withPrefix(prefix) {
|
|
701
|
-
return prefix === this._prefix ? this : new FunctionType_1(this._id, prefix, this._markers, this._constructorType, this._typeParameters, this._parameters, this._arrow, this._returnType, this._type);
|
|
760
|
+
return prefix === this._prefix ? this : new FunctionType_1(this._id, prefix, this._markers, this._modifiers, this._constructorType, this._typeParameters, this._parameters, this._arrow, this._returnType, this._type);
|
|
702
761
|
}
|
|
703
762
|
get markers() {
|
|
704
763
|
return this._markers;
|
|
705
764
|
}
|
|
706
765
|
withMarkers(markers) {
|
|
707
|
-
return markers === this._markers ? this : new FunctionType_1(this._id, this._prefix, markers, this._constructorType, this._typeParameters, this._parameters, this._arrow, this._returnType, this._type);
|
|
766
|
+
return markers === this._markers ? this : new FunctionType_1(this._id, this._prefix, markers, this._modifiers, this._constructorType, this._typeParameters, this._parameters, this._arrow, this._returnType, this._type);
|
|
767
|
+
}
|
|
768
|
+
get modifiers() {
|
|
769
|
+
return this._modifiers;
|
|
770
|
+
}
|
|
771
|
+
withModifiers(modifiers) {
|
|
772
|
+
return modifiers === this._modifiers ? this : new FunctionType_1(this._id, this._prefix, this._markers, modifiers, this._constructorType, this._typeParameters, this._parameters, this._arrow, this._returnType, this._type);
|
|
708
773
|
}
|
|
709
774
|
get constructorType() {
|
|
710
775
|
return this._constructorType.element;
|
|
@@ -716,7 +781,7 @@ let FunctionType = FunctionType_1 = class FunctionType extends (0, support_types
|
|
|
716
781
|
return this._typeParameters;
|
|
717
782
|
}
|
|
718
783
|
withTypeParameters(typeParameters) {
|
|
719
|
-
return typeParameters === this._typeParameters ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._constructorType, typeParameters, this._parameters, this._arrow, this._returnType, this._type);
|
|
784
|
+
return typeParameters === this._typeParameters ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._modifiers, this._constructorType, typeParameters, this._parameters, this._arrow, this._returnType, this._type);
|
|
720
785
|
}
|
|
721
786
|
get parameters() {
|
|
722
787
|
return this._parameters.elements;
|
|
@@ -728,19 +793,19 @@ let FunctionType = FunctionType_1 = class FunctionType extends (0, support_types
|
|
|
728
793
|
return this._arrow;
|
|
729
794
|
}
|
|
730
795
|
withArrow(arrow) {
|
|
731
|
-
return arrow === this._arrow ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._constructorType, this._typeParameters, this._parameters, arrow, this._returnType, this._type);
|
|
796
|
+
return arrow === this._arrow ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._modifiers, this._constructorType, this._typeParameters, this._parameters, arrow, this._returnType, this._type);
|
|
732
797
|
}
|
|
733
798
|
get returnType() {
|
|
734
799
|
return this._returnType;
|
|
735
800
|
}
|
|
736
801
|
withReturnType(returnType) {
|
|
737
|
-
return returnType === this._returnType ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._constructorType, this._typeParameters, this._parameters, this._arrow, returnType, this._type);
|
|
802
|
+
return returnType === this._returnType ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._modifiers, this._constructorType, this._typeParameters, this._parameters, this._arrow, returnType, this._type);
|
|
738
803
|
}
|
|
739
804
|
get type() {
|
|
740
805
|
return this._type;
|
|
741
806
|
}
|
|
742
807
|
withType(_type) {
|
|
743
|
-
return _type === this._type ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._constructorType, this._typeParameters, this._parameters, this._arrow, this._returnType, _type);
|
|
808
|
+
return _type === this._type ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._modifiers, this._constructorType, this._typeParameters, this._parameters, this._arrow, this._returnType, _type);
|
|
744
809
|
}
|
|
745
810
|
acceptJavaScript(v, p) {
|
|
746
811
|
return v.visitFunctionType(this, p);
|
|
@@ -752,13 +817,13 @@ let FunctionType = FunctionType_1 = class FunctionType extends (0, support_types
|
|
|
752
817
|
return t._constructorType;
|
|
753
818
|
}
|
|
754
819
|
withConstructorType(constructorType) {
|
|
755
|
-
return t._constructorType === constructorType ? t : new FunctionType_1(t._id, t._prefix, t._markers, constructorType, t._typeParameters, t._parameters, t._arrow, t._returnType, t._type);
|
|
820
|
+
return t._constructorType === constructorType ? t : new FunctionType_1(t._id, t._prefix, t._markers, t._modifiers, constructorType, t._typeParameters, t._parameters, t._arrow, t._returnType, t._type);
|
|
756
821
|
}
|
|
757
822
|
get parameters() {
|
|
758
823
|
return t._parameters;
|
|
759
824
|
}
|
|
760
825
|
withParameters(parameters) {
|
|
761
|
-
return t._parameters === parameters ? t : new FunctionType_1(t._id, t._prefix, t._markers, t._constructorType, t._typeParameters, parameters, t._arrow, t._returnType, t._type);
|
|
826
|
+
return t._parameters === parameters ? t : new FunctionType_1(t._id, t._prefix, t._markers, t._modifiers, t._constructorType, t._typeParameters, parameters, t._arrow, t._returnType, t._type);
|
|
762
827
|
}
|
|
763
828
|
};
|
|
764
829
|
}
|
|
@@ -1548,31 +1613,32 @@ exports.ObjectBindingDeclarations = ObjectBindingDeclarations = ObjectBindingDec
|
|
|
1548
1613
|
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$ObjectBindingDeclarations")
|
|
1549
1614
|
], ObjectBindingDeclarations);
|
|
1550
1615
|
let PropertyAssignment = PropertyAssignment_1 = class PropertyAssignment extends (0, support_types_1.JSMixin)(Object) {
|
|
1551
|
-
constructor(id, prefix, markers, name, initializer) {
|
|
1616
|
+
constructor(id, prefix, markers, name, assigmentToken, initializer) {
|
|
1552
1617
|
super();
|
|
1553
1618
|
this._id = id;
|
|
1554
1619
|
this._prefix = prefix;
|
|
1555
1620
|
this._markers = markers;
|
|
1556
1621
|
this._name = name;
|
|
1622
|
+
this._assigmentToken = assigmentToken;
|
|
1557
1623
|
this._initializer = initializer;
|
|
1558
1624
|
}
|
|
1559
1625
|
get id() {
|
|
1560
1626
|
return this._id;
|
|
1561
1627
|
}
|
|
1562
1628
|
withId(id) {
|
|
1563
|
-
return id === this._id ? this : new PropertyAssignment_1(id, this._prefix, this._markers, this._name, this._initializer);
|
|
1629
|
+
return id === this._id ? this : new PropertyAssignment_1(id, this._prefix, this._markers, this._name, this._assigmentToken, this._initializer);
|
|
1564
1630
|
}
|
|
1565
1631
|
get prefix() {
|
|
1566
1632
|
return this._prefix;
|
|
1567
1633
|
}
|
|
1568
1634
|
withPrefix(prefix) {
|
|
1569
|
-
return prefix === this._prefix ? this : new PropertyAssignment_1(this._id, prefix, this._markers, this._name, this._initializer);
|
|
1635
|
+
return prefix === this._prefix ? this : new PropertyAssignment_1(this._id, prefix, this._markers, this._name, this._assigmentToken, this._initializer);
|
|
1570
1636
|
}
|
|
1571
1637
|
get markers() {
|
|
1572
1638
|
return this._markers;
|
|
1573
1639
|
}
|
|
1574
1640
|
withMarkers(markers) {
|
|
1575
|
-
return markers === this._markers ? this : new PropertyAssignment_1(this._id, this._prefix, markers, this._name, this._initializer);
|
|
1641
|
+
return markers === this._markers ? this : new PropertyAssignment_1(this._id, this._prefix, markers, this._name, this._assigmentToken, this._initializer);
|
|
1576
1642
|
}
|
|
1577
1643
|
get name() {
|
|
1578
1644
|
return this._name.element;
|
|
@@ -1580,11 +1646,17 @@ let PropertyAssignment = PropertyAssignment_1 = class PropertyAssignment extends
|
|
|
1580
1646
|
withName(name) {
|
|
1581
1647
|
return this.padding.withName(this._name.withElement(name));
|
|
1582
1648
|
}
|
|
1649
|
+
get assigmentToken() {
|
|
1650
|
+
return this._assigmentToken;
|
|
1651
|
+
}
|
|
1652
|
+
withAssigmentToken(assigmentToken) {
|
|
1653
|
+
return assigmentToken === this._assigmentToken ? this : new PropertyAssignment_1(this._id, this._prefix, this._markers, this._name, assigmentToken, this._initializer);
|
|
1654
|
+
}
|
|
1583
1655
|
get initializer() {
|
|
1584
1656
|
return this._initializer;
|
|
1585
1657
|
}
|
|
1586
1658
|
withInitializer(initializer) {
|
|
1587
|
-
return initializer === this._initializer ? this : new PropertyAssignment_1(this._id, this._prefix, this._markers, this._name, initializer);
|
|
1659
|
+
return initializer === this._initializer ? this : new PropertyAssignment_1(this._id, this._prefix, this._markers, this._name, this._assigmentToken, initializer);
|
|
1588
1660
|
}
|
|
1589
1661
|
acceptJavaScript(v, p) {
|
|
1590
1662
|
return v.visitPropertyAssignment(this, p);
|
|
@@ -1602,7 +1674,7 @@ let PropertyAssignment = PropertyAssignment_1 = class PropertyAssignment extends
|
|
|
1602
1674
|
return t._name;
|
|
1603
1675
|
}
|
|
1604
1676
|
withName(name) {
|
|
1605
|
-
return t._name === name ? t : new PropertyAssignment_1(t._id, t._prefix, t._markers, name, t._initializer);
|
|
1677
|
+
return t._name === name ? t : new PropertyAssignment_1(t._id, t._prefix, t._markers, name, t._assigmentToken, t._initializer);
|
|
1606
1678
|
}
|
|
1607
1679
|
};
|
|
1608
1680
|
}
|
|
@@ -1611,6 +1683,14 @@ exports.PropertyAssignment = PropertyAssignment;
|
|
|
1611
1683
|
exports.PropertyAssignment = PropertyAssignment = PropertyAssignment_1 = __decorate([
|
|
1612
1684
|
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$PropertyAssignment")
|
|
1613
1685
|
], PropertyAssignment);
|
|
1686
|
+
(function (PropertyAssignment) {
|
|
1687
|
+
let AssigmentToken;
|
|
1688
|
+
(function (AssigmentToken) {
|
|
1689
|
+
AssigmentToken[AssigmentToken["Colon"] = 0] = "Colon";
|
|
1690
|
+
AssigmentToken[AssigmentToken["Equals"] = 1] = "Equals";
|
|
1691
|
+
AssigmentToken[AssigmentToken["Empty"] = 2] = "Empty";
|
|
1692
|
+
})(AssigmentToken = PropertyAssignment.AssigmentToken || (PropertyAssignment.AssigmentToken = {}));
|
|
1693
|
+
})(PropertyAssignment || (exports.PropertyAssignment = PropertyAssignment = {}));
|
|
1614
1694
|
let SatisfiesExpression = SatisfiesExpression_1 = class SatisfiesExpression extends (0, support_types_1.JSMixin)(Object) {
|
|
1615
1695
|
constructor(id, prefix, markers, expression, satisfiesType, _type) {
|
|
1616
1696
|
super();
|
|
@@ -2138,47 +2218,65 @@ exports.TypeOf = TypeOf = TypeOf_1 = __decorate([
|
|
|
2138
2218
|
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$TypeOf")
|
|
2139
2219
|
], TypeOf);
|
|
2140
2220
|
let TypeQuery = TypeQuery_1 = class TypeQuery extends (0, support_types_1.JSMixin)(Object) {
|
|
2141
|
-
constructor(id, prefix, markers, typeExpression, _type) {
|
|
2221
|
+
constructor(id, prefix, markers, typeExpression, typeArguments, _type) {
|
|
2142
2222
|
super();
|
|
2143
2223
|
this._id = id;
|
|
2144
2224
|
this._prefix = prefix;
|
|
2145
2225
|
this._markers = markers;
|
|
2146
2226
|
this._typeExpression = typeExpression;
|
|
2227
|
+
this._typeArguments = typeArguments;
|
|
2147
2228
|
this._type = _type;
|
|
2148
2229
|
}
|
|
2149
2230
|
get id() {
|
|
2150
2231
|
return this._id;
|
|
2151
2232
|
}
|
|
2152
2233
|
withId(id) {
|
|
2153
|
-
return id === this._id ? this : new TypeQuery_1(id, this._prefix, this._markers, this._typeExpression, this._type);
|
|
2234
|
+
return id === this._id ? this : new TypeQuery_1(id, this._prefix, this._markers, this._typeExpression, this._typeArguments, this._type);
|
|
2154
2235
|
}
|
|
2155
2236
|
get prefix() {
|
|
2156
2237
|
return this._prefix;
|
|
2157
2238
|
}
|
|
2158
2239
|
withPrefix(prefix) {
|
|
2159
|
-
return prefix === this._prefix ? this : new TypeQuery_1(this._id, prefix, this._markers, this._typeExpression, this._type);
|
|
2240
|
+
return prefix === this._prefix ? this : new TypeQuery_1(this._id, prefix, this._markers, this._typeExpression, this._typeArguments, this._type);
|
|
2160
2241
|
}
|
|
2161
2242
|
get markers() {
|
|
2162
2243
|
return this._markers;
|
|
2163
2244
|
}
|
|
2164
2245
|
withMarkers(markers) {
|
|
2165
|
-
return markers === this._markers ? this : new TypeQuery_1(this._id, this._prefix, markers, this._typeExpression, this._type);
|
|
2246
|
+
return markers === this._markers ? this : new TypeQuery_1(this._id, this._prefix, markers, this._typeExpression, this._typeArguments, this._type);
|
|
2166
2247
|
}
|
|
2167
2248
|
get typeExpression() {
|
|
2168
2249
|
return this._typeExpression;
|
|
2169
2250
|
}
|
|
2170
2251
|
withTypeExpression(typeExpression) {
|
|
2171
|
-
return typeExpression === this._typeExpression ? this : new TypeQuery_1(this._id, this._prefix, this._markers, typeExpression, this._type);
|
|
2252
|
+
return typeExpression === this._typeExpression ? this : new TypeQuery_1(this._id, this._prefix, this._markers, typeExpression, this._typeArguments, this._type);
|
|
2253
|
+
}
|
|
2254
|
+
get typeArguments() {
|
|
2255
|
+
return this._typeArguments === null ? null : this._typeArguments.elements;
|
|
2256
|
+
}
|
|
2257
|
+
withTypeArguments(typeArguments) {
|
|
2258
|
+
return this.padding.withTypeArguments(tree_1.JContainer.withElementsNullable(this._typeArguments, typeArguments));
|
|
2172
2259
|
}
|
|
2173
2260
|
get type() {
|
|
2174
2261
|
return this._type;
|
|
2175
2262
|
}
|
|
2176
2263
|
withType(_type) {
|
|
2177
|
-
return _type === this._type ? this : new TypeQuery_1(this._id, this._prefix, this._markers, this._typeExpression, _type);
|
|
2264
|
+
return _type === this._type ? this : new TypeQuery_1(this._id, this._prefix, this._markers, this._typeExpression, this._typeArguments, _type);
|
|
2178
2265
|
}
|
|
2179
2266
|
acceptJavaScript(v, p) {
|
|
2180
2267
|
return v.visitTypeQuery(this, p);
|
|
2181
2268
|
}
|
|
2269
|
+
get padding() {
|
|
2270
|
+
const t = this;
|
|
2271
|
+
return new class {
|
|
2272
|
+
get typeArguments() {
|
|
2273
|
+
return t._typeArguments;
|
|
2274
|
+
}
|
|
2275
|
+
withTypeArguments(typeArguments) {
|
|
2276
|
+
return t._typeArguments === typeArguments ? t : new TypeQuery_1(t._id, t._prefix, t._markers, t._typeExpression, typeArguments, t._type);
|
|
2277
|
+
}
|
|
2278
|
+
};
|
|
2279
|
+
}
|
|
2182
2280
|
};
|
|
2183
2281
|
exports.TypeQuery = TypeQuery;
|
|
2184
2282
|
exports.TypeQuery = TypeQuery = TypeQuery_1 = __decorate([
|
|
@@ -3262,6 +3360,7 @@ exports.NamespaceDeclaration = NamespaceDeclaration = NamespaceDeclaration_1 = _
|
|
|
3262
3360
|
(function (KeywordType) {
|
|
3263
3361
|
KeywordType[KeywordType["Namespace"] = 0] = "Namespace";
|
|
3264
3362
|
KeywordType[KeywordType["Module"] = 1] = "Module";
|
|
3363
|
+
KeywordType[KeywordType["Empty"] = 2] = "Empty";
|
|
3265
3364
|
})(KeywordType = NamespaceDeclaration.KeywordType || (NamespaceDeclaration.KeywordType = {}));
|
|
3266
3365
|
})(NamespaceDeclaration || (exports.NamespaceDeclaration = NamespaceDeclaration = {}));
|
|
3267
3366
|
let FunctionDeclaration = FunctionDeclaration_1 = class FunctionDeclaration extends (0, support_types_1.JSMixin)(Object) {
|