@openrewrite/rewrite 0.22.1 → 0.22.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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, 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;
31
+ var CompilationUnit_1, Alias_1, ArrowFunction_1, Await_1, ConditionalType_1, DefaultType_1, Delete_1, Export_1, ExpressionWithTypeArguments_1, FunctionType_1, JsImport_1, JsImportSpecifier_1, JsBinary_1, ObjectBindingDeclarations_1, PropertyAssignment_1, ScopedVariableDeclarations_1, TaggedTemplateExpression_1, TemplateExpression_1, Tuple_1, TypeDeclaration_1, TypeOf_1, TypeQuery_1, TypeOperator_1, Unary_1, Union_1, Intersection_1, Void_1, Yield_1, TypeInfo_1, JSVariableDeclarations_1, JSMethodDeclaration_1, JSForOfLoop_1, JSForInLoop_1, JSForInOfLoopControl_1, NamespaceDeclaration_1, FunctionDeclaration_1, TypeLiteral_1, IndexSignatureDeclaration_1, ArrayBindingPattern_1, BindingElement_1;
32
32
  Object.defineProperty(exports, "__esModule", { value: true });
33
- exports.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;
33
+ exports.BindingElement = exports.ArrayBindingPattern = exports.IndexSignatureDeclaration = exports.TypeLiteral = exports.FunctionDeclaration = exports.NamespaceDeclaration = exports.JSForInOfLoopControl = exports.JSForInLoop = exports.JSForOfLoop = exports.JSMethodDeclaration = exports.JSVariableDeclarations = exports.TypeInfo = exports.Yield = exports.Void = exports.Intersection = exports.Union = exports.Unary = exports.TypeOperator = exports.TypeQuery = exports.TypeOf = exports.TypeDeclaration = exports.Tuple = exports.TemplateExpression = exports.TaggedTemplateExpression = exports.ScopedVariableDeclarations = exports.PropertyAssignment = exports.ObjectBindingDeclarations = exports.JsBinary = exports.JsImportSpecifier = exports.JsImport = exports.FunctionType = exports.ExpressionWithTypeArguments = exports.Export = exports.Delete = exports.DefaultType = exports.ConditionalType = exports.Await = exports.ArrowFunction = exports.Alias = exports.CompilationUnit = void 0;
34
34
  const extensions = __importStar(require("./extensions"));
35
35
  const support_types_1 = require("./support_types");
36
36
  const core_1 = require("../../core");
