@openrewrite/rewrite 0.28.1 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/java/remote/receiver.d.ts.map +1 -1
- package/dist/src/java/remote/receiver.js +13 -2
- package/dist/src/java/remote/receiver.js.map +1 -1
- package/dist/src/java/remote/sender.d.ts.map +1 -1
- package/dist/src/java/remote/sender.js +9 -1
- package/dist/src/java/remote/sender.js.map +1 -1
- package/dist/src/java/tree/support_types.d.ts +1 -1
- package/dist/src/java/tree/support_types.d.ts.map +1 -1
- package/dist/src/java/tree/support_types.js +1 -1
- package/dist/src/java/tree/support_types.js.map +1 -1
- package/dist/src/java/tree/tree.d.ts +48 -6
- package/dist/src/java/tree/tree.d.ts.map +1 -1
- package/dist/src/java/tree/tree.js +71 -18
- package/dist/src/java/tree/tree.js.map +1 -1
- package/dist/src/java/visitor.d.ts +2 -1
- package/dist/src/java/visitor.d.ts.map +1 -1
- package/dist/src/java/visitor.js +17 -1
- package/dist/src/java/visitor.js.map +1 -1
- package/dist/src/javascript/parser.d.ts +1 -1
- package/dist/src/javascript/parser.d.ts.map +1 -1
- package/dist/src/javascript/parser.js +18 -8
- 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 +29 -5
- 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 +20 -2
- package/dist/src/javascript/remote/sender.js.map +1 -1
- package/dist/src/javascript/tree/support_types.d.ts +8 -3
- package/dist/src/javascript/tree/support_types.d.ts.map +1 -1
- package/dist/src/javascript/tree/support_types.js +5 -0
- package/dist/src/javascript/tree/support_types.js.map +1 -1
- package/dist/src/javascript/tree/tree.d.ts +61 -5
- package/dist/src/javascript/tree/tree.d.ts.map +1 -1
- package/dist/src/javascript/tree/tree.js +108 -24
- package/dist/src/javascript/tree/tree.js.map +1 -1
- package/dist/src/javascript/visitor.d.ts +2 -1
- package/dist/src/javascript/visitor.d.ts.map +1 -1
- package/dist/src/javascript/visitor.js +10 -1
- package/dist/src/javascript/visitor.js.map +1 -1
- package/package.json +1 -1
|
@@ -38,10 +38,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
return result;
|
|
39
39
|
};
|
|
40
40
|
})();
|
|
41
|
-
var CompilationUnit_1, Alias_1, ArrowFunction_1, Await_1, ConditionalType_1, DefaultType_1, Delete_1, Export_1, TrailingTokenStatement_1, ExpressionWithTypeArguments_1, FunctionType_1, InferType_1, ImportType_1, JsImport_1, JsImportClause_1, NamedImports_1, JsImportSpecifier_1, ImportAttributes_1, ImportAttribute_1, JsBinary_1, LiteralType_1, MappedType_1, ObjectBindingDeclarations_1, PropertyAssignment_1, SatisfiesExpression_1, ScopedVariableDeclarations_1, WithStatement_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, JSTry_1, NamespaceDeclaration_1, FunctionDeclaration_1, TypeLiteral_1, IndexSignatureDeclaration_1, ArrayBindingPattern_1, BindingElement_1, ExportDeclaration_1, ExportAssignment_1, NamedExports_1, ExportSpecifier_1, IndexedAccessType_1, JsAssignmentOperation_1, TypeTreeExpression_1;
|
|
41
|
+
var CompilationUnit_1, Alias_1, ArrowFunction_1, Await_1, ConditionalType_1, DefaultType_1, Delete_1, Export_1, TrailingTokenStatement_1, ExpressionWithTypeArguments_1, FunctionType_1, InferType_1, ImportType_1, JsImport_1, JsImportClause_1, NamedImports_1, JsImportSpecifier_1, ImportAttributes_1, ImportTypeAttributes_1, ImportAttribute_1, JsBinary_1, LiteralType_1, MappedType_1, ObjectBindingDeclarations_1, PropertyAssignment_1, SatisfiesExpression_1, ScopedVariableDeclarations_1, WithStatement_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, JSTry_1, NamespaceDeclaration_1, FunctionDeclaration_1, TypeLiteral_1, IndexSignatureDeclaration_1, ArrayBindingPattern_1, BindingElement_1, ExportDeclaration_1, ExportAssignment_1, NamedExports_1, ExportSpecifier_1, IndexedAccessType_1, JsAssignmentOperation_1, TypeTreeExpression_1;
|
|
42
42
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
-
exports.
|
|
44
|
-
exports.TypeTreeExpression = exports.JsAssignmentOperation = exports.IndexedAccessType = exports.ExportSpecifier = exports.NamedExports = exports.ExportAssignment = exports.ExportDeclaration = exports.BindingElement = exports.ArrayBindingPattern = exports.IndexSignatureDeclaration = void 0;
|
|
43
|
+
exports.FunctionDeclaration = exports.NamespaceDeclaration = exports.JSTry = 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.WithStatement = exports.ScopedVariableDeclarations = exports.SatisfiesExpression = exports.PropertyAssignment = exports.ObjectBindingDeclarations = exports.MappedType = exports.LiteralType = exports.JsBinary = exports.ImportAttribute = exports.ImportTypeAttributes = exports.ImportAttributes = exports.JsImportSpecifier = exports.NamedImports = exports.JsImportClause = exports.JsImport = exports.ImportType = exports.InferType = exports.FunctionType = exports.ExpressionWithTypeArguments = exports.TrailingTokenStatement = exports.Export = exports.Delete = exports.DefaultType = exports.ConditionalType = exports.Await = exports.ArrowFunction = exports.Alias = exports.CompilationUnit = void 0;
|
|
44
|
+
exports.TypeTreeExpression = exports.JsAssignmentOperation = exports.IndexedAccessType = exports.ExportSpecifier = exports.NamedExports = exports.ExportAssignment = exports.ExportDeclaration = exports.BindingElement = exports.ArrayBindingPattern = exports.IndexSignatureDeclaration = exports.TypeLiteral = void 0;
|
|
45
45
|
const extensions = __importStar(require("./extensions"));
|
|
46
46
|
const support_types_1 = require("./support_types");
|
|
47
47
|
const core_1 = require("../../core");
|
|
@@ -891,13 +891,13 @@ exports.InferType = InferType = InferType_1 = __decorate([
|
|
|
891
891
|
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$InferType")
|
|
892
892
|
], InferType);
|
|
893
893
|
let ImportType = ImportType_1 = class ImportType extends (0, support_types_1.JSMixin)(Object) {
|
|
894
|
-
constructor(id, prefix, markers, hasTypeof,
|
|
894
|
+
constructor(id, prefix, markers, hasTypeof, argumentAndAttributes, qualifier, typeArguments, _type) {
|
|
895
895
|
super();
|
|
896
896
|
this._id = id;
|
|
897
897
|
this._prefix = prefix;
|
|
898
898
|
this._markers = markers;
|
|
899
899
|
this._hasTypeof = hasTypeof;
|
|
900
|
-
this.
|
|
900
|
+
this._argumentAndAttributes = argumentAndAttributes;
|
|
901
901
|
this._qualifier = qualifier;
|
|
902
902
|
this._typeArguments = typeArguments;
|
|
903
903
|
this._type = _type;
|
|
@@ -906,19 +906,19 @@ let ImportType = ImportType_1 = class ImportType extends (0, support_types_1.JSM
|
|
|
906
906
|
return this._id;
|
|
907
907
|
}
|
|
908
908
|
withId(id) {
|
|
909
|
-
return id === this._id ? this : new ImportType_1(id, this._prefix, this._markers, this._hasTypeof, this.
|
|
909
|
+
return id === this._id ? this : new ImportType_1(id, this._prefix, this._markers, this._hasTypeof, this._argumentAndAttributes, this._qualifier, this._typeArguments, this._type);
|
|
910
910
|
}
|
|
911
911
|
get prefix() {
|
|
912
912
|
return this._prefix;
|
|
913
913
|
}
|
|
914
914
|
withPrefix(prefix) {
|
|
915
|
-
return prefix === this._prefix ? this : new ImportType_1(this._id, prefix, this._markers, this._hasTypeof, this.
|
|
915
|
+
return prefix === this._prefix ? this : new ImportType_1(this._id, prefix, this._markers, this._hasTypeof, this._argumentAndAttributes, this._qualifier, this._typeArguments, this._type);
|
|
916
916
|
}
|
|
917
917
|
get markers() {
|
|
918
918
|
return this._markers;
|
|
919
919
|
}
|
|
920
920
|
withMarkers(markers) {
|
|
921
|
-
return markers === this._markers ? this : new ImportType_1(this._id, this._prefix, markers, this._hasTypeof, this.
|
|
921
|
+
return markers === this._markers ? this : new ImportType_1(this._id, this._prefix, markers, this._hasTypeof, this._argumentAndAttributes, this._qualifier, this._typeArguments, this._type);
|
|
922
922
|
}
|
|
923
923
|
get hasTypeof() {
|
|
924
924
|
return this._hasTypeof.element;
|
|
@@ -926,11 +926,11 @@ let ImportType = ImportType_1 = class ImportType extends (0, support_types_1.JSM
|
|
|
926
926
|
withHasTypeof(hasTypeof) {
|
|
927
927
|
return this.padding.withHasTypeof(this._hasTypeof.withElement(hasTypeof));
|
|
928
928
|
}
|
|
929
|
-
get
|
|
930
|
-
return this.
|
|
929
|
+
get argumentAndAttributes() {
|
|
930
|
+
return this._argumentAndAttributes.elements;
|
|
931
931
|
}
|
|
932
|
-
|
|
933
|
-
return
|
|
932
|
+
withArgumentAndAttributes(argumentAndAttributes) {
|
|
933
|
+
return this.padding.withArgumentAndAttributes(tree_1.JContainer.withElements(this._argumentAndAttributes, argumentAndAttributes));
|
|
934
934
|
}
|
|
935
935
|
get qualifier() {
|
|
936
936
|
return this._qualifier === null ? null : this._qualifier.element;
|
|
@@ -948,7 +948,7 @@ let ImportType = ImportType_1 = class ImportType extends (0, support_types_1.JSM
|
|
|
948
948
|
return this._type;
|
|
949
949
|
}
|
|
950
950
|
withType(_type) {
|
|
951
|
-
return _type === this._type ? this : new ImportType_1(this._id, this._prefix, this._markers, this._hasTypeof, this.
|
|
951
|
+
return _type === this._type ? this : new ImportType_1(this._id, this._prefix, this._markers, this._hasTypeof, this._argumentAndAttributes, this._qualifier, this._typeArguments, _type);
|
|
952
952
|
}
|
|
953
953
|
acceptJavaScript(v, p) {
|
|
954
954
|
return v.visitImportType(this, p);
|
|
@@ -960,19 +960,25 @@ let ImportType = ImportType_1 = class ImportType extends (0, support_types_1.JSM
|
|
|
960
960
|
return t._hasTypeof;
|
|
961
961
|
}
|
|
962
962
|
withHasTypeof(hasTypeof) {
|
|
963
|
-
return t._hasTypeof === hasTypeof ? t : new ImportType_1(t._id, t._prefix, t._markers, hasTypeof, t.
|
|
963
|
+
return t._hasTypeof === hasTypeof ? t : new ImportType_1(t._id, t._prefix, t._markers, hasTypeof, t._argumentAndAttributes, t._qualifier, t._typeArguments, t._type);
|
|
964
|
+
}
|
|
965
|
+
get argumentAndAttributes() {
|
|
966
|
+
return t._argumentAndAttributes;
|
|
967
|
+
}
|
|
968
|
+
withArgumentAndAttributes(argumentAndAttributes) {
|
|
969
|
+
return t._argumentAndAttributes === argumentAndAttributes ? t : new ImportType_1(t._id, t._prefix, t._markers, t._hasTypeof, argumentAndAttributes, t._qualifier, t._typeArguments, t._type);
|
|
964
970
|
}
|
|
965
971
|
get qualifier() {
|
|
966
972
|
return t._qualifier;
|
|
967
973
|
}
|
|
968
974
|
withQualifier(qualifier) {
|
|
969
|
-
return t._qualifier === qualifier ? t : new ImportType_1(t._id, t._prefix, t._markers, t._hasTypeof, t.
|
|
975
|
+
return t._qualifier === qualifier ? t : new ImportType_1(t._id, t._prefix, t._markers, t._hasTypeof, t._argumentAndAttributes, qualifier, t._typeArguments, t._type);
|
|
970
976
|
}
|
|
971
977
|
get typeArguments() {
|
|
972
978
|
return t._typeArguments;
|
|
973
979
|
}
|
|
974
980
|
withTypeArguments(typeArguments) {
|
|
975
|
-
return t._typeArguments === typeArguments ? t : new ImportType_1(t._id, t._prefix, t._markers, t._hasTypeof, t.
|
|
981
|
+
return t._typeArguments === typeArguments ? t : new ImportType_1(t._id, t._prefix, t._markers, t._hasTypeof, t._argumentAndAttributes, t._qualifier, typeArguments, t._type);
|
|
976
982
|
}
|
|
977
983
|
};
|
|
978
984
|
}
|
|
@@ -1306,6 +1312,77 @@ exports.ImportAttributes = ImportAttributes = ImportAttributes_1 = __decorate([
|
|
|
1306
1312
|
Token[Token["Assert"] = 1] = "Assert";
|
|
1307
1313
|
})(Token = ImportAttributes.Token || (ImportAttributes.Token = {}));
|
|
1308
1314
|
})(ImportAttributes || (exports.ImportAttributes = ImportAttributes = {}));
|
|
1315
|
+
let ImportTypeAttributes = ImportTypeAttributes_1 = class ImportTypeAttributes extends (0, support_types_1.JSMixin)(Object) {
|
|
1316
|
+
constructor(id, prefix, markers, token, elements, end) {
|
|
1317
|
+
super();
|
|
1318
|
+
this._id = id;
|
|
1319
|
+
this._prefix = prefix;
|
|
1320
|
+
this._markers = markers;
|
|
1321
|
+
this._token = token;
|
|
1322
|
+
this._elements = elements;
|
|
1323
|
+
this._end = end;
|
|
1324
|
+
}
|
|
1325
|
+
get id() {
|
|
1326
|
+
return this._id;
|
|
1327
|
+
}
|
|
1328
|
+
withId(id) {
|
|
1329
|
+
return id === this._id ? this : new ImportTypeAttributes_1(id, this._prefix, this._markers, this._token, this._elements, this._end);
|
|
1330
|
+
}
|
|
1331
|
+
get prefix() {
|
|
1332
|
+
return this._prefix;
|
|
1333
|
+
}
|
|
1334
|
+
withPrefix(prefix) {
|
|
1335
|
+
return prefix === this._prefix ? this : new ImportTypeAttributes_1(this._id, prefix, this._markers, this._token, this._elements, this._end);
|
|
1336
|
+
}
|
|
1337
|
+
get markers() {
|
|
1338
|
+
return this._markers;
|
|
1339
|
+
}
|
|
1340
|
+
withMarkers(markers) {
|
|
1341
|
+
return markers === this._markers ? this : new ImportTypeAttributes_1(this._id, this._prefix, markers, this._token, this._elements, this._end);
|
|
1342
|
+
}
|
|
1343
|
+
get token() {
|
|
1344
|
+
return this._token.element;
|
|
1345
|
+
}
|
|
1346
|
+
withToken(token) {
|
|
1347
|
+
return this.padding.withToken(this._token.withElement(token));
|
|
1348
|
+
}
|
|
1349
|
+
get elements() {
|
|
1350
|
+
return this._elements.elements;
|
|
1351
|
+
}
|
|
1352
|
+
withElements(elements) {
|
|
1353
|
+
return this.padding.withElements(tree_1.JContainer.withElements(this._elements, elements));
|
|
1354
|
+
}
|
|
1355
|
+
get end() {
|
|
1356
|
+
return this._end;
|
|
1357
|
+
}
|
|
1358
|
+
withEnd(end) {
|
|
1359
|
+
return end === this._end ? this : new ImportTypeAttributes_1(this._id, this._prefix, this._markers, this._token, this._elements, end);
|
|
1360
|
+
}
|
|
1361
|
+
acceptJavaScript(v, p) {
|
|
1362
|
+
return v.visitImportTypeAttributes(this, p);
|
|
1363
|
+
}
|
|
1364
|
+
get padding() {
|
|
1365
|
+
const t = this;
|
|
1366
|
+
return new class {
|
|
1367
|
+
get token() {
|
|
1368
|
+
return t._token;
|
|
1369
|
+
}
|
|
1370
|
+
withToken(token) {
|
|
1371
|
+
return t._token === token ? t : new ImportTypeAttributes_1(t._id, t._prefix, t._markers, token, t._elements, t._end);
|
|
1372
|
+
}
|
|
1373
|
+
get elements() {
|
|
1374
|
+
return t._elements;
|
|
1375
|
+
}
|
|
1376
|
+
withElements(elements) {
|
|
1377
|
+
return t._elements === elements ? t : new ImportTypeAttributes_1(t._id, t._prefix, t._markers, t._token, elements, t._end);
|
|
1378
|
+
}
|
|
1379
|
+
};
|
|
1380
|
+
}
|
|
1381
|
+
};
|
|
1382
|
+
exports.ImportTypeAttributes = ImportTypeAttributes;
|
|
1383
|
+
exports.ImportTypeAttributes = ImportTypeAttributes = ImportTypeAttributes_1 = __decorate([
|
|
1384
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$ImportTypeAttributes")
|
|
1385
|
+
], ImportTypeAttributes);
|
|
1309
1386
|
let ImportAttribute = ImportAttribute_1 = class ImportAttribute extends (0, support_types_1.JSMixin)(Object) {
|
|
1310
1387
|
constructor(id, prefix, markers, name, value) {
|
|
1311
1388
|
super();
|
|
@@ -4131,7 +4208,7 @@ exports.BindingElement = BindingElement = BindingElement_1 = __decorate([
|
|
|
4131
4208
|
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$BindingElement")
|
|
4132
4209
|
], BindingElement);
|
|
4133
4210
|
let ExportDeclaration = ExportDeclaration_1 = class ExportDeclaration extends (0, support_types_1.JSMixin)(Object) {
|
|
4134
|
-
constructor(id, prefix, markers, modifiers, typeOnly, exportClause, moduleSpecifier) {
|
|
4211
|
+
constructor(id, prefix, markers, modifiers, typeOnly, exportClause, moduleSpecifier, attributes) {
|
|
4135
4212
|
super();
|
|
4136
4213
|
this._id = id;
|
|
4137
4214
|
this._prefix = prefix;
|
|
@@ -4140,30 +4217,31 @@ let ExportDeclaration = ExportDeclaration_1 = class ExportDeclaration extends (0
|
|
|
4140
4217
|
this._typeOnly = typeOnly;
|
|
4141
4218
|
this._exportClause = exportClause;
|
|
4142
4219
|
this._moduleSpecifier = moduleSpecifier;
|
|
4220
|
+
this._attributes = attributes;
|
|
4143
4221
|
}
|
|
4144
4222
|
get id() {
|
|
4145
4223
|
return this._id;
|
|
4146
4224
|
}
|
|
4147
4225
|
withId(id) {
|
|
4148
|
-
return id === this._id ? this : new ExportDeclaration_1(id, this._prefix, this._markers, this._modifiers, this._typeOnly, this._exportClause, this._moduleSpecifier);
|
|
4226
|
+
return id === this._id ? this : new ExportDeclaration_1(id, this._prefix, this._markers, this._modifiers, this._typeOnly, this._exportClause, this._moduleSpecifier, this._attributes);
|
|
4149
4227
|
}
|
|
4150
4228
|
get prefix() {
|
|
4151
4229
|
return this._prefix;
|
|
4152
4230
|
}
|
|
4153
4231
|
withPrefix(prefix) {
|
|
4154
|
-
return prefix === this._prefix ? this : new ExportDeclaration_1(this._id, prefix, this._markers, this._modifiers, this._typeOnly, this._exportClause, this._moduleSpecifier);
|
|
4232
|
+
return prefix === this._prefix ? this : new ExportDeclaration_1(this._id, prefix, this._markers, this._modifiers, this._typeOnly, this._exportClause, this._moduleSpecifier, this._attributes);
|
|
4155
4233
|
}
|
|
4156
4234
|
get markers() {
|
|
4157
4235
|
return this._markers;
|
|
4158
4236
|
}
|
|
4159
4237
|
withMarkers(markers) {
|
|
4160
|
-
return markers === this._markers ? this : new ExportDeclaration_1(this._id, this._prefix, markers, this._modifiers, this._typeOnly, this._exportClause, this._moduleSpecifier);
|
|
4238
|
+
return markers === this._markers ? this : new ExportDeclaration_1(this._id, this._prefix, markers, this._modifiers, this._typeOnly, this._exportClause, this._moduleSpecifier, this._attributes);
|
|
4161
4239
|
}
|
|
4162
4240
|
get modifiers() {
|
|
4163
4241
|
return this._modifiers;
|
|
4164
4242
|
}
|
|
4165
4243
|
withModifiers(modifiers) {
|
|
4166
|
-
return modifiers === this._modifiers ? this : new ExportDeclaration_1(this._id, this._prefix, this._markers, modifiers, this._typeOnly, this._exportClause, this._moduleSpecifier);
|
|
4244
|
+
return modifiers === this._modifiers ? this : new ExportDeclaration_1(this._id, this._prefix, this._markers, modifiers, this._typeOnly, this._exportClause, this._moduleSpecifier, this._attributes);
|
|
4167
4245
|
}
|
|
4168
4246
|
get typeOnly() {
|
|
4169
4247
|
return this._typeOnly.element;
|
|
@@ -4175,7 +4253,7 @@ let ExportDeclaration = ExportDeclaration_1 = class ExportDeclaration extends (0
|
|
|
4175
4253
|
return this._exportClause;
|
|
4176
4254
|
}
|
|
4177
4255
|
withExportClause(exportClause) {
|
|
4178
|
-
return exportClause === this._exportClause ? this : new ExportDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, this._typeOnly, exportClause, this._moduleSpecifier);
|
|
4256
|
+
return exportClause === this._exportClause ? this : new ExportDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, this._typeOnly, exportClause, this._moduleSpecifier, this._attributes);
|
|
4179
4257
|
}
|
|
4180
4258
|
get moduleSpecifier() {
|
|
4181
4259
|
return this._moduleSpecifier === null ? null : this._moduleSpecifier.element;
|
|
@@ -4183,6 +4261,12 @@ let ExportDeclaration = ExportDeclaration_1 = class ExportDeclaration extends (0
|
|
|
4183
4261
|
withModuleSpecifier(moduleSpecifier) {
|
|
4184
4262
|
return this.padding.withModuleSpecifier(tree_1.JLeftPadded.withElement(this._moduleSpecifier, moduleSpecifier));
|
|
4185
4263
|
}
|
|
4264
|
+
get attributes() {
|
|
4265
|
+
return this._attributes;
|
|
4266
|
+
}
|
|
4267
|
+
withAttributes(attributes) {
|
|
4268
|
+
return attributes === this._attributes ? this : new ExportDeclaration_1(this._id, this._prefix, this._markers, this._modifiers, this._typeOnly, this._exportClause, this._moduleSpecifier, attributes);
|
|
4269
|
+
}
|
|
4186
4270
|
acceptJavaScript(v, p) {
|
|
4187
4271
|
return v.visitExportDeclaration(this, p);
|
|
4188
4272
|
}
|
|
@@ -4193,13 +4277,13 @@ let ExportDeclaration = ExportDeclaration_1 = class ExportDeclaration extends (0
|
|
|
4193
4277
|
return t._typeOnly;
|
|
4194
4278
|
}
|
|
4195
4279
|
withTypeOnly(typeOnly) {
|
|
4196
|
-
return t._typeOnly === typeOnly ? t : new ExportDeclaration_1(t._id, t._prefix, t._markers, t._modifiers, typeOnly, t._exportClause, t._moduleSpecifier);
|
|
4280
|
+
return t._typeOnly === typeOnly ? t : new ExportDeclaration_1(t._id, t._prefix, t._markers, t._modifiers, typeOnly, t._exportClause, t._moduleSpecifier, t._attributes);
|
|
4197
4281
|
}
|
|
4198
4282
|
get moduleSpecifier() {
|
|
4199
4283
|
return t._moduleSpecifier;
|
|
4200
4284
|
}
|
|
4201
4285
|
withModuleSpecifier(moduleSpecifier) {
|
|
4202
|
-
return t._moduleSpecifier === moduleSpecifier ? t : new ExportDeclaration_1(t._id, t._prefix, t._markers, t._modifiers, t._typeOnly, t._exportClause, moduleSpecifier);
|
|
4286
|
+
return t._moduleSpecifier === moduleSpecifier ? t : new ExportDeclaration_1(t._id, t._prefix, t._markers, t._modifiers, t._typeOnly, t._exportClause, moduleSpecifier, t._attributes);
|
|
4203
4287
|
}
|
|
4204
4288
|
};
|
|
4205
4289
|
}
|