@openrewrite/rewrite 0.23.0 → 0.24.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/core/tree.js +1 -1
- package/dist/src/core/tree.js.map +1 -1
- package/dist/src/javascript/parser.d.ts +19 -17
- package/dist/src/javascript/parser.d.ts.map +1 -1
- package/dist/src/javascript/parser.js +90 -59
- 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 +150 -3
- 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 +112 -1
- package/dist/src/javascript/remote/sender.js.map +1 -1
- package/dist/src/javascript/tree/support_types.d.ts +36 -4
- package/dist/src/javascript/tree/support_types.d.ts.map +1 -1
- package/dist/src/javascript/tree/support_types.js +32 -0
- package/dist/src/javascript/tree/support_types.js.map +1 -1
- package/dist/src/javascript/tree/tree.d.ts +630 -14
- package/dist/src/javascript/tree/tree.d.ts.map +1 -1
- package/dist/src/javascript/tree/tree.js +861 -23
- package/dist/src/javascript/tree/tree.js.map +1 -1
- package/dist/src/javascript/visitor.d.ts +13 -1
- package/dist/src/javascript/visitor.d.ts.map +1 -1
- package/dist/src/javascript/visitor.js +155 -1
- package/dist/src/javascript/visitor.js.map +1 -1
- package/package.json +1 -1
|
@@ -28,9 +28,10 @@ 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, 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;
|
|
31
|
+
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, 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;
|
|
32
32
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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;
|
|
33
|
+
exports.IndexedAccessType = exports.ExportSpecifier = 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.LiteralType = exports.JsBinary = exports.JsImportSpecifier = exports.JsImport = exports.ImportType = exports.InferType = exports.FunctionType = exports.ExpressionWithTypeArguments = exports.Export = exports.Delete = exports.DefaultType = exports.ConditionalType = exports.Await = exports.ArrowFunction = exports.Alias = exports.CompilationUnit = void 0;
|
|
34
|
+
exports.JsAssignmentOperation = void 0;
|
|
34
35
|
const extensions = __importStar(require("./extensions"));
|
|
35
36
|
const support_types_1 = require("./support_types");
|
|
36
37
|
const core_1 = require("../../core");
|
|
@@ -661,12 +662,13 @@ exports.ExpressionWithTypeArguments = ExpressionWithTypeArguments = ExpressionWi
|
|
|
661
662
|
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$ExpressionWithTypeArguments")
|
|
662
663
|
], ExpressionWithTypeArguments);
|
|
663
664
|
let FunctionType = FunctionType_1 = class FunctionType extends (0, support_types_1.JSMixin)(Object) {
|
|
664
|
-
constructor(id, prefix, markers, constructorType, parameters, arrow, returnType, _type) {
|
|
665
|
+
constructor(id, prefix, markers, constructorType, typeParameters, parameters, arrow, returnType, _type) {
|
|
665
666
|
super();
|
|
666
667
|
this._id = id;
|
|
667
668
|
this._prefix = prefix;
|
|
668
669
|
this._markers = markers;
|
|
669
670
|
this._constructorType = constructorType;
|
|
671
|
+
this._typeParameters = typeParameters;
|
|
670
672
|
this._parameters = parameters;
|
|
671
673
|
this._arrow = arrow;
|
|
672
674
|
this._returnType = returnType;
|
|
@@ -676,19 +678,19 @@ let FunctionType = FunctionType_1 = class FunctionType extends (0, support_types
|
|
|
676
678
|
return this._id;
|
|
677
679
|
}
|
|
678
680
|
withId(id) {
|
|
679
|
-
return id === this._id ? this : new FunctionType_1(id, this._prefix, this._markers, this._constructorType, this._parameters, this._arrow, this._returnType, this._type);
|
|
681
|
+
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);
|
|
680
682
|
}
|
|
681
683
|
get prefix() {
|
|
682
684
|
return this._prefix;
|
|
683
685
|
}
|
|
684
686
|
withPrefix(prefix) {
|
|
685
|
-
return prefix === this._prefix ? this : new FunctionType_1(this._id, prefix, this._markers, this._constructorType, this._parameters, this._arrow, this._returnType, this._type);
|
|
687
|
+
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);
|
|
686
688
|
}
|
|
687
689
|
get markers() {
|
|
688
690
|
return this._markers;
|
|
689
691
|
}
|
|
690
692
|
withMarkers(markers) {
|
|
691
|
-
return markers === this._markers ? this : new FunctionType_1(this._id, this._prefix, markers, this._constructorType, this._parameters, this._arrow, this._returnType, this._type);
|
|
693
|
+
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);
|
|
692
694
|
}
|
|
693
695
|
get constructorType() {
|
|
694
696
|
return this._constructorType.element;
|
|
@@ -696,6 +698,12 @@ let FunctionType = FunctionType_1 = class FunctionType extends (0, support_types
|
|
|
696
698
|
withConstructorType(constructorType) {
|
|
697
699
|
return this.padding.withConstructorType(this._constructorType.withElement(constructorType));
|
|
698
700
|
}
|
|
701
|
+
get typeParameters() {
|
|
702
|
+
return this._typeParameters;
|
|
703
|
+
}
|
|
704
|
+
withTypeParameters(typeParameters) {
|
|
705
|
+
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);
|
|
706
|
+
}
|
|
699
707
|
get parameters() {
|
|
700
708
|
return this._parameters.elements;
|
|
701
709
|
}
|
|
@@ -706,19 +714,19 @@ let FunctionType = FunctionType_1 = class FunctionType extends (0, support_types
|
|
|
706
714
|
return this._arrow;
|
|
707
715
|
}
|
|
708
716
|
withArrow(arrow) {
|
|
709
|
-
return arrow === this._arrow ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._constructorType, this._parameters, arrow, this._returnType, this._type);
|
|
717
|
+
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);
|
|
710
718
|
}
|
|
711
719
|
get returnType() {
|
|
712
720
|
return this._returnType;
|
|
713
721
|
}
|
|
714
722
|
withReturnType(returnType) {
|
|
715
|
-
return returnType === this._returnType ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._constructorType, this._parameters, this._arrow, returnType, this._type);
|
|
723
|
+
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);
|
|
716
724
|
}
|
|
717
725
|
get type() {
|
|
718
726
|
return this._type;
|
|
719
727
|
}
|
|
720
728
|
withType(_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);
|
|
729
|
+
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);
|
|
722
730
|
}
|
|
723
731
|
acceptJavaScript(v, p) {
|
|
724
732
|
return v.visitFunctionType(this, p);
|
|
@@ -730,13 +738,13 @@ let FunctionType = FunctionType_1 = class FunctionType extends (0, support_types
|
|
|
730
738
|
return t._constructorType;
|
|
731
739
|
}
|
|
732
740
|
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);
|
|
741
|
+
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);
|
|
734
742
|
}
|
|
735
743
|
get parameters() {
|
|
736
744
|
return t._parameters;
|
|
737
745
|
}
|
|
738
746
|
withParameters(parameters) {
|
|
739
|
-
return t._parameters === parameters ? t : new FunctionType_1(t._id, t._prefix, t._markers, t._constructorType, parameters, t._arrow, t._returnType, t._type);
|
|
747
|
+
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);
|
|
740
748
|
}
|
|
741
749
|
};
|
|
742
750
|
}
|
|
@@ -745,6 +753,155 @@ exports.FunctionType = FunctionType;
|
|
|
745
753
|
exports.FunctionType = FunctionType = FunctionType_1 = __decorate([
|
|
746
754
|
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$FunctionType")
|
|
747
755
|
], FunctionType);
|
|
756
|
+
let InferType = InferType_1 = class InferType extends (0, support_types_1.JSMixin)(Object) {
|
|
757
|
+
constructor(id, prefix, markers, typeParameter, _type) {
|
|
758
|
+
super();
|
|
759
|
+
this._id = id;
|
|
760
|
+
this._prefix = prefix;
|
|
761
|
+
this._markers = markers;
|
|
762
|
+
this._typeParameter = typeParameter;
|
|
763
|
+
this._type = _type;
|
|
764
|
+
}
|
|
765
|
+
get id() {
|
|
766
|
+
return this._id;
|
|
767
|
+
}
|
|
768
|
+
withId(id) {
|
|
769
|
+
return id === this._id ? this : new InferType_1(id, this._prefix, this._markers, this._typeParameter, this._type);
|
|
770
|
+
}
|
|
771
|
+
get prefix() {
|
|
772
|
+
return this._prefix;
|
|
773
|
+
}
|
|
774
|
+
withPrefix(prefix) {
|
|
775
|
+
return prefix === this._prefix ? this : new InferType_1(this._id, prefix, this._markers, this._typeParameter, this._type);
|
|
776
|
+
}
|
|
777
|
+
get markers() {
|
|
778
|
+
return this._markers;
|
|
779
|
+
}
|
|
780
|
+
withMarkers(markers) {
|
|
781
|
+
return markers === this._markers ? this : new InferType_1(this._id, this._prefix, markers, this._typeParameter, this._type);
|
|
782
|
+
}
|
|
783
|
+
get typeParameter() {
|
|
784
|
+
return this._typeParameter.element;
|
|
785
|
+
}
|
|
786
|
+
withTypeParameter(typeParameter) {
|
|
787
|
+
return this.padding.withTypeParameter(this._typeParameter.withElement(typeParameter));
|
|
788
|
+
}
|
|
789
|
+
get type() {
|
|
790
|
+
return this._type;
|
|
791
|
+
}
|
|
792
|
+
withType(_type) {
|
|
793
|
+
return _type === this._type ? this : new InferType_1(this._id, this._prefix, this._markers, this._typeParameter, _type);
|
|
794
|
+
}
|
|
795
|
+
acceptJavaScript(v, p) {
|
|
796
|
+
return v.visitInferType(this, p);
|
|
797
|
+
}
|
|
798
|
+
get padding() {
|
|
799
|
+
const t = this;
|
|
800
|
+
return new class {
|
|
801
|
+
get typeParameter() {
|
|
802
|
+
return t._typeParameter;
|
|
803
|
+
}
|
|
804
|
+
withTypeParameter(typeParameter) {
|
|
805
|
+
return t._typeParameter === typeParameter ? t : new InferType_1(t._id, t._prefix, t._markers, typeParameter, t._type);
|
|
806
|
+
}
|
|
807
|
+
};
|
|
808
|
+
}
|
|
809
|
+
};
|
|
810
|
+
exports.InferType = InferType;
|
|
811
|
+
exports.InferType = InferType = InferType_1 = __decorate([
|
|
812
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$InferType")
|
|
813
|
+
], InferType);
|
|
814
|
+
let ImportType = ImportType_1 = class ImportType extends (0, support_types_1.JSMixin)(Object) {
|
|
815
|
+
constructor(id, prefix, markers, hasTypeof, importArgument, qualifier, typeArguments, _type) {
|
|
816
|
+
super();
|
|
817
|
+
this._id = id;
|
|
818
|
+
this._prefix = prefix;
|
|
819
|
+
this._markers = markers;
|
|
820
|
+
this._hasTypeof = hasTypeof;
|
|
821
|
+
this._importArgument = importArgument;
|
|
822
|
+
this._qualifier = qualifier;
|
|
823
|
+
this._typeArguments = typeArguments;
|
|
824
|
+
this._type = _type;
|
|
825
|
+
}
|
|
826
|
+
get id() {
|
|
827
|
+
return this._id;
|
|
828
|
+
}
|
|
829
|
+
withId(id) {
|
|
830
|
+
return id === this._id ? this : new ImportType_1(id, this._prefix, this._markers, this._hasTypeof, this._importArgument, this._qualifier, this._typeArguments, this._type);
|
|
831
|
+
}
|
|
832
|
+
get prefix() {
|
|
833
|
+
return this._prefix;
|
|
834
|
+
}
|
|
835
|
+
withPrefix(prefix) {
|
|
836
|
+
return prefix === this._prefix ? this : new ImportType_1(this._id, prefix, this._markers, this._hasTypeof, this._importArgument, this._qualifier, this._typeArguments, this._type);
|
|
837
|
+
}
|
|
838
|
+
get markers() {
|
|
839
|
+
return this._markers;
|
|
840
|
+
}
|
|
841
|
+
withMarkers(markers) {
|
|
842
|
+
return markers === this._markers ? this : new ImportType_1(this._id, this._prefix, markers, this._hasTypeof, this._importArgument, this._qualifier, this._typeArguments, this._type);
|
|
843
|
+
}
|
|
844
|
+
get hasTypeof() {
|
|
845
|
+
return this._hasTypeof.element;
|
|
846
|
+
}
|
|
847
|
+
withHasTypeof(hasTypeof) {
|
|
848
|
+
return this.padding.withHasTypeof(this._hasTypeof.withElement(hasTypeof));
|
|
849
|
+
}
|
|
850
|
+
get importArgument() {
|
|
851
|
+
return this._importArgument;
|
|
852
|
+
}
|
|
853
|
+
withImportArgument(importArgument) {
|
|
854
|
+
return importArgument === this._importArgument ? this : new ImportType_1(this._id, this._prefix, this._markers, this._hasTypeof, importArgument, this._qualifier, this._typeArguments, this._type);
|
|
855
|
+
}
|
|
856
|
+
get qualifier() {
|
|
857
|
+
return this._qualifier === null ? null : this._qualifier.element;
|
|
858
|
+
}
|
|
859
|
+
withQualifier(qualifier) {
|
|
860
|
+
return this.padding.withQualifier(tree_1.JLeftPadded.withElement(this._qualifier, qualifier));
|
|
861
|
+
}
|
|
862
|
+
get typeArguments() {
|
|
863
|
+
return this._typeArguments === null ? null : this._typeArguments.elements;
|
|
864
|
+
}
|
|
865
|
+
withTypeArguments(typeArguments) {
|
|
866
|
+
return this.padding.withTypeArguments(tree_1.JContainer.withElementsNullable(this._typeArguments, typeArguments));
|
|
867
|
+
}
|
|
868
|
+
get type() {
|
|
869
|
+
return this._type;
|
|
870
|
+
}
|
|
871
|
+
withType(_type) {
|
|
872
|
+
return _type === this._type ? this : new ImportType_1(this._id, this._prefix, this._markers, this._hasTypeof, this._importArgument, this._qualifier, this._typeArguments, _type);
|
|
873
|
+
}
|
|
874
|
+
acceptJavaScript(v, p) {
|
|
875
|
+
return v.visitImportType(this, p);
|
|
876
|
+
}
|
|
877
|
+
get padding() {
|
|
878
|
+
const t = this;
|
|
879
|
+
return new class {
|
|
880
|
+
get hasTypeof() {
|
|
881
|
+
return t._hasTypeof;
|
|
882
|
+
}
|
|
883
|
+
withHasTypeof(hasTypeof) {
|
|
884
|
+
return t._hasTypeof === hasTypeof ? t : new ImportType_1(t._id, t._prefix, t._markers, hasTypeof, t._importArgument, t._qualifier, t._typeArguments, t._type);
|
|
885
|
+
}
|
|
886
|
+
get qualifier() {
|
|
887
|
+
return t._qualifier;
|
|
888
|
+
}
|
|
889
|
+
withQualifier(qualifier) {
|
|
890
|
+
return t._qualifier === qualifier ? t : new ImportType_1(t._id, t._prefix, t._markers, t._hasTypeof, t._importArgument, qualifier, t._typeArguments, t._type);
|
|
891
|
+
}
|
|
892
|
+
get typeArguments() {
|
|
893
|
+
return t._typeArguments;
|
|
894
|
+
}
|
|
895
|
+
withTypeArguments(typeArguments) {
|
|
896
|
+
return t._typeArguments === typeArguments ? t : new ImportType_1(t._id, t._prefix, t._markers, t._hasTypeof, t._importArgument, t._qualifier, typeArguments, t._type);
|
|
897
|
+
}
|
|
898
|
+
};
|
|
899
|
+
}
|
|
900
|
+
};
|
|
901
|
+
exports.ImportType = ImportType;
|
|
902
|
+
exports.ImportType = ImportType = ImportType_1 = __decorate([
|
|
903
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$ImportType")
|
|
904
|
+
], ImportType);
|
|
748
905
|
let JsImport = JsImport_1 = class JsImport extends (0, support_types_1.JSMixin)(Object) {
|
|
749
906
|
constructor(id, prefix, markers, name, importType, imports, _from, target, initializer) {
|
|
750
907
|
super();
|
|
@@ -994,8 +1151,56 @@ exports.JsBinary = JsBinary = JsBinary_1 = __decorate([
|
|
|
994
1151
|
Type[Type["IdentityNotEquals"] = 2] = "IdentityNotEquals";
|
|
995
1152
|
Type[Type["In"] = 3] = "In";
|
|
996
1153
|
Type[Type["QuestionQuestion"] = 4] = "QuestionQuestion";
|
|
1154
|
+
Type[Type["Comma"] = 5] = "Comma";
|
|
997
1155
|
})(Type = JsBinary.Type || (JsBinary.Type = {}));
|
|
998
1156
|
})(JsBinary || (exports.JsBinary = JsBinary = {}));
|
|
1157
|
+
let LiteralType = LiteralType_1 = class LiteralType extends (0, support_types_1.JSMixin)(Object) {
|
|
1158
|
+
constructor(id, prefix, markers, literal, _type) {
|
|
1159
|
+
super();
|
|
1160
|
+
this._id = id;
|
|
1161
|
+
this._prefix = prefix;
|
|
1162
|
+
this._markers = markers;
|
|
1163
|
+
this._literal = literal;
|
|
1164
|
+
this._type = _type;
|
|
1165
|
+
}
|
|
1166
|
+
get id() {
|
|
1167
|
+
return this._id;
|
|
1168
|
+
}
|
|
1169
|
+
withId(id) {
|
|
1170
|
+
return id === this._id ? this : new LiteralType_1(id, this._prefix, this._markers, this._literal, this._type);
|
|
1171
|
+
}
|
|
1172
|
+
get prefix() {
|
|
1173
|
+
return this._prefix;
|
|
1174
|
+
}
|
|
1175
|
+
withPrefix(prefix) {
|
|
1176
|
+
return prefix === this._prefix ? this : new LiteralType_1(this._id, prefix, this._markers, this._literal, this._type);
|
|
1177
|
+
}
|
|
1178
|
+
get markers() {
|
|
1179
|
+
return this._markers;
|
|
1180
|
+
}
|
|
1181
|
+
withMarkers(markers) {
|
|
1182
|
+
return markers === this._markers ? this : new LiteralType_1(this._id, this._prefix, markers, this._literal, this._type);
|
|
1183
|
+
}
|
|
1184
|
+
get literal() {
|
|
1185
|
+
return this._literal;
|
|
1186
|
+
}
|
|
1187
|
+
withLiteral(literal) {
|
|
1188
|
+
return literal === this._literal ? this : new LiteralType_1(this._id, this._prefix, this._markers, literal, this._type);
|
|
1189
|
+
}
|
|
1190
|
+
get type() {
|
|
1191
|
+
return this._type;
|
|
1192
|
+
}
|
|
1193
|
+
withType(_type) {
|
|
1194
|
+
return _type === this._type ? this : new LiteralType_1(this._id, this._prefix, this._markers, this._literal, _type);
|
|
1195
|
+
}
|
|
1196
|
+
acceptJavaScript(v, p) {
|
|
1197
|
+
return v.visitLiteralType(this, p);
|
|
1198
|
+
}
|
|
1199
|
+
};
|
|
1200
|
+
exports.LiteralType = LiteralType;
|
|
1201
|
+
exports.LiteralType = LiteralType = LiteralType_1 = __decorate([
|
|
1202
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$LiteralType")
|
|
1203
|
+
], LiteralType);
|
|
999
1204
|
let ObjectBindingDeclarations = ObjectBindingDeclarations_1 = class ObjectBindingDeclarations extends (0, support_types_1.JSMixin)(Object) {
|
|
1000
1205
|
constructor(id, prefix, markers, leadingAnnotations, modifiers, typeExpression, bindings, initializer) {
|
|
1001
1206
|
super();
|
|
@@ -1151,6 +1356,71 @@ exports.PropertyAssignment = PropertyAssignment;
|
|
|
1151
1356
|
exports.PropertyAssignment = PropertyAssignment = PropertyAssignment_1 = __decorate([
|
|
1152
1357
|
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$PropertyAssignment")
|
|
1153
1358
|
], PropertyAssignment);
|
|
1359
|
+
let SatisfiesExpression = SatisfiesExpression_1 = class SatisfiesExpression extends (0, support_types_1.JSMixin)(Object) {
|
|
1360
|
+
constructor(id, prefix, markers, expression, satisfiesType, _type) {
|
|
1361
|
+
super();
|
|
1362
|
+
this._id = id;
|
|
1363
|
+
this._prefix = prefix;
|
|
1364
|
+
this._markers = markers;
|
|
1365
|
+
this._expression = expression;
|
|
1366
|
+
this._satisfiesType = satisfiesType;
|
|
1367
|
+
this._type = _type;
|
|
1368
|
+
}
|
|
1369
|
+
get id() {
|
|
1370
|
+
return this._id;
|
|
1371
|
+
}
|
|
1372
|
+
withId(id) {
|
|
1373
|
+
return id === this._id ? this : new SatisfiesExpression_1(id, this._prefix, this._markers, this._expression, this._satisfiesType, this._type);
|
|
1374
|
+
}
|
|
1375
|
+
get prefix() {
|
|
1376
|
+
return this._prefix;
|
|
1377
|
+
}
|
|
1378
|
+
withPrefix(prefix) {
|
|
1379
|
+
return prefix === this._prefix ? this : new SatisfiesExpression_1(this._id, prefix, this._markers, this._expression, this._satisfiesType, this._type);
|
|
1380
|
+
}
|
|
1381
|
+
get markers() {
|
|
1382
|
+
return this._markers;
|
|
1383
|
+
}
|
|
1384
|
+
withMarkers(markers) {
|
|
1385
|
+
return markers === this._markers ? this : new SatisfiesExpression_1(this._id, this._prefix, markers, this._expression, this._satisfiesType, this._type);
|
|
1386
|
+
}
|
|
1387
|
+
get expression() {
|
|
1388
|
+
return this._expression;
|
|
1389
|
+
}
|
|
1390
|
+
withExpression(expression) {
|
|
1391
|
+
return expression === this._expression ? this : new SatisfiesExpression_1(this._id, this._prefix, this._markers, expression, this._satisfiesType, this._type);
|
|
1392
|
+
}
|
|
1393
|
+
get satisfiesType() {
|
|
1394
|
+
return this._satisfiesType.element;
|
|
1395
|
+
}
|
|
1396
|
+
withSatisfiesType(satisfiesType) {
|
|
1397
|
+
return this.padding.withSatisfiesType(this._satisfiesType.withElement(satisfiesType));
|
|
1398
|
+
}
|
|
1399
|
+
get type() {
|
|
1400
|
+
return this._type;
|
|
1401
|
+
}
|
|
1402
|
+
withType(_type) {
|
|
1403
|
+
return _type === this._type ? this : new SatisfiesExpression_1(this._id, this._prefix, this._markers, this._expression, this._satisfiesType, _type);
|
|
1404
|
+
}
|
|
1405
|
+
acceptJavaScript(v, p) {
|
|
1406
|
+
return v.visitSatisfiesExpression(this, p);
|
|
1407
|
+
}
|
|
1408
|
+
get padding() {
|
|
1409
|
+
const t = this;
|
|
1410
|
+
return new class {
|
|
1411
|
+
get satisfiesType() {
|
|
1412
|
+
return t._satisfiesType;
|
|
1413
|
+
}
|
|
1414
|
+
withSatisfiesType(satisfiesType) {
|
|
1415
|
+
return t._satisfiesType === satisfiesType ? t : new SatisfiesExpression_1(t._id, t._prefix, t._markers, t._expression, satisfiesType, t._type);
|
|
1416
|
+
}
|
|
1417
|
+
};
|
|
1418
|
+
}
|
|
1419
|
+
};
|
|
1420
|
+
exports.SatisfiesExpression = SatisfiesExpression;
|
|
1421
|
+
exports.SatisfiesExpression = SatisfiesExpression = SatisfiesExpression_1 = __decorate([
|
|
1422
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$SatisfiesExpression")
|
|
1423
|
+
], SatisfiesExpression);
|
|
1154
1424
|
let ScopedVariableDeclarations = ScopedVariableDeclarations_1 = class ScopedVariableDeclarations extends (0, support_types_1.JSMixin)(Object) {
|
|
1155
1425
|
constructor(id, prefix, markers, modifiers, scope, variables) {
|
|
1156
1426
|
super();
|
|
@@ -1730,6 +2000,84 @@ exports.TypeOperator = TypeOperator = TypeOperator_1 = __decorate([
|
|
|
1730
2000
|
Type[Type["KeyOf"] = 1] = "KeyOf";
|
|
1731
2001
|
})(Type = TypeOperator.Type || (TypeOperator.Type = {}));
|
|
1732
2002
|
})(TypeOperator || (exports.TypeOperator = TypeOperator = {}));
|
|
2003
|
+
let TypePredicate = TypePredicate_1 = class TypePredicate extends (0, support_types_1.JSMixin)(Object) {
|
|
2004
|
+
constructor(id, prefix, markers, asserts, parameterName, expression, _type) {
|
|
2005
|
+
super();
|
|
2006
|
+
this._id = id;
|
|
2007
|
+
this._prefix = prefix;
|
|
2008
|
+
this._markers = markers;
|
|
2009
|
+
this._asserts = asserts;
|
|
2010
|
+
this._parameterName = parameterName;
|
|
2011
|
+
this._expression = expression;
|
|
2012
|
+
this._type = _type;
|
|
2013
|
+
}
|
|
2014
|
+
get id() {
|
|
2015
|
+
return this._id;
|
|
2016
|
+
}
|
|
2017
|
+
withId(id) {
|
|
2018
|
+
return id === this._id ? this : new TypePredicate_1(id, this._prefix, this._markers, this._asserts, this._parameterName, this._expression, this._type);
|
|
2019
|
+
}
|
|
2020
|
+
get prefix() {
|
|
2021
|
+
return this._prefix;
|
|
2022
|
+
}
|
|
2023
|
+
withPrefix(prefix) {
|
|
2024
|
+
return prefix === this._prefix ? this : new TypePredicate_1(this._id, prefix, this._markers, this._asserts, this._parameterName, this._expression, this._type);
|
|
2025
|
+
}
|
|
2026
|
+
get markers() {
|
|
2027
|
+
return this._markers;
|
|
2028
|
+
}
|
|
2029
|
+
withMarkers(markers) {
|
|
2030
|
+
return markers === this._markers ? this : new TypePredicate_1(this._id, this._prefix, markers, this._asserts, this._parameterName, this._expression, this._type);
|
|
2031
|
+
}
|
|
2032
|
+
get asserts() {
|
|
2033
|
+
return this._asserts.element;
|
|
2034
|
+
}
|
|
2035
|
+
withAsserts(asserts) {
|
|
2036
|
+
return this.padding.withAsserts(this._asserts.withElement(asserts));
|
|
2037
|
+
}
|
|
2038
|
+
get parameterName() {
|
|
2039
|
+
return this._parameterName;
|
|
2040
|
+
}
|
|
2041
|
+
withParameterName(parameterName) {
|
|
2042
|
+
return parameterName === this._parameterName ? this : new TypePredicate_1(this._id, this._prefix, this._markers, this._asserts, parameterName, this._expression, this._type);
|
|
2043
|
+
}
|
|
2044
|
+
get expression() {
|
|
2045
|
+
return this._expression === null ? null : this._expression.element;
|
|
2046
|
+
}
|
|
2047
|
+
withExpression(expression) {
|
|
2048
|
+
return this.padding.withExpression(tree_1.JLeftPadded.withElement(this._expression, expression));
|
|
2049
|
+
}
|
|
2050
|
+
get type() {
|
|
2051
|
+
return this._type;
|
|
2052
|
+
}
|
|
2053
|
+
withType(_type) {
|
|
2054
|
+
return _type === this._type ? this : new TypePredicate_1(this._id, this._prefix, this._markers, this._asserts, this._parameterName, this._expression, _type);
|
|
2055
|
+
}
|
|
2056
|
+
acceptJavaScript(v, p) {
|
|
2057
|
+
return v.visitTypePredicate(this, p);
|
|
2058
|
+
}
|
|
2059
|
+
get padding() {
|
|
2060
|
+
const t = this;
|
|
2061
|
+
return new class {
|
|
2062
|
+
get asserts() {
|
|
2063
|
+
return t._asserts;
|
|
2064
|
+
}
|
|
2065
|
+
withAsserts(asserts) {
|
|
2066
|
+
return t._asserts === asserts ? t : new TypePredicate_1(t._id, t._prefix, t._markers, asserts, t._parameterName, t._expression, t._type);
|
|
2067
|
+
}
|
|
2068
|
+
get expression() {
|
|
2069
|
+
return t._expression;
|
|
2070
|
+
}
|
|
2071
|
+
withExpression(expression) {
|
|
2072
|
+
return t._expression === expression ? t : new TypePredicate_1(t._id, t._prefix, t._markers, t._asserts, t._parameterName, expression, t._type);
|
|
2073
|
+
}
|
|
2074
|
+
};
|
|
2075
|
+
}
|
|
2076
|
+
};
|
|
2077
|
+
exports.TypePredicate = TypePredicate;
|
|
2078
|
+
exports.TypePredicate = TypePredicate = TypePredicate_1 = __decorate([
|
|
2079
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$TypePredicate")
|
|
2080
|
+
], TypePredicate);
|
|
1733
2081
|
let Unary = Unary_1 = class Unary extends (0, support_types_1.JSMixin)(Object) {
|
|
1734
2082
|
constructor(id, prefix, markers, operator, expression, _type) {
|
|
1735
2083
|
super();
|
|
@@ -2649,12 +2997,13 @@ exports.NamespaceDeclaration = NamespaceDeclaration = NamespaceDeclaration_1 = _
|
|
|
2649
2997
|
})(KeywordType = NamespaceDeclaration.KeywordType || (NamespaceDeclaration.KeywordType = {}));
|
|
2650
2998
|
})(NamespaceDeclaration || (exports.NamespaceDeclaration = NamespaceDeclaration = {}));
|
|
2651
2999
|
let FunctionDeclaration = FunctionDeclaration_1 = class FunctionDeclaration extends (0, support_types_1.JSMixin)(Object) {
|
|
2652
|
-
constructor(id, prefix, markers, modifiers, name, typeParameters, parameters, returnTypeExpression, body, _type) {
|
|
3000
|
+
constructor(id, prefix, markers, modifiers, asteriskToken, name, typeParameters, parameters, returnTypeExpression, body, _type) {
|
|
2653
3001
|
super();
|
|
2654
3002
|
this._id = id;
|
|
2655
3003
|
this._prefix = prefix;
|
|
2656
3004
|
this._markers = markers;
|
|
2657
3005
|
this._modifiers = modifiers;
|
|
3006
|
+
this._asteriskToken = asteriskToken;
|
|
2658
3007
|
this._name = name;
|
|
2659
3008
|
this._typeParameters = typeParameters;
|
|
2660
3009
|
this._parameters = parameters;
|
|
@@ -2666,37 +3015,43 @@ let FunctionDeclaration = FunctionDeclaration_1 = class FunctionDeclaration exte
|
|
|
2666
3015
|
return this._id;
|
|
2667
3016
|
}
|
|
2668
3017
|
withId(id) {
|
|
2669
|
-
return id === this._id ? this : new FunctionDeclaration_1(id, this._prefix, this._markers, this._modifiers, this._name, this._typeParameters, this._parameters, this._returnTypeExpression, this._body, this._type);
|
|
3018
|
+
return id === this._id ? this : new FunctionDeclaration_1(id, this._prefix, this._markers, this._modifiers, this._asteriskToken, this._name, this._typeParameters, this._parameters, this._returnTypeExpression, this._body, this._type);
|
|
2670
3019
|
}
|
|
2671
3020
|
get prefix() {
|
|
2672
3021
|
return this._prefix;
|
|
2673
3022
|
}
|
|
2674
3023
|
withPrefix(prefix) {
|
|
2675
|
-
return prefix === this._prefix ? this : new FunctionDeclaration_1(this._id, prefix, this._markers, this._modifiers, this._name, this._typeParameters, this._parameters, this._returnTypeExpression, this._body, this._type);
|
|
3024
|
+
return prefix === this._prefix ? this : new FunctionDeclaration_1(this._id, prefix, this._markers, this._modifiers, this._asteriskToken, this._name, this._typeParameters, this._parameters, this._returnTypeExpression, this._body, this._type);
|
|
2676
3025
|
}
|
|
2677
3026
|
get markers() {
|
|
2678
3027
|
return this._markers;
|
|
2679
3028
|
}
|
|
2680
3029
|
withMarkers(markers) {
|
|
2681
|
-
return markers === this._markers ? this : new FunctionDeclaration_1(this._id, this._prefix, markers, this._modifiers, this._name, this._typeParameters, this._parameters, this._returnTypeExpression, this._body, this._type);
|
|
3030
|
+
return markers === this._markers ? this : new FunctionDeclaration_1(this._id, this._prefix, markers, this._modifiers, this._asteriskToken, this._name, this._typeParameters, this._parameters, this._returnTypeExpression, this._body, this._type);
|
|
2682
3031
|
}
|
|
2683
3032
|
get modifiers() {
|
|
2684
3033
|
return this._modifiers;
|
|
2685
3034
|
}
|
|
2686
3035
|
withModifiers(modifiers) {
|
|
2687
|
-
return modifiers === this._modifiers ? this : new FunctionDeclaration_1(this._id, this._prefix, this._markers, modifiers, this._name, this._typeParameters, this._parameters, this._returnTypeExpression, this._body, this._type);
|
|
3036
|
+
return modifiers === this._modifiers ? this : new FunctionDeclaration_1(this._id, this._prefix, this._markers, modifiers, this._asteriskToken, this._name, this._typeParameters, this._parameters, this._returnTypeExpression, this._body, this._type);
|
|
3037
|
+
}
|
|
3038
|
+
get asteriskToken() {
|
|
3039
|
+
return this._asteriskToken.element;
|
|
3040
|
+
}
|
|
3041
|
+
withAsteriskToken(asteriskToken) {
|
|
3042
|
+
return this.padding.withAsteriskToken(this._asteriskToken.withElement(asteriskToken));
|
|
2688
3043
|
}
|
|
2689
3044
|
get name() {
|
|
2690
|
-
return this._name;
|
|
3045
|
+
return this._name.element;
|
|
2691
3046
|
}
|
|
2692
3047
|
withName(name) {
|
|
2693
|
-
return
|
|
3048
|
+
return this.padding.withName(this._name.withElement(name));
|
|
2694
3049
|
}
|
|
2695
3050
|
get typeParameters() {
|
|
2696
3051
|
return this._typeParameters;
|
|
2697
3052
|
}
|
|
2698
3053
|
withTypeParameters(typeParameters) {
|
|
2699
|
-
return typeParameters === this._typeParameters ? this : new FunctionDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, this._name, typeParameters, this._parameters, this._returnTypeExpression, this._body, this._type);
|
|
3054
|
+
return typeParameters === this._typeParameters ? this : new FunctionDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, this._asteriskToken, this._name, typeParameters, this._parameters, this._returnTypeExpression, this._body, this._type);
|
|
2700
3055
|
}
|
|
2701
3056
|
get parameters() {
|
|
2702
3057
|
return this._parameters.elements;
|
|
@@ -2708,19 +3063,19 @@ let FunctionDeclaration = FunctionDeclaration_1 = class FunctionDeclaration exte
|
|
|
2708
3063
|
return this._returnTypeExpression;
|
|
2709
3064
|
}
|
|
2710
3065
|
withReturnTypeExpression(returnTypeExpression) {
|
|
2711
|
-
return returnTypeExpression === this._returnTypeExpression ? this : new FunctionDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, this._name, this._typeParameters, this._parameters, returnTypeExpression, this._body, this._type);
|
|
3066
|
+
return returnTypeExpression === this._returnTypeExpression ? this : new FunctionDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, this._asteriskToken, this._name, this._typeParameters, this._parameters, returnTypeExpression, this._body, this._type);
|
|
2712
3067
|
}
|
|
2713
3068
|
get body() {
|
|
2714
3069
|
return this._body;
|
|
2715
3070
|
}
|
|
2716
3071
|
withBody(body) {
|
|
2717
|
-
return body === this._body ? this : new FunctionDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, this._name, this._typeParameters, this._parameters, this._returnTypeExpression, body, this._type);
|
|
3072
|
+
return body === this._body ? this : new FunctionDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, this._asteriskToken, this._name, this._typeParameters, this._parameters, this._returnTypeExpression, body, this._type);
|
|
2718
3073
|
}
|
|
2719
3074
|
get type() {
|
|
2720
3075
|
return this._type;
|
|
2721
3076
|
}
|
|
2722
3077
|
withType(_type) {
|
|
2723
|
-
return _type === this._type ? this : new FunctionDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, this._name, this._typeParameters, this._parameters, this._returnTypeExpression, this._body, _type);
|
|
3078
|
+
return _type === this._type ? this : new FunctionDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, this._asteriskToken, this._name, this._typeParameters, this._parameters, this._returnTypeExpression, this._body, _type);
|
|
2724
3079
|
}
|
|
2725
3080
|
acceptJavaScript(v, p) {
|
|
2726
3081
|
return v.visitFunctionDeclaration(this, p);
|
|
@@ -2728,11 +3083,23 @@ let FunctionDeclaration = FunctionDeclaration_1 = class FunctionDeclaration exte
|
|
|
2728
3083
|
get padding() {
|
|
2729
3084
|
const t = this;
|
|
2730
3085
|
return new class {
|
|
3086
|
+
get asteriskToken() {
|
|
3087
|
+
return t._asteriskToken;
|
|
3088
|
+
}
|
|
3089
|
+
withAsteriskToken(asteriskToken) {
|
|
3090
|
+
return t._asteriskToken === asteriskToken ? t : new FunctionDeclaration_1(t._id, t._prefix, t._markers, t._modifiers, asteriskToken, t._name, t._typeParameters, t._parameters, t._returnTypeExpression, t._body, t._type);
|
|
3091
|
+
}
|
|
3092
|
+
get name() {
|
|
3093
|
+
return t._name;
|
|
3094
|
+
}
|
|
3095
|
+
withName(name) {
|
|
3096
|
+
return t._name === name ? t : new FunctionDeclaration_1(t._id, t._prefix, t._markers, t._modifiers, t._asteriskToken, name, t._typeParameters, t._parameters, t._returnTypeExpression, t._body, t._type);
|
|
3097
|
+
}
|
|
2731
3098
|
get parameters() {
|
|
2732
3099
|
return t._parameters;
|
|
2733
3100
|
}
|
|
2734
3101
|
withParameters(parameters) {
|
|
2735
|
-
return t._parameters === parameters ? t : new FunctionDeclaration_1(t._id, t._prefix, t._markers, t._modifiers, t._name, t._typeParameters, parameters, t._returnTypeExpression, t._body, t._type);
|
|
3102
|
+
return t._parameters === parameters ? t : new FunctionDeclaration_1(t._id, t._prefix, t._markers, t._modifiers, t._asteriskToken, t._name, t._typeParameters, parameters, t._returnTypeExpression, t._body, t._type);
|
|
2736
3103
|
}
|
|
2737
3104
|
};
|
|
2738
3105
|
}
|
|
@@ -3008,4 +3375,475 @@ exports.BindingElement = BindingElement;
|
|
|
3008
3375
|
exports.BindingElement = BindingElement = BindingElement_1 = __decorate([
|
|
3009
3376
|
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$BindingElement")
|
|
3010
3377
|
], BindingElement);
|
|
3378
|
+
let ExportDeclaration = ExportDeclaration_1 = class ExportDeclaration extends (0, support_types_1.JSMixin)(Object) {
|
|
3379
|
+
constructor(id, prefix, markers, modifiers, typeOnly, exportClause, moduleSpecifier) {
|
|
3380
|
+
super();
|
|
3381
|
+
this._id = id;
|
|
3382
|
+
this._prefix = prefix;
|
|
3383
|
+
this._markers = markers;
|
|
3384
|
+
this._modifiers = modifiers;
|
|
3385
|
+
this._typeOnly = typeOnly;
|
|
3386
|
+
this._exportClause = exportClause;
|
|
3387
|
+
this._moduleSpecifier = moduleSpecifier;
|
|
3388
|
+
}
|
|
3389
|
+
get id() {
|
|
3390
|
+
return this._id;
|
|
3391
|
+
}
|
|
3392
|
+
withId(id) {
|
|
3393
|
+
return id === this._id ? this : new ExportDeclaration_1(id, this._prefix, this._markers, this._modifiers, this._typeOnly, this._exportClause, this._moduleSpecifier);
|
|
3394
|
+
}
|
|
3395
|
+
get prefix() {
|
|
3396
|
+
return this._prefix;
|
|
3397
|
+
}
|
|
3398
|
+
withPrefix(prefix) {
|
|
3399
|
+
return prefix === this._prefix ? this : new ExportDeclaration_1(this._id, prefix, this._markers, this._modifiers, this._typeOnly, this._exportClause, this._moduleSpecifier);
|
|
3400
|
+
}
|
|
3401
|
+
get markers() {
|
|
3402
|
+
return this._markers;
|
|
3403
|
+
}
|
|
3404
|
+
withMarkers(markers) {
|
|
3405
|
+
return markers === this._markers ? this : new ExportDeclaration_1(this._id, this._prefix, markers, this._modifiers, this._typeOnly, this._exportClause, this._moduleSpecifier);
|
|
3406
|
+
}
|
|
3407
|
+
get modifiers() {
|
|
3408
|
+
return this._modifiers;
|
|
3409
|
+
}
|
|
3410
|
+
withModifiers(modifiers) {
|
|
3411
|
+
return modifiers === this._modifiers ? this : new ExportDeclaration_1(this._id, this._prefix, this._markers, modifiers, this._typeOnly, this._exportClause, this._moduleSpecifier);
|
|
3412
|
+
}
|
|
3413
|
+
get typeOnly() {
|
|
3414
|
+
return this._typeOnly.element;
|
|
3415
|
+
}
|
|
3416
|
+
withTypeOnly(typeOnly) {
|
|
3417
|
+
return this.padding.withTypeOnly(this._typeOnly.withElement(typeOnly));
|
|
3418
|
+
}
|
|
3419
|
+
get exportClause() {
|
|
3420
|
+
return this._exportClause;
|
|
3421
|
+
}
|
|
3422
|
+
withExportClause(exportClause) {
|
|
3423
|
+
return exportClause === this._exportClause ? this : new ExportDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, this._typeOnly, exportClause, this._moduleSpecifier);
|
|
3424
|
+
}
|
|
3425
|
+
get moduleSpecifier() {
|
|
3426
|
+
return this._moduleSpecifier === null ? null : this._moduleSpecifier.element;
|
|
3427
|
+
}
|
|
3428
|
+
withModuleSpecifier(moduleSpecifier) {
|
|
3429
|
+
return this.padding.withModuleSpecifier(tree_1.JLeftPadded.withElement(this._moduleSpecifier, moduleSpecifier));
|
|
3430
|
+
}
|
|
3431
|
+
acceptJavaScript(v, p) {
|
|
3432
|
+
return v.visitExportDeclaration(this, p);
|
|
3433
|
+
}
|
|
3434
|
+
get padding() {
|
|
3435
|
+
const t = this;
|
|
3436
|
+
return new class {
|
|
3437
|
+
get typeOnly() {
|
|
3438
|
+
return t._typeOnly;
|
|
3439
|
+
}
|
|
3440
|
+
withTypeOnly(typeOnly) {
|
|
3441
|
+
return t._typeOnly === typeOnly ? t : new ExportDeclaration_1(t._id, t._prefix, t._markers, t._modifiers, typeOnly, t._exportClause, t._moduleSpecifier);
|
|
3442
|
+
}
|
|
3443
|
+
get moduleSpecifier() {
|
|
3444
|
+
return t._moduleSpecifier;
|
|
3445
|
+
}
|
|
3446
|
+
withModuleSpecifier(moduleSpecifier) {
|
|
3447
|
+
return t._moduleSpecifier === moduleSpecifier ? t : new ExportDeclaration_1(t._id, t._prefix, t._markers, t._modifiers, t._typeOnly, t._exportClause, moduleSpecifier);
|
|
3448
|
+
}
|
|
3449
|
+
};
|
|
3450
|
+
}
|
|
3451
|
+
};
|
|
3452
|
+
exports.ExportDeclaration = ExportDeclaration;
|
|
3453
|
+
exports.ExportDeclaration = ExportDeclaration = ExportDeclaration_1 = __decorate([
|
|
3454
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$ExportDeclaration")
|
|
3455
|
+
], ExportDeclaration);
|
|
3456
|
+
let ExportAssignment = ExportAssignment_1 = class ExportAssignment extends (0, support_types_1.JSMixin)(Object) {
|
|
3457
|
+
constructor(id, prefix, markers, modifiers, exportEquals, expression) {
|
|
3458
|
+
super();
|
|
3459
|
+
this._id = id;
|
|
3460
|
+
this._prefix = prefix;
|
|
3461
|
+
this._markers = markers;
|
|
3462
|
+
this._modifiers = modifiers;
|
|
3463
|
+
this._exportEquals = exportEquals;
|
|
3464
|
+
this._expression = expression;
|
|
3465
|
+
}
|
|
3466
|
+
get id() {
|
|
3467
|
+
return this._id;
|
|
3468
|
+
}
|
|
3469
|
+
withId(id) {
|
|
3470
|
+
return id === this._id ? this : new ExportAssignment_1(id, this._prefix, this._markers, this._modifiers, this._exportEquals, this._expression);
|
|
3471
|
+
}
|
|
3472
|
+
get prefix() {
|
|
3473
|
+
return this._prefix;
|
|
3474
|
+
}
|
|
3475
|
+
withPrefix(prefix) {
|
|
3476
|
+
return prefix === this._prefix ? this : new ExportAssignment_1(this._id, prefix, this._markers, this._modifiers, this._exportEquals, this._expression);
|
|
3477
|
+
}
|
|
3478
|
+
get markers() {
|
|
3479
|
+
return this._markers;
|
|
3480
|
+
}
|
|
3481
|
+
withMarkers(markers) {
|
|
3482
|
+
return markers === this._markers ? this : new ExportAssignment_1(this._id, this._prefix, markers, this._modifiers, this._exportEquals, this._expression);
|
|
3483
|
+
}
|
|
3484
|
+
get modifiers() {
|
|
3485
|
+
return this._modifiers;
|
|
3486
|
+
}
|
|
3487
|
+
withModifiers(modifiers) {
|
|
3488
|
+
return modifiers === this._modifiers ? this : new ExportAssignment_1(this._id, this._prefix, this._markers, modifiers, this._exportEquals, this._expression);
|
|
3489
|
+
}
|
|
3490
|
+
get exportEquals() {
|
|
3491
|
+
return this._exportEquals.element;
|
|
3492
|
+
}
|
|
3493
|
+
withExportEquals(exportEquals) {
|
|
3494
|
+
return this.padding.withExportEquals(this._exportEquals.withElement(exportEquals));
|
|
3495
|
+
}
|
|
3496
|
+
get expression() {
|
|
3497
|
+
return this._expression;
|
|
3498
|
+
}
|
|
3499
|
+
withExpression(expression) {
|
|
3500
|
+
return expression === this._expression ? this : new ExportAssignment_1(this._id, this._prefix, this._markers, this._modifiers, this._exportEquals, expression);
|
|
3501
|
+
}
|
|
3502
|
+
acceptJavaScript(v, p) {
|
|
3503
|
+
return v.visitExportAssignment(this, p);
|
|
3504
|
+
}
|
|
3505
|
+
get padding() {
|
|
3506
|
+
const t = this;
|
|
3507
|
+
return new class {
|
|
3508
|
+
get exportEquals() {
|
|
3509
|
+
return t._exportEquals;
|
|
3510
|
+
}
|
|
3511
|
+
withExportEquals(exportEquals) {
|
|
3512
|
+
return t._exportEquals === exportEquals ? t : new ExportAssignment_1(t._id, t._prefix, t._markers, t._modifiers, exportEquals, t._expression);
|
|
3513
|
+
}
|
|
3514
|
+
};
|
|
3515
|
+
}
|
|
3516
|
+
};
|
|
3517
|
+
exports.ExportAssignment = ExportAssignment;
|
|
3518
|
+
exports.ExportAssignment = ExportAssignment = ExportAssignment_1 = __decorate([
|
|
3519
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$ExportAssignment")
|
|
3520
|
+
], ExportAssignment);
|
|
3521
|
+
let NamedExports = NamedExports_1 = class NamedExports extends (0, support_types_1.JSMixin)(Object) {
|
|
3522
|
+
constructor(id, prefix, markers, elements, _type) {
|
|
3523
|
+
super();
|
|
3524
|
+
this._id = id;
|
|
3525
|
+
this._prefix = prefix;
|
|
3526
|
+
this._markers = markers;
|
|
3527
|
+
this._elements = elements;
|
|
3528
|
+
this._type = _type;
|
|
3529
|
+
}
|
|
3530
|
+
get id() {
|
|
3531
|
+
return this._id;
|
|
3532
|
+
}
|
|
3533
|
+
withId(id) {
|
|
3534
|
+
return id === this._id ? this : new NamedExports_1(id, this._prefix, this._markers, this._elements, this._type);
|
|
3535
|
+
}
|
|
3536
|
+
get prefix() {
|
|
3537
|
+
return this._prefix;
|
|
3538
|
+
}
|
|
3539
|
+
withPrefix(prefix) {
|
|
3540
|
+
return prefix === this._prefix ? this : new NamedExports_1(this._id, prefix, this._markers, this._elements, this._type);
|
|
3541
|
+
}
|
|
3542
|
+
get markers() {
|
|
3543
|
+
return this._markers;
|
|
3544
|
+
}
|
|
3545
|
+
withMarkers(markers) {
|
|
3546
|
+
return markers === this._markers ? this : new NamedExports_1(this._id, this._prefix, markers, this._elements, this._type);
|
|
3547
|
+
}
|
|
3548
|
+
get elements() {
|
|
3549
|
+
return this._elements.elements;
|
|
3550
|
+
}
|
|
3551
|
+
withElements(elements) {
|
|
3552
|
+
return this.padding.withElements(tree_1.JContainer.withElements(this._elements, elements));
|
|
3553
|
+
}
|
|
3554
|
+
get type() {
|
|
3555
|
+
return this._type;
|
|
3556
|
+
}
|
|
3557
|
+
withType(_type) {
|
|
3558
|
+
return _type === this._type ? this : new NamedExports_1(this._id, this._prefix, this._markers, this._elements, _type);
|
|
3559
|
+
}
|
|
3560
|
+
acceptJavaScript(v, p) {
|
|
3561
|
+
return v.visitNamedExports(this, p);
|
|
3562
|
+
}
|
|
3563
|
+
get padding() {
|
|
3564
|
+
const t = this;
|
|
3565
|
+
return new class {
|
|
3566
|
+
get elements() {
|
|
3567
|
+
return t._elements;
|
|
3568
|
+
}
|
|
3569
|
+
withElements(elements) {
|
|
3570
|
+
return t._elements === elements ? t : new NamedExports_1(t._id, t._prefix, t._markers, elements, t._type);
|
|
3571
|
+
}
|
|
3572
|
+
};
|
|
3573
|
+
}
|
|
3574
|
+
};
|
|
3575
|
+
exports.NamedExports = NamedExports;
|
|
3576
|
+
exports.NamedExports = NamedExports = NamedExports_1 = __decorate([
|
|
3577
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$NamedExports")
|
|
3578
|
+
], NamedExports);
|
|
3579
|
+
let ExportSpecifier = ExportSpecifier_1 = class ExportSpecifier extends (0, support_types_1.JSMixin)(Object) {
|
|
3580
|
+
constructor(id, prefix, markers, typeOnly, specifier, _type) {
|
|
3581
|
+
super();
|
|
3582
|
+
this._id = id;
|
|
3583
|
+
this._prefix = prefix;
|
|
3584
|
+
this._markers = markers;
|
|
3585
|
+
this._typeOnly = typeOnly;
|
|
3586
|
+
this._specifier = specifier;
|
|
3587
|
+
this._type = _type;
|
|
3588
|
+
}
|
|
3589
|
+
get id() {
|
|
3590
|
+
return this._id;
|
|
3591
|
+
}
|
|
3592
|
+
withId(id) {
|
|
3593
|
+
return id === this._id ? this : new ExportSpecifier_1(id, this._prefix, this._markers, this._typeOnly, this._specifier, this._type);
|
|
3594
|
+
}
|
|
3595
|
+
get prefix() {
|
|
3596
|
+
return this._prefix;
|
|
3597
|
+
}
|
|
3598
|
+
withPrefix(prefix) {
|
|
3599
|
+
return prefix === this._prefix ? this : new ExportSpecifier_1(this._id, prefix, this._markers, this._typeOnly, this._specifier, this._type);
|
|
3600
|
+
}
|
|
3601
|
+
get markers() {
|
|
3602
|
+
return this._markers;
|
|
3603
|
+
}
|
|
3604
|
+
withMarkers(markers) {
|
|
3605
|
+
return markers === this._markers ? this : new ExportSpecifier_1(this._id, this._prefix, markers, this._typeOnly, this._specifier, this._type);
|
|
3606
|
+
}
|
|
3607
|
+
get typeOnly() {
|
|
3608
|
+
return this._typeOnly.element;
|
|
3609
|
+
}
|
|
3610
|
+
withTypeOnly(typeOnly) {
|
|
3611
|
+
return this.padding.withTypeOnly(this._typeOnly.withElement(typeOnly));
|
|
3612
|
+
}
|
|
3613
|
+
get specifier() {
|
|
3614
|
+
return this._specifier;
|
|
3615
|
+
}
|
|
3616
|
+
withSpecifier(specifier) {
|
|
3617
|
+
return specifier === this._specifier ? this : new ExportSpecifier_1(this._id, this._prefix, this._markers, this._typeOnly, specifier, this._type);
|
|
3618
|
+
}
|
|
3619
|
+
get type() {
|
|
3620
|
+
return this._type;
|
|
3621
|
+
}
|
|
3622
|
+
withType(_type) {
|
|
3623
|
+
return _type === this._type ? this : new ExportSpecifier_1(this._id, this._prefix, this._markers, this._typeOnly, this._specifier, _type);
|
|
3624
|
+
}
|
|
3625
|
+
acceptJavaScript(v, p) {
|
|
3626
|
+
return v.visitExportSpecifier(this, p);
|
|
3627
|
+
}
|
|
3628
|
+
get padding() {
|
|
3629
|
+
const t = this;
|
|
3630
|
+
return new class {
|
|
3631
|
+
get typeOnly() {
|
|
3632
|
+
return t._typeOnly;
|
|
3633
|
+
}
|
|
3634
|
+
withTypeOnly(typeOnly) {
|
|
3635
|
+
return t._typeOnly === typeOnly ? t : new ExportSpecifier_1(t._id, t._prefix, t._markers, typeOnly, t._specifier, t._type);
|
|
3636
|
+
}
|
|
3637
|
+
};
|
|
3638
|
+
}
|
|
3639
|
+
};
|
|
3640
|
+
exports.ExportSpecifier = ExportSpecifier;
|
|
3641
|
+
exports.ExportSpecifier = ExportSpecifier = ExportSpecifier_1 = __decorate([
|
|
3642
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$ExportSpecifier")
|
|
3643
|
+
], ExportSpecifier);
|
|
3644
|
+
let IndexedAccessType = IndexedAccessType_1 = class IndexedAccessType extends (0, support_types_1.JSMixin)(Object) {
|
|
3645
|
+
constructor(id, prefix, markers, objectType, indexType, _type) {
|
|
3646
|
+
super();
|
|
3647
|
+
this._id = id;
|
|
3648
|
+
this._prefix = prefix;
|
|
3649
|
+
this._markers = markers;
|
|
3650
|
+
this._objectType = objectType;
|
|
3651
|
+
this._indexType = indexType;
|
|
3652
|
+
this._type = _type;
|
|
3653
|
+
}
|
|
3654
|
+
get id() {
|
|
3655
|
+
return this._id;
|
|
3656
|
+
}
|
|
3657
|
+
withId(id) {
|
|
3658
|
+
return id === this._id ? this : new IndexedAccessType_1(id, this._prefix, this._markers, this._objectType, this._indexType, this._type);
|
|
3659
|
+
}
|
|
3660
|
+
get prefix() {
|
|
3661
|
+
return this._prefix;
|
|
3662
|
+
}
|
|
3663
|
+
withPrefix(prefix) {
|
|
3664
|
+
return prefix === this._prefix ? this : new IndexedAccessType_1(this._id, prefix, this._markers, this._objectType, this._indexType, this._type);
|
|
3665
|
+
}
|
|
3666
|
+
get markers() {
|
|
3667
|
+
return this._markers;
|
|
3668
|
+
}
|
|
3669
|
+
withMarkers(markers) {
|
|
3670
|
+
return markers === this._markers ? this : new IndexedAccessType_1(this._id, this._prefix, markers, this._objectType, this._indexType, this._type);
|
|
3671
|
+
}
|
|
3672
|
+
get objectType() {
|
|
3673
|
+
return this._objectType;
|
|
3674
|
+
}
|
|
3675
|
+
withObjectType(objectType) {
|
|
3676
|
+
return objectType === this._objectType ? this : new IndexedAccessType_1(this._id, this._prefix, this._markers, objectType, this._indexType, this._type);
|
|
3677
|
+
}
|
|
3678
|
+
get indexType() {
|
|
3679
|
+
return this._indexType.element;
|
|
3680
|
+
}
|
|
3681
|
+
withIndexType(indexType) {
|
|
3682
|
+
return this.padding.withIndexType(this._indexType.withElement(indexType));
|
|
3683
|
+
}
|
|
3684
|
+
get type() {
|
|
3685
|
+
return this._type;
|
|
3686
|
+
}
|
|
3687
|
+
withType(_type) {
|
|
3688
|
+
return _type === this._type ? this : new IndexedAccessType_1(this._id, this._prefix, this._markers, this._objectType, this._indexType, _type);
|
|
3689
|
+
}
|
|
3690
|
+
acceptJavaScript(v, p) {
|
|
3691
|
+
return v.visitIndexedAccessType(this, p);
|
|
3692
|
+
}
|
|
3693
|
+
get padding() {
|
|
3694
|
+
const t = this;
|
|
3695
|
+
return new class {
|
|
3696
|
+
get indexType() {
|
|
3697
|
+
return t._indexType;
|
|
3698
|
+
}
|
|
3699
|
+
withIndexType(indexType) {
|
|
3700
|
+
return t._indexType === indexType ? t : new IndexedAccessType_1(t._id, t._prefix, t._markers, t._objectType, indexType, t._type);
|
|
3701
|
+
}
|
|
3702
|
+
};
|
|
3703
|
+
}
|
|
3704
|
+
};
|
|
3705
|
+
exports.IndexedAccessType = IndexedAccessType;
|
|
3706
|
+
exports.IndexedAccessType = IndexedAccessType = IndexedAccessType_1 = __decorate([
|
|
3707
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$IndexedAccessType")
|
|
3708
|
+
], IndexedAccessType);
|
|
3709
|
+
(function (IndexedAccessType) {
|
|
3710
|
+
let IndexType = class IndexType extends (0, support_types_1.JSMixin)(Object) {
|
|
3711
|
+
constructor(id, prefix, markers, element, _type) {
|
|
3712
|
+
super();
|
|
3713
|
+
this._id = id;
|
|
3714
|
+
this._prefix = prefix;
|
|
3715
|
+
this._markers = markers;
|
|
3716
|
+
this._element = element;
|
|
3717
|
+
this._type = _type;
|
|
3718
|
+
}
|
|
3719
|
+
get id() {
|
|
3720
|
+
return this._id;
|
|
3721
|
+
}
|
|
3722
|
+
withId(id) {
|
|
3723
|
+
return id === this._id ? this : new IndexedAccessType.IndexType(id, this._prefix, this._markers, this._element, this._type);
|
|
3724
|
+
}
|
|
3725
|
+
get prefix() {
|
|
3726
|
+
return this._prefix;
|
|
3727
|
+
}
|
|
3728
|
+
withPrefix(prefix) {
|
|
3729
|
+
return prefix === this._prefix ? this : new IndexedAccessType.IndexType(this._id, prefix, this._markers, this._element, this._type);
|
|
3730
|
+
}
|
|
3731
|
+
get markers() {
|
|
3732
|
+
return this._markers;
|
|
3733
|
+
}
|
|
3734
|
+
withMarkers(markers) {
|
|
3735
|
+
return markers === this._markers ? this : new IndexedAccessType.IndexType(this._id, this._prefix, markers, this._element, this._type);
|
|
3736
|
+
}
|
|
3737
|
+
get element() {
|
|
3738
|
+
return this._element.element;
|
|
3739
|
+
}
|
|
3740
|
+
withElement(element) {
|
|
3741
|
+
return this.padding.withElement(this._element.withElement(element));
|
|
3742
|
+
}
|
|
3743
|
+
get type() {
|
|
3744
|
+
return this._type;
|
|
3745
|
+
}
|
|
3746
|
+
withType(_type) {
|
|
3747
|
+
return _type === this._type ? this : new IndexedAccessType.IndexType(this._id, this._prefix, this._markers, this._element, _type);
|
|
3748
|
+
}
|
|
3749
|
+
acceptJavaScript(v, p) {
|
|
3750
|
+
return v.visitIndexedAccessTypeIndexType(this, p);
|
|
3751
|
+
}
|
|
3752
|
+
get padding() {
|
|
3753
|
+
const t = this;
|
|
3754
|
+
return new class {
|
|
3755
|
+
get element() {
|
|
3756
|
+
return t._element;
|
|
3757
|
+
}
|
|
3758
|
+
withElement(element) {
|
|
3759
|
+
return t._element === element ? t : new IndexedAccessType.IndexType(t._id, t._prefix, t._markers, element, t._type);
|
|
3760
|
+
}
|
|
3761
|
+
};
|
|
3762
|
+
}
|
|
3763
|
+
};
|
|
3764
|
+
IndexType = __decorate([
|
|
3765
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$IndexedAccessType$IndexType")
|
|
3766
|
+
], IndexType);
|
|
3767
|
+
IndexedAccessType.IndexType = IndexType;
|
|
3768
|
+
})(IndexedAccessType || (exports.IndexedAccessType = IndexedAccessType = {}));
|
|
3769
|
+
let JsAssignmentOperation = JsAssignmentOperation_1 = class JsAssignmentOperation extends (0, support_types_1.JSMixin)(Object) {
|
|
3770
|
+
constructor(id, prefix, markers, variable, operator, assignment, _type) {
|
|
3771
|
+
super();
|
|
3772
|
+
this._id = id;
|
|
3773
|
+
this._prefix = prefix;
|
|
3774
|
+
this._markers = markers;
|
|
3775
|
+
this._variable = variable;
|
|
3776
|
+
this._operator = operator;
|
|
3777
|
+
this._assignment = assignment;
|
|
3778
|
+
this._type = _type;
|
|
3779
|
+
}
|
|
3780
|
+
get id() {
|
|
3781
|
+
return this._id;
|
|
3782
|
+
}
|
|
3783
|
+
withId(id) {
|
|
3784
|
+
return id === this._id ? this : new JsAssignmentOperation_1(id, this._prefix, this._markers, this._variable, this._operator, this._assignment, this._type);
|
|
3785
|
+
}
|
|
3786
|
+
get prefix() {
|
|
3787
|
+
return this._prefix;
|
|
3788
|
+
}
|
|
3789
|
+
withPrefix(prefix) {
|
|
3790
|
+
return prefix === this._prefix ? this : new JsAssignmentOperation_1(this._id, prefix, this._markers, this._variable, this._operator, this._assignment, this._type);
|
|
3791
|
+
}
|
|
3792
|
+
get markers() {
|
|
3793
|
+
return this._markers;
|
|
3794
|
+
}
|
|
3795
|
+
withMarkers(markers) {
|
|
3796
|
+
return markers === this._markers ? this : new JsAssignmentOperation_1(this._id, this._prefix, markers, this._variable, this._operator, this._assignment, this._type);
|
|
3797
|
+
}
|
|
3798
|
+
get variable() {
|
|
3799
|
+
return this._variable;
|
|
3800
|
+
}
|
|
3801
|
+
withVariable(variable) {
|
|
3802
|
+
return variable === this._variable ? this : new JsAssignmentOperation_1(this._id, this._prefix, this._markers, variable, this._operator, this._assignment, this._type);
|
|
3803
|
+
}
|
|
3804
|
+
get operator() {
|
|
3805
|
+
return this._operator.element;
|
|
3806
|
+
}
|
|
3807
|
+
withOperator(operator) {
|
|
3808
|
+
return this.padding.withOperator(this._operator.withElement(operator));
|
|
3809
|
+
}
|
|
3810
|
+
get assignment() {
|
|
3811
|
+
return this._assignment;
|
|
3812
|
+
}
|
|
3813
|
+
withAssignment(assignment) {
|
|
3814
|
+
return assignment === this._assignment ? this : new JsAssignmentOperation_1(this._id, this._prefix, this._markers, this._variable, this._operator, assignment, this._type);
|
|
3815
|
+
}
|
|
3816
|
+
get type() {
|
|
3817
|
+
return this._type;
|
|
3818
|
+
}
|
|
3819
|
+
withType(_type) {
|
|
3820
|
+
return _type === this._type ? this : new JsAssignmentOperation_1(this._id, this._prefix, this._markers, this._variable, this._operator, this._assignment, _type);
|
|
3821
|
+
}
|
|
3822
|
+
acceptJavaScript(v, p) {
|
|
3823
|
+
return v.visitJsAssignmentOperation(this, p);
|
|
3824
|
+
}
|
|
3825
|
+
get padding() {
|
|
3826
|
+
const t = this;
|
|
3827
|
+
return new class {
|
|
3828
|
+
get operator() {
|
|
3829
|
+
return t._operator;
|
|
3830
|
+
}
|
|
3831
|
+
withOperator(operator) {
|
|
3832
|
+
return t._operator === operator ? t : new JsAssignmentOperation_1(t._id, t._prefix, t._markers, t._variable, operator, t._assignment, t._type);
|
|
3833
|
+
}
|
|
3834
|
+
};
|
|
3835
|
+
}
|
|
3836
|
+
};
|
|
3837
|
+
exports.JsAssignmentOperation = JsAssignmentOperation;
|
|
3838
|
+
exports.JsAssignmentOperation = JsAssignmentOperation = JsAssignmentOperation_1 = __decorate([
|
|
3839
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$JsAssignmentOperation")
|
|
3840
|
+
], JsAssignmentOperation);
|
|
3841
|
+
(function (JsAssignmentOperation) {
|
|
3842
|
+
let Type;
|
|
3843
|
+
(function (Type) {
|
|
3844
|
+
Type[Type["QuestionQuestion"] = 0] = "QuestionQuestion";
|
|
3845
|
+
Type[Type["And"] = 1] = "And";
|
|
3846
|
+
Type[Type["Or"] = 2] = "Or";
|
|
3847
|
+
})(Type = JsAssignmentOperation.Type || (JsAssignmentOperation.Type = {}));
|
|
3848
|
+
})(JsAssignmentOperation || (exports.JsAssignmentOperation = JsAssignmentOperation = {}));
|
|
3011
3849
|
//# sourceMappingURL=tree.js.map
|