@@ -344,6 +344,71 @@ exports.Await = Await;
344
344
  exports.Await = Await = Await_1 = __decorate([
345
345
  (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$Await")
346
346
  ], Await);
347
+ let ConditionalType = ConditionalType_1 = class ConditionalType extends (0, support_types_1.JSMixin)(Object) {
348
+ constructor(id, prefix, markers, checkType, condition, _type) {
349
+ super();
350
+ this._id = id;
351
+ this._prefix = prefix;
352
+ this._markers = markers;
353
+ this._checkType = checkType;
354
+ this._condition = condition;
355
+ this._type = _type;
356
+ }
357
+ get id() {
358
+ return this._id;
359
+ }
360
+ withId(id) {
361
+ return id === this._id ? this : new ConditionalType_1(id, this._prefix, this._markers, this._checkType, this._condition, this._type);
362
+ }
363
+ get prefix() {
364
+ return this._prefix;
365
+ }
366
+ withPrefix(prefix) {
367
+ return prefix === this._prefix ? this : new ConditionalType_1(this._id, prefix, this._markers, this._checkType, this._condition, this._type);
368
+ }
369
+ get markers() {
370
+ return this._markers;
371
+ }
372
+ withMarkers(markers) {
373
+ return markers === this._markers ? this : new ConditionalType_1(this._id, this._prefix, markers, this._checkType, this._condition, this._type);
374
+ }
375
+ get checkType() {
376
+ return this._checkType;
377
+ }
378
+ withCheckType(checkType) {
379
+ return checkType === this._checkType ? this : new ConditionalType_1(this._id, this._prefix, this._markers, checkType, this._condition, this._type);
380
+ }
381
+ get condition() {
382
+ return this._condition.elements;
383
+ }
384
+ withCondition(condition) {
385
+ return this.padding.withCondition(tree_1.JContainer.withElements(this._condition, condition));
386
+ }
387
+ get type() {
388
+ return this._type;
389
+ }
390
+ withType(_type) {
391
+ return _type === this._type ? this : new ConditionalType_1(this._id, this._prefix, this._markers, this._checkType, this._condition, _type);
392
+ }
393
+ acceptJavaScript(v, p) {
394
+ return v.visitConditionalType(this, p);
395
+ }
396
+ get padding() {
397
+ const t = this;
398
+ return new class {
399
+ get condition() {
400
+ return t._condition;
401
+ }
402
+ withCondition(condition) {
403
+ return t._condition === condition ? t : new ConditionalType_1(t._id, t._prefix, t._markers, t._checkType, condition, t._type);
404
+ }
405
+ };
406
+ }
407
+ };
408
+ exports.ConditionalType = ConditionalType;
409
+ exports.ConditionalType = ConditionalType = ConditionalType_1 = __decorate([
410
+ (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$ConditionalType")
411
+ ], ConditionalType);
347
412
  let DefaultType = DefaultType_1 = class DefaultType extends (0, support_types_1.JSMixin)(Object) {
348
413
  constructor(id, prefix, markers, left, beforeEquals, right, _type) {
349
414
  super();
@@ -530,6 +595,71 @@ exports.Export = Export;
530
595
  exports.Export = Export = Export_1 = __decorate([
531
596
  (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$Export")
532
597
  ], Export);
598
+ let ExpressionWithTypeArguments = ExpressionWithTypeArguments_1 = class ExpressionWithTypeArguments extends (0, support_types_1.JSMixin)(Object) {
599
+ constructor(id, prefix, markers, clazz, typeArguments, _type) {
600
+ super();
601
+ this._id = id;
602
+ this._prefix = prefix;
603
+ this._markers = markers;
604
+ this._clazz = clazz;
605
+ this._typeArguments = typeArguments;
606
+ this._type = _type;
607
+ }
608
+ get id() {
609
+ return this._id;
610
+ }
611
+ withId(id) {
612
+ return id === this._id ? this : new ExpressionWithTypeArguments_1(id, this._prefix, this._markers, this._clazz, this._typeArguments, this._type);
613
+ }
614
+ get prefix() {
615
+ return this._prefix;
616
+ }
617
+ withPrefix(prefix) {
618
+ return prefix === this._prefix ? this : new ExpressionWithTypeArguments_1(this._id, prefix, this._markers, this._clazz, this._typeArguments, this._type);
619
+ }
620
+ get markers() {
621
+ return this._markers;
622
+ }
623
+ withMarkers(markers) {
624
+ return markers === this._markers ? this : new ExpressionWithTypeArguments_1(this._id, this._prefix, markers, this._clazz, this._typeArguments, this._type);
625
+ }
626
+ get clazz() {
627
+ return this._clazz;
628
+ }
629
+ withClazz(clazz) {
630
+ return clazz === this._clazz ? this : new ExpressionWithTypeArguments_1(this._id, this._prefix, this._markers, clazz, this._typeArguments, this._type);
631
+ }
632
+ get typeArguments() {
633
+ return this._typeArguments === null ? null : this._typeArguments.elements;
634
+ }
635
+ withTypeArguments(typeArguments) {
636
+ return this.padding.withTypeArguments(tree_1.JContainer.withElementsNullable(this._typeArguments, typeArguments));
637
+ }
638
+ get type() {
639
+ return this._type;
640
+ }
641
+ withType(_type) {
642
+ return _type === this._type ? this : new ExpressionWithTypeArguments_1(this._id, this._prefix, this._markers, this._clazz, this._typeArguments, _type);
643
+ }
644
+ acceptJavaScript(v, p) {
645
+ return v.visitExpressionWithTypeArguments(this, p);
646
+ }
647
+ get padding() {
648
+ const t = this;
649
+ return new class {
650
+ get typeArguments() {
651
+ return t._typeArguments;
652
+ }
653
+ withTypeArguments(typeArguments) {
654
+ return t._typeArguments === typeArguments ? t : new ExpressionWithTypeArguments_1(t._id, t._prefix, t._markers, t._clazz, typeArguments, t._type);
655
+ }
656
+ };
657
+ }
658
+ };
659
+ exports.ExpressionWithTypeArguments = ExpressionWithTypeArguments;
660
+ exports.ExpressionWithTypeArguments = ExpressionWithTypeArguments = ExpressionWithTypeArguments_1 = __decorate([
661
+ (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$ExpressionWithTypeArguments")
662
+ ], ExpressionWithTypeArguments);
533
663
  let FunctionType = FunctionType_1 = class FunctionType extends (0, support_types_1.JSMixin)(Object) {
534
664
  constructor(id, prefix, markers, constructorType, parameters, arrow, returnType, _type) {
535
665
  super();
@@ -1100,40 +1230,34 @@ exports.ScopedVariableDeclarations = ScopedVariableDeclarations = ScopedVariable
1100
1230
  Scope[Scope["Var"] = 2] = "Var";
1101
1231
  })(Scope = ScopedVariableDeclarations.Scope || (ScopedVariableDeclarations.Scope = {}));
1102
1232
  })(ScopedVariableDeclarations || (exports.ScopedVariableDeclarations = ScopedVariableDeclarations = {}));
1103
- let TemplateExpression = TemplateExpression_1 = class TemplateExpression extends (0, support_types_1.JSMixin)(Object) {
1104
- constructor(id, prefix, markers, delimiter, tag, strings, _type) {
1233
+ let TaggedTemplateExpression = TaggedTemplateExpression_1 = class TaggedTemplateExpression extends (0, support_types_1.JSMixin)(Object) {
1234
+ constructor(id, prefix, markers, tag, typeArguments, templateExpression, _type) {
1105
1235
  super();
1106
1236
  this._id = id;
1107
1237
  this._prefix = prefix;
1108
1238
  this._markers = markers;
1109
- this._delimiter = delimiter;
1110
1239
  this._tag = tag;
1111
- this._strings = strings;
1240
+ this._typeArguments = typeArguments;
1241
+ this._templateExpression = templateExpression;
1112
1242
  this._type = _type;
1113
1243
  }
1114
1244
  get id() {
1115
1245
  return this._id;
1116
1246
  }
1117
1247
  withId(id) {
1118
- return id === this._id ? this : new TemplateExpression_1(id, this._prefix, this._markers, this._delimiter, this._tag, this._strings, this._type);
1248
+ return id === this._id ? this : new TaggedTemplateExpression_1(id, this._prefix, this._markers, this._tag, this._typeArguments, this._templateExpression, this._type);
1119
1249
  }
1120
1250
  get prefix() {
1121
1251
  return this._prefix;
1122
1252
  }
1123
1253
  withPrefix(prefix) {
1124
- return prefix === this._prefix ? this : new TemplateExpression_1(this._id, prefix, this._markers, this._delimiter, this._tag, this._strings, this._type);
1254
+ return prefix === this._prefix ? this : new TaggedTemplateExpression_1(this._id, prefix, this._markers, this._tag, this._typeArguments, this._templateExpression, this._type);
1125
1255
  }
1126
1256
  get markers() {
1127
1257
  return this._markers;
1128
1258
  }
1129
1259
  withMarkers(markers) {
1130
- return markers === this._markers ? this : new TemplateExpression_1(this._id, this._prefix, markers, this._delimiter, this._tag, this._strings, this._type);
1131
- }
1132
- get delimiter() {
1133
- return this._delimiter;
1134
- }
1135
- withDelimiter(delimiter) {
1136
- return delimiter === this._delimiter ? this : new TemplateExpression_1(this._id, this._prefix, this._markers, delimiter, this._tag, this._strings, this._type);
1260
+ return markers === this._markers ? this : new TaggedTemplateExpression_1(this._id, this._prefix, markers, this._tag, this._typeArguments, this._templateExpression, this._type);
1137
1261
  }
1138
1262
  get tag() {
1139
1263
  return this._tag === null ? null : this._tag.element;
@@ -1141,20 +1265,26 @@ let TemplateExpression = TemplateExpression_1 = class TemplateExpression extends
1141
1265
  withTag(tag) {
1142
1266
  return this.padding.withTag(tree_1.JRightPadded.withElement(this._tag, tag));
1143
1267
  }
1144
- get strings() {
1145
- return this._strings;
1268
+ get typeArguments() {
1269
+ return this._typeArguments === null ? null : this._typeArguments.elements;
1146
1270
  }
1147
- withStrings(strings) {
1148
- return strings === this._strings ? this : new TemplateExpression_1(this._id, this._prefix, this._markers, this._delimiter, this._tag, strings, this._type);
1271
+ withTypeArguments(typeArguments) {
1272
+ return this.padding.withTypeArguments(tree_1.JContainer.withElementsNullable(this._typeArguments, typeArguments));
1273
+ }
1274
+ get templateExpression() {
1275
+ return this._templateExpression;
1276
+ }
1277
+ withTemplateExpression(templateExpression) {
1278
+ return templateExpression === this._templateExpression ? this : new TaggedTemplateExpression_1(this._id, this._prefix, this._markers, this._tag, this._typeArguments, templateExpression, this._type);
1149
1279
  }
1150
1280
  get type() {
1151
1281
  return this._type;
1152
1282
  }
1153
1283
  withType(_type) {
1154
- return _type === this._type ? this : new TemplateExpression_1(this._id, this._prefix, this._markers, this._delimiter, this._tag, this._strings, _type);
1284
+ return _type === this._type ? this : new TaggedTemplateExpression_1(this._id, this._prefix, this._markers, this._tag, this._typeArguments, this._templateExpression, _type);
1155
1285
  }
1156
1286
  acceptJavaScript(v, p) {
1157
- return v.visitTemplateExpression(this, p);
1287
+ return v.visitTaggedTemplateExpression(this, p);
1158
1288
  }
1159
1289
  get padding() {
1160
1290
  const t = this;
@@ -1163,7 +1293,78 @@ let TemplateExpression = TemplateExpression_1 = class TemplateExpression extends
1163
1293
  return t._tag;
1164
1294
  }
1165
1295
  withTag(tag) {
1166
- return t._tag === tag ? t : new TemplateExpression_1(t._id, t._prefix, t._markers, t._delimiter, tag, t._strings, t._type);
1296
+ return t._tag === tag ? t : new TaggedTemplateExpression_1(t._id, t._prefix, t._markers, tag, t._typeArguments, t._templateExpression, t._type);
1297
+ }
1298
+ get typeArguments() {
1299
+ return t._typeArguments;
1300
+ }
1301
+ withTypeArguments(typeArguments) {
1302
+ return t._typeArguments === typeArguments ? t : new TaggedTemplateExpression_1(t._id, t._prefix, t._markers, t._tag, typeArguments, t._templateExpression, t._type);
1303
+ }
1304
+ };
1305
+ }
1306
+ };
1307
+ exports.TaggedTemplateExpression = TaggedTemplateExpression;
1308
+ exports.TaggedTemplateExpression = TaggedTemplateExpression = TaggedTemplateExpression_1 = __decorate([
1309
+ (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$TaggedTemplateExpression")
1310
+ ], TaggedTemplateExpression);
1311
+ let TemplateExpression = TemplateExpression_1 = class TemplateExpression extends (0, support_types_1.JSMixin)(Object) {
1312
+ constructor(id, prefix, markers, head, templateSpans, _type) {
1313
+ super();
1314
+ this._id = id;
1315
+ this._prefix = prefix;
1316
+ this._markers = markers;
1317
+ this._head = head;
1318
+ this._templateSpans = templateSpans;
1319
+ this._type = _type;
1320
+ }
1321
+ get id() {
1322
+ return this._id;
1323
+ }
1324
+ withId(id) {
1325
+ return id === this._id ? this : new TemplateExpression_1(id, this._prefix, this._markers, this._head, this._templateSpans, this._type);
1326
+ }
1327
+ get prefix() {
1328
+ return this._prefix;
1329
+ }
1330
+ withPrefix(prefix) {
1331
+ return prefix === this._prefix ? this : new TemplateExpression_1(this._id, prefix, this._markers, this._head, this._templateSpans, this._type);
1332
+ }
1333
+ get markers() {
1334
+ return this._markers;
1335
+ }
1336
+ withMarkers(markers) {
1337
+ return markers === this._markers ? this : new TemplateExpression_1(this._id, this._prefix, markers, this._head, this._templateSpans, this._type);
1338
+ }
1339
+ get head() {
1340
+ return this._head;
1341
+ }
1342
+ withHead(head) {
1343
+ return head === this._head ? this : new TemplateExpression_1(this._id, this._prefix, this._markers, head, this._templateSpans, this._type);
1344
+ }
1345
+ get templateSpans() {
1346
+ return tree_1.JRightPadded.getElements(this._templateSpans);
1347
+ }
1348
+ withTemplateSpans(templateSpans) {
1349
+ return this.padding.withTemplateSpans(tree_1.JRightPadded.withElements(this._templateSpans, templateSpans));
1350
+ }
1351
+ get type() {
1352
+ return this._type;
1353
+ }
1354
+ withType(_type) {
1355
+ return _type === this._type ? this : new TemplateExpression_1(this._id, this._prefix, this._markers, this._head, this._templateSpans, _type);
1356
+ }
1357
+ acceptJavaScript(v, p) {
1358
+ return v.visitTemplateExpression(this, p);
1359
+ }
1360
+ get padding() {
1361
+ const t = this;
1362
+ return new class {
1363
+ get templateSpans() {
1364
+ return t._templateSpans;
1365
+ }
1366
+ withTemplateSpans(templateSpans) {
1367
+ return t._templateSpans === templateSpans ? t : new TemplateExpression_1(t._id, t._prefix, t._markers, t._head, templateSpans, t._type);
1167
1368
  }
1168
1369
  };
1169
1370
  }
@@ -1173,60 +1374,53 @@ exports.TemplateExpression = TemplateExpression = TemplateExpression_1 = __decor
1173
1374
  (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$TemplateExpression")
1174
1375
  ], TemplateExpression);
1175
1376
  (function (TemplateExpression) {
1176
- let Value = class Value extends (0, support_types_1.JSMixin)(Object) {
1177
- constructor(id, prefix, markers, tree, after, enclosedInBraces) {
1377
+ let TemplateSpan = class TemplateSpan extends (0, support_types_1.JSMixin)(Object) {
1378
+ constructor(id, prefix, markers, expression, tail) {
1178
1379
  super();
1179
1380
  this._id = id;
1180
1381
  this._prefix = prefix;
1181
1382
  this._markers = markers;
1182
- this._tree = tree;
1183
- this._after = after;
1184
- this._enclosedInBraces = enclosedInBraces;
1383
+ this._expression = expression;
1384
+ this._tail = tail;
1185
1385
  }
1186
1386
  get id() {
1187
1387
  return this._id;
1188
1388
  }
1189
1389
  withId(id) {
1190
- return id === this._id ? this : new TemplateExpression.Value(id, this._prefix, this._markers, this._tree, this._after, this._enclosedInBraces);
1390
+ return id === this._id ? this : new TemplateExpression.TemplateSpan(id, this._prefix, this._markers, this._expression, this._tail);
1191
1391
  }
1192
1392
  get prefix() {
1193
1393
  return this._prefix;
1194
1394
  }
1195
1395
  withPrefix(prefix) {
1196
- return prefix === this._prefix ? this : new TemplateExpression.Value(this._id, prefix, this._markers, this._tree, this._after, this._enclosedInBraces);
1396
+ return prefix === this._prefix ? this : new TemplateExpression.TemplateSpan(this._id, prefix, this._markers, this._expression, this._tail);
1197
1397
  }
1198
1398
  get markers() {
1199
1399
  return this._markers;
1200
1400
  }
1201
1401
  withMarkers(markers) {
1202
- return markers === this._markers ? this : new TemplateExpression.Value(this._id, this._prefix, markers, this._tree, this._after, this._enclosedInBraces);
1402
+ return markers === this._markers ? this : new TemplateExpression.TemplateSpan(this._id, this._prefix, markers, this._expression, this._tail);
1203
1403
  }
1204
- get tree() {
1205
- return this._tree;
1404
+ get expression() {
1405
+ return this._expression;
1206
1406
  }
1207
- withTree(tree) {
1208
- return tree === this._tree ? this : new TemplateExpression.Value(this._id, this._prefix, this._markers, tree, this._after, this._enclosedInBraces);
1407
+ withExpression(expression) {
1408
+ return expression === this._expression ? this : new TemplateExpression.TemplateSpan(this._id, this._prefix, this._markers, expression, this._tail);
1209
1409
  }
1210
- get after() {
1211
- return this._after;
1410
+ get tail() {
1411
+ return this._tail;
1212
1412
  }
1213
- withAfter(after) {
1214
- return after === this._after ? this : new TemplateExpression.Value(this._id, this._prefix, this._markers, this._tree, after, this._enclosedInBraces);
1215
- }
1216
- get enclosedInBraces() {
1217
- return this._enclosedInBraces;
1218
- }
1219
- withEnclosedInBraces(enclosedInBraces) {
1220
- return enclosedInBraces === this._enclosedInBraces ? this : new TemplateExpression.Value(this._id, this._prefix, this._markers, this._tree, this._after, enclosedInBraces);
1413
+ withTail(tail) {
1414
+ return tail === this._tail ? this : new TemplateExpression.TemplateSpan(this._id, this._prefix, this._markers, this._expression, tail);
1221
1415
  }
1222
1416
  acceptJavaScript(v, p) {
1223
- return v.visitTemplateExpressionValue(this, p);
1417
+ return v.visitTemplateExpressionTemplateSpan(this, p);
1224
1418
  }
1225
1419
  };
1226
- Value = __decorate([
1227
- (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$TemplateExpression$Value")
1228
- ], Value);
1229
- TemplateExpression.Value = Value;
1420
+ TemplateSpan = __decorate([
1421
+ (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$TemplateExpression$TemplateSpan")
1422
+ ], TemplateSpan);
1423
+ TemplateExpression.TemplateSpan = TemplateSpan;
1230
1424
  })(TemplateExpression || (exports.TemplateExpression = TemplateExpression = {}));
1231
1425
  let Tuple = Tuple_1 = class Tuple extends (0, support_types_1.JSMixin)(Object) {
1232
1426
  constructor(id, prefix, markers, elements, _type) {
@@ -1323,10 +1517,10 @@ let TypeDeclaration = TypeDeclaration_1 = class TypeDeclaration extends (0, supp
1323
1517
  return modifiers === this._modifiers ? this : new TypeDeclaration_1(this._id, this._prefix, this._markers, modifiers, this._name, this._typeParameters, this._initializer, this._type);
1324
1518
  }
1325
1519
  get name() {
1326
- return this._name;
1520
+ return this._name.element;
1327
1521
  }
1328
1522
  withName(name) {
1329
- return name === this._name ? this : new TypeDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, name, this._typeParameters, this._initializer, this._type);
1523
+ return this.padding.withName(this._name.withElement(name));
1330
1524
  }
1331
1525
  get typeParameters() {
1332
1526
  return this._typeParameters;
@@ -1352,6 +1546,12 @@ let TypeDeclaration = TypeDeclaration_1 = class TypeDeclaration extends (0, supp
1352
1546
  get padding() {
1353
1547
  const t = this;
1354
1548
  return new class {
1549
+ get name() {
1550
+ return t._name;
1551
+ }
1552
+ withName(name) {
1553
+ return t._name === name ? t : new TypeDeclaration_1(t._id, t._prefix, t._markers, t._modifiers, name, t._typeParameters, t._initializer, t._type);
1554
+ }
1355
1555
  get initializer() {
1356
1556
  return t._initializer;
1357
1557
  }
@@ -2170,103 +2370,6 @@ exports.JSMethodDeclaration = JSMethodDeclaration;
2170
2370
  exports.JSMethodDeclaration = JSMethodDeclaration = JSMethodDeclaration_1 = __decorate([
2171
2371
  (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$JSMethodDeclaration")
2172
2372
  ], JSMethodDeclaration);
2173
- let JSMethodInvocation = JSMethodInvocation_1 = class JSMethodInvocation extends (0, support_types_1.JSMixin)(Object) {
2174
- constructor(id, prefix, markers, select, typeParameters, name, _arguments, methodType) {
2175
- super();
2176
- this._id = id;
2177
- this._prefix = prefix;
2178
- this._markers = markers;
2179
- this._select = select;
2180
- this._typeParameters = typeParameters;
2181
- this._name = name;
2182
- this._arguments = _arguments;
2183
- this._methodType = methodType;
2184
- }
2185
- get id() {
2186
- return this._id;
2187
- }
2188
- withId(id) {
2189
- return id === this._id ? this : new JSMethodInvocation_1(id, this._prefix, this._markers, this._select, this._typeParameters, this._name, this._arguments, this._methodType);
2190
- }
2191
- get prefix() {
2192
- return this._prefix;
2193
- }
2194
- withPrefix(prefix) {
2195
- return prefix === this._prefix ? this : new JSMethodInvocation_1(this._id, prefix, this._markers, this._select, this._typeParameters, this._name, this._arguments, this._methodType);
2196
- }
2197
- get markers() {
2198
- return this._markers;
2199
- }
2200
- withMarkers(markers) {
2201
- return markers === this._markers ? this : new JSMethodInvocation_1(this._id, this._prefix, markers, this._select, this._typeParameters, this._name, this._arguments, this._methodType);
2202
- }
2203
- get select() {
2204
- return this._select === null ? null : this._select.element;
2205
- }
2206
- withSelect(select) {
2207
- return this.padding.withSelect(tree_1.JRightPadded.withElement(this._select, select));
2208
- }
2209
- get typeParameters() {
2210
- return this._typeParameters === null ? null : this._typeParameters.elements;
2211
- }
2212
- withTypeParameters(typeParameters) {
2213
- return this.padding.withTypeParameters(tree_1.JContainer.withElementsNullable(this._typeParameters, typeParameters));
2214
- }
2215
- get name() {
2216
- return this._name;
2217
- }
2218
- withName(name) {
2219
- return name === this._name ? this : new JSMethodInvocation_1(this._id, this._prefix, this._markers, this._select, this._typeParameters, name, this._arguments, this._methodType);
2220
- }
2221
- get arguments() {
2222
- return this._arguments.elements;
2223
- }
2224
- withArguments(_arguments) {
2225
- return this.padding.withArguments(tree_1.JContainer.withElements(this._arguments, _arguments));
2226
- }
2227
- get methodType() {
2228
- return this._methodType;
2229
- }
2230
- withMethodType(methodType) {
2231
- return methodType === this._methodType ? this : new JSMethodInvocation_1(this._id, this._prefix, this._markers, this._select, this._typeParameters, this._name, this._arguments, methodType);
2232
- }
2233
- acceptJavaScript(v, p) {
2234
- return v.visitJSMethodInvocation(this, p);
2235
- }
2236
- get type() {
2237
- return extensions.getJavaType(this);
2238
- }
2239
- withType(type) {
2240
- return extensions.withJavaType(this, type);
2241
- }
2242
- get padding() {
2243
- const t = this;
2244
- return new class {
2245
- get select() {
2246
- return t._select;
2247
- }
2248
- withSelect(select) {
2249
- return t._select === select ? t : new JSMethodInvocation_1(t._id, t._prefix, t._markers, select, t._typeParameters, t._name, t._arguments, t._methodType);
2250
- }
2251
- get typeParameters() {
2252
- return t._typeParameters;
2253
- }
2254
- withTypeParameters(typeParameters) {
2255
- return t._typeParameters === typeParameters ? t : new JSMethodInvocation_1(t._id, t._prefix, t._markers, t._select, typeParameters, t._name, t._arguments, t._methodType);
2256
- }
2257
- get arguments() {
2258
- return t._arguments;
2259
- }
2260
- withArguments(_arguments) {
2261
- return t._arguments === _arguments ? t : new JSMethodInvocation_1(t._id, t._prefix, t._markers, t._select, t._typeParameters, t._name, _arguments, t._methodType);
2262
- }
2263
- };
2264
- }
2265
- };
2266
- exports.JSMethodInvocation = JSMethodInvocation;
2267
- exports.JSMethodInvocation = JSMethodInvocation = JSMethodInvocation_1 = __decorate([
2268
- (0, core_1.LstType)("org.openrewrite.javascript.tree.JS$JSMethodInvocation")
2269
- ], JSMethodInvocation);
2270
2373
  let JSForOfLoop = JSForOfLoop_1 = class JSForOfLoop extends (0, support_types_1.JSMixin)(Object) {
2271
2374
  constructor(id, prefix, markers, await, control, body) {
2272
2375
  super();