@openrewrite/rewrite 0.22.0 → 0.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/javascript/parser.d.ts +20 -18
- package/dist/src/javascript/parser.d.ts.map +1 -1
- package/dist/src/javascript/parser.js +77 -37
- 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 +107 -18
- 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 +78 -13
- 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 +35 -9
- package/dist/src/javascript/tree/support_types.d.ts.map +1 -1
- package/dist/src/javascript/tree/support_types.js +33 -7
- package/dist/src/javascript/tree/support_types.js.map +1 -1
- package/dist/src/javascript/tree/tree.d.ts +449 -81
- package/dist/src/javascript/tree/tree.d.ts.map +1 -1
- package/dist/src/javascript/tree/tree.js +597 -126
- package/dist/src/javascript/tree/tree.js.map +1 -1
- package/dist/src/javascript/visitor.d.ts +10 -2
- package/dist/src/javascript/visitor.d.ts.map +1 -1
- package/dist/src/javascript/visitor.js +108 -11
- 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, JSMethodInvocation_1, NamespaceDeclaration_1, FunctionDeclaration_1;
|
|
31
|
+
var CompilationUnit_1, Alias_1, ArrowFunction_1, Await_1, DefaultType_1, Delete_1, Export_1, FunctionType_1, JsImport_1, JsImportSpecifier_1, JsBinary_1, ObjectBindingDeclarations_1, PropertyAssignment_1, ScopedVariableDeclarations_1, TemplateExpression_1, Tuple_1, TypeDeclaration_1, TypeOf_1, TypeQuery_1, TypeOperator_1, Unary_1, Union_1, Intersection_1, Void_1, Yield_1, TypeInfo_1, JSVariableDeclarations_1, JSMethodDeclaration_1, JSMethodInvocation_1, JSForOfLoop_1, JSForInLoop_1, JSForInOfLoopControl_1, NamespaceDeclaration_1, FunctionDeclaration_1, TypeLiteral_1, IndexSignatureDeclaration_1, ArrayBindingPattern_1, BindingElement_1;
|
|
32
32
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
-
exports.FunctionDeclaration = exports.NamespaceDeclaration = exports.JSMethodInvocation = exports.JSMethodDeclaration = exports.JSVariableDeclarations = exports.TypeInfo = exports.Yield = exports.Void = exports.Union = exports.Unary = exports.TypeOperator = exports.TypeOf = exports.TypeDeclaration = exports.Tuple = exports.TemplateExpression = exports.ScopedVariableDeclarations = exports.PropertyAssignment = exports.ObjectBindingDeclarations = exports.JsBinary = exports.JsImportSpecifier = exports.JsImport = exports.FunctionType = exports.Export = exports.Delete = exports.DefaultType = exports.Await = exports.ArrowFunction = exports.Alias = exports.CompilationUnit = void 0;
|
|
33
|
+
exports.BindingElement = exports.ArrayBindingPattern = exports.IndexSignatureDeclaration = exports.TypeLiteral = exports.FunctionDeclaration = exports.NamespaceDeclaration = exports.JSForInOfLoopControl = exports.JSForInLoop = exports.JSForOfLoop = exports.JSMethodInvocation = exports.JSMethodDeclaration = exports.JSVariableDeclarations = exports.TypeInfo = exports.Yield = exports.Void = exports.Intersection = exports.Union = exports.Unary = exports.TypeOperator = exports.TypeQuery = exports.TypeOf = exports.TypeDeclaration = exports.Tuple = exports.TemplateExpression = exports.ScopedVariableDeclarations = exports.PropertyAssignment = exports.ObjectBindingDeclarations = exports.JsBinary = exports.JsImportSpecifier = exports.JsImport = exports.FunctionType = exports.Export = exports.Delete = exports.DefaultType = exports.Await = exports.ArrowFunction = exports.Alias = exports.CompilationUnit = void 0;
|
|
34
34
|
const extensions = __importStar(require("./extensions"));
|
|
35
35
|
const support_types_1 = require("./support_types");
|
|
36
36
|
const core_1 = require("../../core");
|
|
@@ -531,11 +531,12 @@ exports.Export = Export = Export_1 = __decorate([
|
|
|
531
531
|
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$Export")
|
|
532
532
|
], Export);
|
|
533
533
|
let FunctionType = FunctionType_1 = class FunctionType extends (0, support_types_1.JSMixin)(Object) {
|
|
534
|
-
constructor(id, prefix, markers, parameters, arrow, returnType, _type) {
|
|
534
|
+
constructor(id, prefix, markers, constructorType, parameters, arrow, returnType, _type) {
|
|
535
535
|
super();
|
|
536
536
|
this._id = id;
|
|
537
537
|
this._prefix = prefix;
|
|
538
538
|
this._markers = markers;
|
|
539
|
+
this._constructorType = constructorType;
|
|
539
540
|
this._parameters = parameters;
|
|
540
541
|
this._arrow = arrow;
|
|
541
542
|
this._returnType = returnType;
|
|
@@ -545,19 +546,25 @@ let FunctionType = FunctionType_1 = class FunctionType extends (0, support_types
|
|
|
545
546
|
return this._id;
|
|
546
547
|
}
|
|
547
548
|
withId(id) {
|
|
548
|
-
return id === this._id ? this : new FunctionType_1(id, this._prefix, this._markers, this._parameters, this._arrow, this._returnType, this._type);
|
|
549
|
+
return id === this._id ? this : new FunctionType_1(id, this._prefix, this._markers, this._constructorType, this._parameters, this._arrow, this._returnType, this._type);
|
|
549
550
|
}
|
|
550
551
|
get prefix() {
|
|
551
552
|
return this._prefix;
|
|
552
553
|
}
|
|
553
554
|
withPrefix(prefix) {
|
|
554
|
-
return prefix === this._prefix ? this : new FunctionType_1(this._id, prefix, this._markers, this._parameters, this._arrow, this._returnType, this._type);
|
|
555
|
+
return prefix === this._prefix ? this : new FunctionType_1(this._id, prefix, this._markers, this._constructorType, this._parameters, this._arrow, this._returnType, this._type);
|
|
555
556
|
}
|
|
556
557
|
get markers() {
|
|
557
558
|
return this._markers;
|
|
558
559
|
}
|
|
559
560
|
withMarkers(markers) {
|
|
560
|
-
return markers === this._markers ? this : new FunctionType_1(this._id, this._prefix, markers, this._parameters, this._arrow, this._returnType, this._type);
|
|
561
|
+
return markers === this._markers ? this : new FunctionType_1(this._id, this._prefix, markers, this._constructorType, this._parameters, this._arrow, this._returnType, this._type);
|
|
562
|
+
}
|
|
563
|
+
get constructorType() {
|
|
564
|
+
return this._constructorType.element;
|
|
565
|
+
}
|
|
566
|
+
withConstructorType(constructorType) {
|
|
567
|
+
return this.padding.withConstructorType(this._constructorType.withElement(constructorType));
|
|
561
568
|
}
|
|
562
569
|
get parameters() {
|
|
563
570
|
return this._parameters.elements;
|
|
@@ -569,19 +576,19 @@ let FunctionType = FunctionType_1 = class FunctionType extends (0, support_types
|
|
|
569
576
|
return this._arrow;
|
|
570
577
|
}
|
|
571
578
|
withArrow(arrow) {
|
|
572
|
-
return arrow === this._arrow ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._parameters, arrow, this._returnType, this._type);
|
|
579
|
+
return arrow === this._arrow ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._constructorType, this._parameters, arrow, this._returnType, this._type);
|
|
573
580
|
}
|
|
574
581
|
get returnType() {
|
|
575
582
|
return this._returnType;
|
|
576
583
|
}
|
|
577
584
|
withReturnType(returnType) {
|
|
578
|
-
return returnType === this._returnType ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._parameters, this._arrow, returnType, this._type);
|
|
585
|
+
return returnType === this._returnType ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._constructorType, this._parameters, this._arrow, returnType, this._type);
|
|
579
586
|
}
|
|
580
587
|
get type() {
|
|
581
588
|
return this._type;
|
|
582
589
|
}
|
|
583
590
|
withType(_type) {
|
|
584
|
-
return _type === this._type ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._parameters, this._arrow, this._returnType, _type);
|
|
591
|
+
return _type === this._type ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._constructorType, this._parameters, this._arrow, this._returnType, _type);
|
|
585
592
|
}
|
|
586
593
|
acceptJavaScript(v, p) {
|
|
587
594
|
return v.visitFunctionType(this, p);
|
|
@@ -589,11 +596,17 @@ let FunctionType = FunctionType_1 = class FunctionType extends (0, support_types
|
|
|
589
596
|
get padding() {
|
|
590
597
|
const t = this;
|
|
591
598
|
return new class {
|
|
599
|
+
get constructorType() {
|
|
600
|
+
return t._constructorType;
|
|
601
|
+
}
|
|
602
|
+
withConstructorType(constructorType) {
|
|
603
|
+
return t._constructorType === constructorType ? t : new FunctionType_1(t._id, t._prefix, t._markers, constructorType, t._parameters, t._arrow, t._returnType, t._type);
|
|
604
|
+
}
|
|
592
605
|
get parameters() {
|
|
593
606
|
return t._parameters;
|
|
594
607
|
}
|
|
595
608
|
withParameters(parameters) {
|
|
596
|
-
return t._parameters === parameters ? t : new FunctionType_1(t._id, t._prefix, t._markers, parameters, t._arrow, t._returnType, t._type);
|
|
609
|
+
return t._parameters === parameters ? t : new FunctionType_1(t._id, t._prefix, t._markers, t._constructorType, parameters, t._arrow, t._returnType, t._type);
|
|
597
610
|
}
|
|
598
611
|
};
|
|
599
612
|
}
|
|
@@ -944,106 +957,6 @@ exports.ObjectBindingDeclarations = ObjectBindingDeclarations;
|
|
|
944
957
|
exports.ObjectBindingDeclarations = ObjectBindingDeclarations = ObjectBindingDeclarations_1 = __decorate([
|
|
945
958
|
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$ObjectBindingDeclarations")
|
|
946
959
|
], 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
960
|
let PropertyAssignment = PropertyAssignment_1 = class PropertyAssignment extends (0, support_types_1.JSMixin)(Object) {
|
|
1048
961
|
constructor(id, prefix, markers, name, initializer) {
|
|
1049
962
|
super();
|
|
@@ -1374,12 +1287,11 @@ exports.Tuple = Tuple = Tuple_1 = __decorate([
|
|
|
1374
1287
|
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$Tuple")
|
|
1375
1288
|
], Tuple);
|
|
1376
1289
|
let TypeDeclaration = TypeDeclaration_1 = class TypeDeclaration extends (0, support_types_1.JSMixin)(Object) {
|
|
1377
|
-
constructor(id, prefix, markers,
|
|
1290
|
+
constructor(id, prefix, markers, modifiers, name, typeParameters, initializer, _type) {
|
|
1378
1291
|
super();
|
|
1379
1292
|
this._id = id;
|
|
1380
1293
|
this._prefix = prefix;
|
|
1381
1294
|
this._markers = markers;
|
|
1382
|
-
this._leadingAnnotations = leadingAnnotations;
|
|
1383
1295
|
this._modifiers = modifiers;
|
|
1384
1296
|
this._name = name;
|
|
1385
1297
|
this._typeParameters = typeParameters;
|
|
@@ -1390,43 +1302,37 @@ let TypeDeclaration = TypeDeclaration_1 = class TypeDeclaration extends (0, supp
|
|
|
1390
1302
|
return this._id;
|
|
1391
1303
|
}
|
|
1392
1304
|
withId(id) {
|
|
1393
|
-
return id === this._id ? this : new TypeDeclaration_1(id, this._prefix, this._markers, this.
|
|
1305
|
+
return id === this._id ? this : new TypeDeclaration_1(id, this._prefix, this._markers, this._modifiers, this._name, this._typeParameters, this._initializer, this._type);
|
|
1394
1306
|
}
|
|
1395
1307
|
get prefix() {
|
|
1396
1308
|
return this._prefix;
|
|
1397
1309
|
}
|
|
1398
1310
|
withPrefix(prefix) {
|
|
1399
|
-
return prefix === this._prefix ? this : new TypeDeclaration_1(this._id, prefix, this._markers, this.
|
|
1311
|
+
return prefix === this._prefix ? this : new TypeDeclaration_1(this._id, prefix, this._markers, this._modifiers, this._name, this._typeParameters, this._initializer, this._type);
|
|
1400
1312
|
}
|
|
1401
1313
|
get markers() {
|
|
1402
1314
|
return this._markers;
|
|
1403
1315
|
}
|
|
1404
1316
|
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);
|
|
1317
|
+
return markers === this._markers ? this : new TypeDeclaration_1(this._id, this._prefix, markers, this._modifiers, this._name, this._typeParameters, this._initializer, this._type);
|
|
1412
1318
|
}
|
|
1413
1319
|
get modifiers() {
|
|
1414
1320
|
return this._modifiers;
|
|
1415
1321
|
}
|
|
1416
1322
|
withModifiers(modifiers) {
|
|
1417
|
-
return modifiers === this._modifiers ? this : new TypeDeclaration_1(this._id, this._prefix, this._markers,
|
|
1323
|
+
return modifiers === this._modifiers ? this : new TypeDeclaration_1(this._id, this._prefix, this._markers, modifiers, this._name, this._typeParameters, this._initializer, this._type);
|
|
1418
1324
|
}
|
|
1419
1325
|
get name() {
|
|
1420
1326
|
return this._name;
|
|
1421
1327
|
}
|
|
1422
1328
|
withName(name) {
|
|
1423
|
-
return name === this._name ? this : new TypeDeclaration_1(this._id, this._prefix, this._markers, this.
|
|
1329
|
+
return name === this._name ? this : new TypeDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, name, this._typeParameters, this._initializer, this._type);
|
|
1424
1330
|
}
|
|
1425
1331
|
get typeParameters() {
|
|
1426
1332
|
return this._typeParameters;
|
|
1427
1333
|
}
|
|
1428
1334
|
withTypeParameters(typeParameters) {
|
|
1429
|
-
return typeParameters === this._typeParameters ? this : new TypeDeclaration_1(this._id, this._prefix, this._markers, this.
|
|
1335
|
+
return typeParameters === this._typeParameters ? this : new TypeDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, this._name, typeParameters, this._initializer, this._type);
|
|
1430
1336
|
}
|
|
1431
1337
|
get initializer() {
|
|
1432
1338
|
return this._initializer.element;
|
|
@@ -1438,7 +1344,7 @@ let TypeDeclaration = TypeDeclaration_1 = class TypeDeclaration extends (0, supp
|
|
|
1438
1344
|
return this._type;
|
|
1439
1345
|
}
|
|
1440
1346
|
withType(_type) {
|
|
1441
|
-
return _type === this._type ? this : new TypeDeclaration_1(this._id, this._prefix, this._markers, this.
|
|
1347
|
+
return _type === this._type ? this : new TypeDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, this._name, this._typeParameters, this._initializer, _type);
|
|
1442
1348
|
}
|
|
1443
1349
|
acceptJavaScript(v, p) {
|
|
1444
1350
|
return v.visitTypeDeclaration(this, p);
|
|
@@ -1450,7 +1356,7 @@ let TypeDeclaration = TypeDeclaration_1 = class TypeDeclaration extends (0, supp
|
|
|
1450
1356
|
return t._initializer;
|
|
1451
1357
|
}
|
|
1452
1358
|
withInitializer(initializer) {
|
|
1453
|
-
return t._initializer === initializer ? t : new TypeDeclaration_1(t._id, t._prefix, t._markers, t.
|
|
1359
|
+
return t._initializer === initializer ? t : new TypeDeclaration_1(t._id, t._prefix, t._markers, t._modifiers, t._name, t._typeParameters, initializer, t._type);
|
|
1454
1360
|
}
|
|
1455
1361
|
};
|
|
1456
1362
|
}
|
|
@@ -1506,6 +1412,53 @@ exports.TypeOf = TypeOf;
|
|
|
1506
1412
|
exports.TypeOf = TypeOf = TypeOf_1 = __decorate([
|
|
1507
1413
|
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$TypeOf")
|
|
1508
1414
|
], TypeOf);
|
|
1415
|
+
let TypeQuery = TypeQuery_1 = class TypeQuery extends (0, support_types_1.JSMixin)(Object) {
|
|
1416
|
+
constructor(id, prefix, markers, typeExpression, _type) {
|
|
1417
|
+
super();
|
|
1418
|
+
this._id = id;
|
|
1419
|
+
this._prefix = prefix;
|
|
1420
|
+
this._markers = markers;
|
|
1421
|
+
this._typeExpression = typeExpression;
|
|
1422
|
+
this._type = _type;
|
|
1423
|
+
}
|
|
1424
|
+
get id() {
|
|
1425
|
+
return this._id;
|
|
1426
|
+
}
|
|
1427
|
+
withId(id) {
|
|
1428
|
+
return id === this._id ? this : new TypeQuery_1(id, this._prefix, this._markers, this._typeExpression, this._type);
|
|
1429
|
+
}
|
|
1430
|
+
get prefix() {
|
|
1431
|
+
return this._prefix;
|
|
1432
|
+
}
|
|
1433
|
+
withPrefix(prefix) {
|
|
1434
|
+
return prefix === this._prefix ? this : new TypeQuery_1(this._id, prefix, this._markers, this._typeExpression, this._type);
|
|
1435
|
+
}
|
|
1436
|
+
get markers() {
|
|
1437
|
+
return this._markers;
|
|
1438
|
+
}
|
|
1439
|
+
withMarkers(markers) {
|
|
1440
|
+
return markers === this._markers ? this : new TypeQuery_1(this._id, this._prefix, markers, this._typeExpression, this._type);
|
|
1441
|
+
}
|
|
1442
|
+
get typeExpression() {
|
|
1443
|
+
return this._typeExpression;
|
|
1444
|
+
}
|
|
1445
|
+
withTypeExpression(typeExpression) {
|
|
1446
|
+
return typeExpression === this._typeExpression ? this : new TypeQuery_1(this._id, this._prefix, this._markers, typeExpression, this._type);
|
|
1447
|
+
}
|
|
1448
|
+
get type() {
|
|
1449
|
+
return this._type;
|
|
1450
|
+
}
|
|
1451
|
+
withType(_type) {
|
|
1452
|
+
return _type === this._type ? this : new TypeQuery_1(this._id, this._prefix, this._markers, this._typeExpression, _type);
|
|
1453
|
+
}
|
|
1454
|
+
acceptJavaScript(v, p) {
|
|
1455
|
+
return v.visitTypeQuery(this, p);
|
|
1456
|
+
}
|
|
1457
|
+
};
|
|
1458
|
+
exports.TypeQuery = TypeQuery;
|
|
1459
|
+
exports.TypeQuery = TypeQuery = TypeQuery_1 = __decorate([
|
|
1460
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$TypeQuery")
|
|
1461
|
+
], TypeQuery);
|
|
1509
1462
|
let TypeOperator = TypeOperator_1 = class TypeOperator extends (0, support_types_1.JSMixin)(Object) {
|
|
1510
1463
|
constructor(id, prefix, markers, operator, expression) {
|
|
1511
1464
|
super();
|
|
@@ -1710,6 +1663,64 @@ exports.Union = Union;
|
|
|
1710
1663
|
exports.Union = Union = Union_1 = __decorate([
|
|
1711
1664
|
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$Union")
|
|
1712
1665
|
], Union);
|
|
1666
|
+
let Intersection = Intersection_1 = class Intersection extends (0, support_types_1.JSMixin)(Object) {
|
|
1667
|
+
constructor(id, prefix, markers, types, _type) {
|
|
1668
|
+
super();
|
|
1669
|
+
this._id = id;
|
|
1670
|
+
this._prefix = prefix;
|
|
1671
|
+
this._markers = markers;
|
|
1672
|
+
this._types = types;
|
|
1673
|
+
this._type = _type;
|
|
1674
|
+
}
|
|
1675
|
+
get id() {
|
|
1676
|
+
return this._id;
|
|
1677
|
+
}
|
|
1678
|
+
withId(id) {
|
|
1679
|
+
return id === this._id ? this : new Intersection_1(id, this._prefix, this._markers, this._types, this._type);
|
|
1680
|
+
}
|
|
1681
|
+
get prefix() {
|
|
1682
|
+
return this._prefix;
|
|
1683
|
+
}
|
|
1684
|
+
withPrefix(prefix) {
|
|
1685
|
+
return prefix === this._prefix ? this : new Intersection_1(this._id, prefix, this._markers, this._types, this._type);
|
|
1686
|
+
}
|
|
1687
|
+
get markers() {
|
|
1688
|
+
return this._markers;
|
|
1689
|
+
}
|
|
1690
|
+
withMarkers(markers) {
|
|
1691
|
+
return markers === this._markers ? this : new Intersection_1(this._id, this._prefix, markers, this._types, this._type);
|
|
1692
|
+
}
|
|
1693
|
+
get types() {
|
|
1694
|
+
return tree_1.JRightPadded.getElements(this._types);
|
|
1695
|
+
}
|
|
1696
|
+
withTypes(types) {
|
|
1697
|
+
return this.padding.withTypes(tree_1.JRightPadded.withElements(this._types, types));
|
|
1698
|
+
}
|
|
1699
|
+
get type() {
|
|
1700
|
+
return this._type;
|
|
1701
|
+
}
|
|
1702
|
+
withType(_type) {
|
|
1703
|
+
return _type === this._type ? this : new Intersection_1(this._id, this._prefix, this._markers, this._types, _type);
|
|
1704
|
+
}
|
|
1705
|
+
acceptJavaScript(v, p) {
|
|
1706
|
+
return v.visitIntersection(this, p);
|
|
1707
|
+
}
|
|
1708
|
+
get padding() {
|
|
1709
|
+
const t = this;
|
|
1710
|
+
return new class {
|
|
1711
|
+
get types() {
|
|
1712
|
+
return t._types;
|
|
1713
|
+
}
|
|
1714
|
+
withTypes(types) {
|
|
1715
|
+
return t._types === types ? t : new Intersection_1(t._id, t._prefix, t._markers, types, t._type);
|
|
1716
|
+
}
|
|
1717
|
+
};
|
|
1718
|
+
}
|
|
1719
|
+
};
|
|
1720
|
+
exports.Intersection = Intersection;
|
|
1721
|
+
exports.Intersection = Intersection = Intersection_1 = __decorate([
|
|
1722
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$Intersection")
|
|
1723
|
+
], Intersection);
|
|
1713
1724
|
let Void = Void_1 = class Void extends (0, support_types_1.JSMixin)(Object) {
|
|
1714
1725
|
constructor(id, prefix, markers, expression) {
|
|
1715
1726
|
super();
|
|
@@ -2256,6 +2267,199 @@ exports.JSMethodInvocation = JSMethodInvocation;
|
|
|
2256
2267
|
exports.JSMethodInvocation = JSMethodInvocation = JSMethodInvocation_1 = __decorate([
|
|
2257
2268
|
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$JSMethodInvocation")
|
|
2258
2269
|
], JSMethodInvocation);
|
|
2270
|
+
let JSForOfLoop = JSForOfLoop_1 = class JSForOfLoop extends (0, support_types_1.JSMixin)(Object) {
|
|
2271
|
+
constructor(id, prefix, markers, await, control, body) {
|
|
2272
|
+
super();
|
|
2273
|
+
this._id = id;
|
|
2274
|
+
this._prefix = prefix;
|
|
2275
|
+
this._markers = markers;
|
|
2276
|
+
this._await = await;
|
|
2277
|
+
this._control = control;
|
|
2278
|
+
this._body = body;
|
|
2279
|
+
}
|
|
2280
|
+
get id() {
|
|
2281
|
+
return this._id;
|
|
2282
|
+
}
|
|
2283
|
+
withId(id) {
|
|
2284
|
+
return id === this._id ? this : new JSForOfLoop_1(id, this._prefix, this._markers, this._await, this._control, this._body);
|
|
2285
|
+
}
|
|
2286
|
+
get prefix() {
|
|
2287
|
+
return this._prefix;
|
|
2288
|
+
}
|
|
2289
|
+
withPrefix(prefix) {
|
|
2290
|
+
return prefix === this._prefix ? this : new JSForOfLoop_1(this._id, prefix, this._markers, this._await, this._control, this._body);
|
|
2291
|
+
}
|
|
2292
|
+
get markers() {
|
|
2293
|
+
return this._markers;
|
|
2294
|
+
}
|
|
2295
|
+
withMarkers(markers) {
|
|
2296
|
+
return markers === this._markers ? this : new JSForOfLoop_1(this._id, this._prefix, markers, this._await, this._control, this._body);
|
|
2297
|
+
}
|
|
2298
|
+
get await() {
|
|
2299
|
+
return this._await.element;
|
|
2300
|
+
}
|
|
2301
|
+
withAwait(await) {
|
|
2302
|
+
return this.padding.withAwait(this._await.withElement(await));
|
|
2303
|
+
}
|
|
2304
|
+
get control() {
|
|
2305
|
+
return this._control;
|
|
2306
|
+
}
|
|
2307
|
+
withControl(control) {
|
|
2308
|
+
return control === this._control ? this : new JSForOfLoop_1(this._id, this._prefix, this._markers, this._await, control, this._body);
|
|
2309
|
+
}
|
|
2310
|
+
get body() {
|
|
2311
|
+
return this._body.element;
|
|
2312
|
+
}
|
|
2313
|
+
withBody(body) {
|
|
2314
|
+
return this.padding.withBody(this._body.withElement(body));
|
|
2315
|
+
}
|
|
2316
|
+
acceptJavaScript(v, p) {
|
|
2317
|
+
return v.visitJSForOfLoop(this, p);
|
|
2318
|
+
}
|
|
2319
|
+
get padding() {
|
|
2320
|
+
const t = this;
|
|
2321
|
+
return new class {
|
|
2322
|
+
get await() {
|
|
2323
|
+
return t._await;
|
|
2324
|
+
}
|
|
2325
|
+
withAwait(await) {
|
|
2326
|
+
return t._await === await ? t : new JSForOfLoop_1(t._id, t._prefix, t._markers, await, t._control, t._body);
|
|
2327
|
+
}
|
|
2328
|
+
get body() {
|
|
2329
|
+
return t._body;
|
|
2330
|
+
}
|
|
2331
|
+
withBody(body) {
|
|
2332
|
+
return t._body === body ? t : new JSForOfLoop_1(t._id, t._prefix, t._markers, t._await, t._control, body);
|
|
2333
|
+
}
|
|
2334
|
+
};
|
|
2335
|
+
}
|
|
2336
|
+
};
|
|
2337
|
+
exports.JSForOfLoop = JSForOfLoop;
|
|
2338
|
+
exports.JSForOfLoop = JSForOfLoop = JSForOfLoop_1 = __decorate([
|
|
2339
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$JSForOfLoop")
|
|
2340
|
+
], JSForOfLoop);
|
|
2341
|
+
let JSForInLoop = JSForInLoop_1 = class JSForInLoop extends (0, support_types_1.JSMixin)(Object) {
|
|
2342
|
+
constructor(id, prefix, markers, control, body) {
|
|
2343
|
+
super();
|
|
2344
|
+
this._id = id;
|
|
2345
|
+
this._prefix = prefix;
|
|
2346
|
+
this._markers = markers;
|
|
2347
|
+
this._control = control;
|
|
2348
|
+
this._body = body;
|
|
2349
|
+
}
|
|
2350
|
+
get id() {
|
|
2351
|
+
return this._id;
|
|
2352
|
+
}
|
|
2353
|
+
withId(id) {
|
|
2354
|
+
return id === this._id ? this : new JSForInLoop_1(id, this._prefix, this._markers, this._control, this._body);
|
|
2355
|
+
}
|
|
2356
|
+
get prefix() {
|
|
2357
|
+
return this._prefix;
|
|
2358
|
+
}
|
|
2359
|
+
withPrefix(prefix) {
|
|
2360
|
+
return prefix === this._prefix ? this : new JSForInLoop_1(this._id, prefix, this._markers, this._control, this._body);
|
|
2361
|
+
}
|
|
2362
|
+
get markers() {
|
|
2363
|
+
return this._markers;
|
|
2364
|
+
}
|
|
2365
|
+
withMarkers(markers) {
|
|
2366
|
+
return markers === this._markers ? this : new JSForInLoop_1(this._id, this._prefix, markers, this._control, this._body);
|
|
2367
|
+
}
|
|
2368
|
+
get control() {
|
|
2369
|
+
return this._control;
|
|
2370
|
+
}
|
|
2371
|
+
withControl(control) {
|
|
2372
|
+
return control === this._control ? this : new JSForInLoop_1(this._id, this._prefix, this._markers, control, this._body);
|
|
2373
|
+
}
|
|
2374
|
+
get body() {
|
|
2375
|
+
return this._body.element;
|
|
2376
|
+
}
|
|
2377
|
+
withBody(body) {
|
|
2378
|
+
return this.padding.withBody(this._body.withElement(body));
|
|
2379
|
+
}
|
|
2380
|
+
acceptJavaScript(v, p) {
|
|
2381
|
+
return v.visitJSForInLoop(this, p);
|
|
2382
|
+
}
|
|
2383
|
+
get padding() {
|
|
2384
|
+
const t = this;
|
|
2385
|
+
return new class {
|
|
2386
|
+
get body() {
|
|
2387
|
+
return t._body;
|
|
2388
|
+
}
|
|
2389
|
+
withBody(body) {
|
|
2390
|
+
return t._body === body ? t : new JSForInLoop_1(t._id, t._prefix, t._markers, t._control, body);
|
|
2391
|
+
}
|
|
2392
|
+
};
|
|
2393
|
+
}
|
|
2394
|
+
};
|
|
2395
|
+
exports.JSForInLoop = JSForInLoop;
|
|
2396
|
+
exports.JSForInLoop = JSForInLoop = JSForInLoop_1 = __decorate([
|
|
2397
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$JSForInLoop")
|
|
2398
|
+
], JSForInLoop);
|
|
2399
|
+
let JSForInOfLoopControl = JSForInOfLoopControl_1 = class JSForInOfLoopControl extends (0, support_types_1.JSMixin)(Object) {
|
|
2400
|
+
constructor(id, prefix, markers, variable, iterable) {
|
|
2401
|
+
super();
|
|
2402
|
+
this._id = id;
|
|
2403
|
+
this._prefix = prefix;
|
|
2404
|
+
this._markers = markers;
|
|
2405
|
+
this._variable = variable;
|
|
2406
|
+
this._iterable = iterable;
|
|
2407
|
+
}
|
|
2408
|
+
get id() {
|
|
2409
|
+
return this._id;
|
|
2410
|
+
}
|
|
2411
|
+
withId(id) {
|
|
2412
|
+
return id === this._id ? this : new JSForInOfLoopControl_1(id, this._prefix, this._markers, this._variable, this._iterable);
|
|
2413
|
+
}
|
|
2414
|
+
get prefix() {
|
|
2415
|
+
return this._prefix;
|
|
2416
|
+
}
|
|
2417
|
+
withPrefix(prefix) {
|
|
2418
|
+
return prefix === this._prefix ? this : new JSForInOfLoopControl_1(this._id, prefix, this._markers, this._variable, this._iterable);
|
|
2419
|
+
}
|
|
2420
|
+
get markers() {
|
|
2421
|
+
return this._markers;
|
|
2422
|
+
}
|
|
2423
|
+
withMarkers(markers) {
|
|
2424
|
+
return markers === this._markers ? this : new JSForInOfLoopControl_1(this._id, this._prefix, markers, this._variable, this._iterable);
|
|
2425
|
+
}
|
|
2426
|
+
get variable() {
|
|
2427
|
+
return this._variable.element;
|
|
2428
|
+
}
|
|
2429
|
+
withVariable(variable) {
|
|
2430
|
+
return this.padding.withVariable(this._variable.withElement(variable));
|
|
2431
|
+
}
|
|
2432
|
+
get iterable() {
|
|
2433
|
+
return this._iterable.element;
|
|
2434
|
+
}
|
|
2435
|
+
withIterable(iterable) {
|
|
2436
|
+
return this.padding.withIterable(this._iterable.withElement(iterable));
|
|
2437
|
+
}
|
|
2438
|
+
acceptJavaScript(v, p) {
|
|
2439
|
+
return v.visitJSForInOfLoopControl(this, p);
|
|
2440
|
+
}
|
|
2441
|
+
get padding() {
|
|
2442
|
+
const t = this;
|
|
2443
|
+
return new class {
|
|
2444
|
+
get variable() {
|
|
2445
|
+
return t._variable;
|
|
2446
|
+
}
|
|
2447
|
+
withVariable(variable) {
|
|
2448
|
+
return t._variable === variable ? t : new JSForInOfLoopControl_1(t._id, t._prefix, t._markers, variable, t._iterable);
|
|
2449
|
+
}
|
|
2450
|
+
get iterable() {
|
|
2451
|
+
return t._iterable;
|
|
2452
|
+
}
|
|
2453
|
+
withIterable(iterable) {
|
|
2454
|
+
return t._iterable === iterable ? t : new JSForInOfLoopControl_1(t._id, t._prefix, t._markers, t._variable, iterable);
|
|
2455
|
+
}
|
|
2456
|
+
};
|
|
2457
|
+
}
|
|
2458
|
+
};
|
|
2459
|
+
exports.JSForInOfLoopControl = JSForInOfLoopControl;
|
|
2460
|
+
exports.JSForInOfLoopControl = JSForInOfLoopControl = JSForInOfLoopControl_1 = __decorate([
|
|
2461
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$JSForInOfLoopControl")
|
|
2462
|
+
], JSForInOfLoopControl);
|
|
2259
2463
|
let NamespaceDeclaration = NamespaceDeclaration_1 = class NamespaceDeclaration extends (0, support_types_1.JSMixin)(Object) {
|
|
2260
2464
|
constructor(id, prefix, markers, modifiers, keywordType, name, body) {
|
|
2261
2465
|
super();
|
|
@@ -2434,4 +2638,271 @@ exports.FunctionDeclaration = FunctionDeclaration;
|
|
|
2434
2638
|
exports.FunctionDeclaration = FunctionDeclaration = FunctionDeclaration_1 = __decorate([
|
|
2435
2639
|
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$FunctionDeclaration")
|
|
2436
2640
|
], FunctionDeclaration);
|
|
2641
|
+
let TypeLiteral = TypeLiteral_1 = class TypeLiteral extends (0, support_types_1.JSMixin)(Object) {
|
|
2642
|
+
constructor(id, prefix, markers, members, _type) {
|
|
2643
|
+
super();
|
|
2644
|
+
this._id = id;
|
|
2645
|
+
this._prefix = prefix;
|
|
2646
|
+
this._markers = markers;
|
|
2647
|
+
this._members = members;
|
|
2648
|
+
this._type = _type;
|
|
2649
|
+
}
|
|
2650
|
+
get id() {
|
|
2651
|
+
return this._id;
|
|
2652
|
+
}
|
|
2653
|
+
withId(id) {
|
|
2654
|
+
return id === this._id ? this : new TypeLiteral_1(id, this._prefix, this._markers, this._members, this._type);
|
|
2655
|
+
}
|
|
2656
|
+
get prefix() {
|
|
2657
|
+
return this._prefix;
|
|
2658
|
+
}
|
|
2659
|
+
withPrefix(prefix) {
|
|
2660
|
+
return prefix === this._prefix ? this : new TypeLiteral_1(this._id, prefix, this._markers, this._members, this._type);
|
|
2661
|
+
}
|
|
2662
|
+
get markers() {
|
|
2663
|
+
return this._markers;
|
|
2664
|
+
}
|
|
2665
|
+
withMarkers(markers) {
|
|
2666
|
+
return markers === this._markers ? this : new TypeLiteral_1(this._id, this._prefix, markers, this._members, this._type);
|
|
2667
|
+
}
|
|
2668
|
+
get members() {
|
|
2669
|
+
return this._members;
|
|
2670
|
+
}
|
|
2671
|
+
withMembers(members) {
|
|
2672
|
+
return members === this._members ? this : new TypeLiteral_1(this._id, this._prefix, this._markers, members, this._type);
|
|
2673
|
+
}
|
|
2674
|
+
get type() {
|
|
2675
|
+
return this._type;
|
|
2676
|
+
}
|
|
2677
|
+
withType(_type) {
|
|
2678
|
+
return _type === this._type ? this : new TypeLiteral_1(this._id, this._prefix, this._markers, this._members, _type);
|
|
2679
|
+
}
|
|
2680
|
+
acceptJavaScript(v, p) {
|
|
2681
|
+
return v.visitTypeLiteral(this, p);
|
|
2682
|
+
}
|
|
2683
|
+
};
|
|
2684
|
+
exports.TypeLiteral = TypeLiteral;
|
|
2685
|
+
exports.TypeLiteral = TypeLiteral = TypeLiteral_1 = __decorate([
|
|
2686
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$TypeLiteral")
|
|
2687
|
+
], TypeLiteral);
|
|
2688
|
+
let IndexSignatureDeclaration = IndexSignatureDeclaration_1 = class IndexSignatureDeclaration extends (0, support_types_1.JSMixin)(Object) {
|
|
2689
|
+
constructor(id, prefix, markers, modifiers, parameters, typeExpression, _type) {
|
|
2690
|
+
super();
|
|
2691
|
+
this._id = id;
|
|
2692
|
+
this._prefix = prefix;
|
|
2693
|
+
this._markers = markers;
|
|
2694
|
+
this._modifiers = modifiers;
|
|
2695
|
+
this._parameters = parameters;
|
|
2696
|
+
this._typeExpression = typeExpression;
|
|
2697
|
+
this._type = _type;
|
|
2698
|
+
}
|
|
2699
|
+
get id() {
|
|
2700
|
+
return this._id;
|
|
2701
|
+
}
|
|
2702
|
+
withId(id) {
|
|
2703
|
+
return id === this._id ? this : new IndexSignatureDeclaration_1(id, this._prefix, this._markers, this._modifiers, this._parameters, this._typeExpression, this._type);
|
|
2704
|
+
}
|
|
2705
|
+
get prefix() {
|
|
2706
|
+
return this._prefix;
|
|
2707
|
+
}
|
|
2708
|
+
withPrefix(prefix) {
|
|
2709
|
+
return prefix === this._prefix ? this : new IndexSignatureDeclaration_1(this._id, prefix, this._markers, this._modifiers, this._parameters, this._typeExpression, this._type);
|
|
2710
|
+
}
|
|
2711
|
+
get markers() {
|
|
2712
|
+
return this._markers;
|
|
2713
|
+
}
|
|
2714
|
+
withMarkers(markers) {
|
|
2715
|
+
return markers === this._markers ? this : new IndexSignatureDeclaration_1(this._id, this._prefix, markers, this._modifiers, this._parameters, this._typeExpression, this._type);
|
|
2716
|
+
}
|
|
2717
|
+
get modifiers() {
|
|
2718
|
+
return this._modifiers;
|
|
2719
|
+
}
|
|
2720
|
+
withModifiers(modifiers) {
|
|
2721
|
+
return modifiers === this._modifiers ? this : new IndexSignatureDeclaration_1(this._id, this._prefix, this._markers, modifiers, this._parameters, this._typeExpression, this._type);
|
|
2722
|
+
}
|
|
2723
|
+
get parameters() {
|
|
2724
|
+
return this._parameters.elements;
|
|
2725
|
+
}
|
|
2726
|
+
withParameters(parameters) {
|
|
2727
|
+
return this.padding.withParameters(tree_1.JContainer.withElements(this._parameters, parameters));
|
|
2728
|
+
}
|
|
2729
|
+
get typeExpression() {
|
|
2730
|
+
return this._typeExpression.element;
|
|
2731
|
+
}
|
|
2732
|
+
withTypeExpression(typeExpression) {
|
|
2733
|
+
return this.padding.withTypeExpression(this._typeExpression.withElement(typeExpression));
|
|
2734
|
+
}
|
|
2735
|
+
get type() {
|
|
2736
|
+
return this._type;
|
|
2737
|
+
}
|
|
2738
|
+
withType(_type) {
|
|
2739
|
+
return _type === this._type ? this : new IndexSignatureDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, this._parameters, this._typeExpression, _type);
|
|
2740
|
+
}
|
|
2741
|
+
acceptJavaScript(v, p) {
|
|
2742
|
+
return v.visitIndexSignatureDeclaration(this, p);
|
|
2743
|
+
}
|
|
2744
|
+
get padding() {
|
|
2745
|
+
const t = this;
|
|
2746
|
+
return new class {
|
|
2747
|
+
get parameters() {
|
|
2748
|
+
return t._parameters;
|
|
2749
|
+
}
|
|
2750
|
+
withParameters(parameters) {
|
|
2751
|
+
return t._parameters === parameters ? t : new IndexSignatureDeclaration_1(t._id, t._prefix, t._markers, t._modifiers, parameters, t._typeExpression, t._type);
|
|
2752
|
+
}
|
|
2753
|
+
get typeExpression() {
|
|
2754
|
+
return t._typeExpression;
|
|
2755
|
+
}
|
|
2756
|
+
withTypeExpression(typeExpression) {
|
|
2757
|
+
return t._typeExpression === typeExpression ? t : new IndexSignatureDeclaration_1(t._id, t._prefix, t._markers, t._modifiers, t._parameters, typeExpression, t._type);
|
|
2758
|
+
}
|
|
2759
|
+
};
|
|
2760
|
+
}
|
|
2761
|
+
};
|
|
2762
|
+
exports.IndexSignatureDeclaration = IndexSignatureDeclaration;
|
|
2763
|
+
exports.IndexSignatureDeclaration = IndexSignatureDeclaration = IndexSignatureDeclaration_1 = __decorate([
|
|
2764
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$IndexSignatureDeclaration")
|
|
2765
|
+
], IndexSignatureDeclaration);
|
|
2766
|
+
let ArrayBindingPattern = ArrayBindingPattern_1 = class ArrayBindingPattern extends (0, support_types_1.JSMixin)(Object) {
|
|
2767
|
+
constructor(id, prefix, markers, elements, _type) {
|
|
2768
|
+
super();
|
|
2769
|
+
this._id = id;
|
|
2770
|
+
this._prefix = prefix;
|
|
2771
|
+
this._markers = markers;
|
|
2772
|
+
this._elements = elements;
|
|
2773
|
+
this._type = _type;
|
|
2774
|
+
}
|
|
2775
|
+
get id() {
|
|
2776
|
+
return this._id;
|
|
2777
|
+
}
|
|
2778
|
+
withId(id) {
|
|
2779
|
+
return id === this._id ? this : new ArrayBindingPattern_1(id, this._prefix, this._markers, this._elements, this._type);
|
|
2780
|
+
}
|
|
2781
|
+
get prefix() {
|
|
2782
|
+
return this._prefix;
|
|
2783
|
+
}
|
|
2784
|
+
withPrefix(prefix) {
|
|
2785
|
+
return prefix === this._prefix ? this : new ArrayBindingPattern_1(this._id, prefix, this._markers, this._elements, this._type);
|
|
2786
|
+
}
|
|
2787
|
+
get markers() {
|
|
2788
|
+
return this._markers;
|
|
2789
|
+
}
|
|
2790
|
+
withMarkers(markers) {
|
|
2791
|
+
return markers === this._markers ? this : new ArrayBindingPattern_1(this._id, this._prefix, markers, this._elements, this._type);
|
|
2792
|
+
}
|
|
2793
|
+
get elements() {
|
|
2794
|
+
return this._elements.elements;
|
|
2795
|
+
}
|
|
2796
|
+
withElements(elements) {
|
|
2797
|
+
return this.padding.withElements(tree_1.JContainer.withElements(this._elements, elements));
|
|
2798
|
+
}
|
|
2799
|
+
get type() {
|
|
2800
|
+
return this._type;
|
|
2801
|
+
}
|
|
2802
|
+
withType(_type) {
|
|
2803
|
+
return _type === this._type ? this : new ArrayBindingPattern_1(this._id, this._prefix, this._markers, this._elements, _type);
|
|
2804
|
+
}
|
|
2805
|
+
acceptJavaScript(v, p) {
|
|
2806
|
+
return v.visitArrayBindingPattern(this, p);
|
|
2807
|
+
}
|
|
2808
|
+
get padding() {
|
|
2809
|
+
const t = this;
|
|
2810
|
+
return new class {
|
|
2811
|
+
get elements() {
|
|
2812
|
+
return t._elements;
|
|
2813
|
+
}
|
|
2814
|
+
withElements(elements) {
|
|
2815
|
+
return t._elements === elements ? t : new ArrayBindingPattern_1(t._id, t._prefix, t._markers, elements, t._type);
|
|
2816
|
+
}
|
|
2817
|
+
};
|
|
2818
|
+
}
|
|
2819
|
+
};
|
|
2820
|
+
exports.ArrayBindingPattern = ArrayBindingPattern;
|
|
2821
|
+
exports.ArrayBindingPattern = ArrayBindingPattern = ArrayBindingPattern_1 = __decorate([
|
|
2822
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$ArrayBindingPattern")
|
|
2823
|
+
], ArrayBindingPattern);
|
|
2824
|
+
let BindingElement = BindingElement_1 = class BindingElement extends (0, support_types_1.JSMixin)(Object) {
|
|
2825
|
+
constructor(id, prefix, markers, propertyName, name, initializer, variableType) {
|
|
2826
|
+
super();
|
|
2827
|
+
this._id = id;
|
|
2828
|
+
this._prefix = prefix;
|
|
2829
|
+
this._markers = markers;
|
|
2830
|
+
this._propertyName = propertyName;
|
|
2831
|
+
this._name = name;
|
|
2832
|
+
this._initializer = initializer;
|
|
2833
|
+
this._variableType = variableType;
|
|
2834
|
+
}
|
|
2835
|
+
get id() {
|
|
2836
|
+
return this._id;
|
|
2837
|
+
}
|
|
2838
|
+
withId(id) {
|
|
2839
|
+
return id === this._id ? this : new BindingElement_1(id, this._prefix, this._markers, this._propertyName, this._name, this._initializer, this._variableType);
|
|
2840
|
+
}
|
|
2841
|
+
get prefix() {
|
|
2842
|
+
return this._prefix;
|
|
2843
|
+
}
|
|
2844
|
+
withPrefix(prefix) {
|
|
2845
|
+
return prefix === this._prefix ? this : new BindingElement_1(this._id, prefix, this._markers, this._propertyName, this._name, this._initializer, this._variableType);
|
|
2846
|
+
}
|
|
2847
|
+
get markers() {
|
|
2848
|
+
return this._markers;
|
|
2849
|
+
}
|
|
2850
|
+
withMarkers(markers) {
|
|
2851
|
+
return markers === this._markers ? this : new BindingElement_1(this._id, this._prefix, markers, this._propertyName, this._name, this._initializer, this._variableType);
|
|
2852
|
+
}
|
|
2853
|
+
get propertyName() {
|
|
2854
|
+
return this._propertyName === null ? null : this._propertyName.element;
|
|
2855
|
+
}
|
|
2856
|
+
withPropertyName(propertyName) {
|
|
2857
|
+
return this.padding.withPropertyName(tree_1.JRightPadded.withElement(this._propertyName, propertyName));
|
|
2858
|
+
}
|
|
2859
|
+
get name() {
|
|
2860
|
+
return this._name;
|
|
2861
|
+
}
|
|
2862
|
+
withName(name) {
|
|
2863
|
+
return name === this._name ? this : new BindingElement_1(this._id, this._prefix, this._markers, this._propertyName, name, this._initializer, this._variableType);
|
|
2864
|
+
}
|
|
2865
|
+
get initializer() {
|
|
2866
|
+
return this._initializer === null ? null : this._initializer.element;
|
|
2867
|
+
}
|
|
2868
|
+
withInitializer(initializer) {
|
|
2869
|
+
return this.padding.withInitializer(tree_1.JLeftPadded.withElement(this._initializer, initializer));
|
|
2870
|
+
}
|
|
2871
|
+
get variableType() {
|
|
2872
|
+
return this._variableType;
|
|
2873
|
+
}
|
|
2874
|
+
withVariableType(variableType) {
|
|
2875
|
+
return variableType === this._variableType ? this : new BindingElement_1(this._id, this._prefix, this._markers, this._propertyName, this._name, this._initializer, variableType);
|
|
2876
|
+
}
|
|
2877
|
+
acceptJavaScript(v, p) {
|
|
2878
|
+
return v.visitBindingElement(this, p);
|
|
2879
|
+
}
|
|
2880
|
+
get type() {
|
|
2881
|
+
return extensions.getJavaType(this);
|
|
2882
|
+
}
|
|
2883
|
+
withType(type) {
|
|
2884
|
+
return extensions.withJavaType(this, type);
|
|
2885
|
+
}
|
|
2886
|
+
get padding() {
|
|
2887
|
+
const t = this;
|
|
2888
|
+
return new class {
|
|
2889
|
+
get propertyName() {
|
|
2890
|
+
return t._propertyName;
|
|
2891
|
+
}
|
|
2892
|
+
withPropertyName(propertyName) {
|
|
2893
|
+
return t._propertyName === propertyName ? t : new BindingElement_1(t._id, t._prefix, t._markers, propertyName, t._name, t._initializer, t._variableType);
|
|
2894
|
+
}
|
|
2895
|
+
get initializer() {
|
|
2896
|
+
return t._initializer;
|
|
2897
|
+
}
|
|
2898
|
+
withInitializer(initializer) {
|
|
2899
|
+
return t._initializer === initializer ? t : new BindingElement_1(t._id, t._prefix, t._markers, t._propertyName, t._name, initializer, t._variableType);
|
|
2900
|
+
}
|
|
2901
|
+
};
|
|
2902
|
+
}
|
|
2903
|
+
};
|
|
2904
|
+
exports.BindingElement = BindingElement;
|
|
2905
|
+
exports.BindingElement = BindingElement = BindingElement_1 = __decorate([
|
|
2906
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$BindingElement")
|
|
2907
|
+
], BindingElement);
|
|
2437
2908
|
//# sourceMappingURL=tree.js.map
|