@openrewrite/rewrite 0.18.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/CONTRIBUTING.md +22 -0
- package/LICENSE +201 -0
- package/README.md +13 -0
- package/dist/src/core/execution.d.ts +35 -0
- package/dist/src/core/execution.d.ts.map +1 -0
- package/dist/src/core/execution.js +65 -0
- package/dist/src/core/execution.js.map +1 -0
- package/dist/src/core/index.d.ts +6 -0
- package/dist/src/core/index.d.ts.map +1 -0
- package/dist/src/core/index.js +22 -0
- package/dist/src/core/index.js.map +1 -0
- package/dist/src/core/markers.d.ts +56 -0
- package/dist/src/core/markers.d.ts.map +1 -0
- package/dist/src/core/markers.js +140 -0
- package/dist/src/core/markers.js.map +1 -0
- package/dist/src/core/parser.d.ts +34 -0
- package/dist/src/core/parser.d.ts.map +1 -0
- package/dist/src/core/parser.js +106 -0
- package/dist/src/core/parser.js.map +1 -0
- package/dist/src/core/tree.d.ts +195 -0
- package/dist/src/core/tree.d.ts.map +1 -0
- package/dist/src/core/tree.js +455 -0
- package/dist/src/core/tree.js.map +1 -0
- package/dist/src/core/utils.d.ts +12 -0
- package/dist/src/core/utils.d.ts.map +1 -0
- package/dist/src/core/utils.js +69 -0
- package/dist/src/core/utils.js.map +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +3 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/java/extensions.d.ts +7 -0
- package/dist/src/java/extensions.d.ts.map +1 -0
- package/dist/src/java/extensions.js +53 -0
- package/dist/src/java/extensions.js.map +1 -0
- package/dist/src/java/index.d.ts +4 -0
- package/dist/src/java/index.d.ts.map +1 -0
- package/dist/src/java/index.js +20 -0
- package/dist/src/java/index.js.map +1 -0
- package/dist/src/java/markers.d.ts +20 -0
- package/dist/src/java/markers.d.ts.map +1 -0
- package/dist/src/java/markers.js +54 -0
- package/dist/src/java/markers.js.map +1 -0
- package/dist/src/java/tree/extensions.d.ts +6 -0
- package/dist/src/java/tree/extensions.d.ts.map +1 -0
- package/dist/src/java/tree/extensions.js +36 -0
- package/dist/src/java/tree/extensions.js.map +1 -0
- package/dist/src/java/tree/index.d.ts +4 -0
- package/dist/src/java/tree/index.d.ts.map +1 -0
- package/dist/src/java/tree/index.js +20 -0
- package/dist/src/java/tree/index.js.map +1 -0
- package/dist/src/java/tree/support_types.d.ts +396 -0
- package/dist/src/java/tree/support_types.d.ts.map +1 -0
- package/dist/src/java/tree/support_types.js +450 -0
- package/dist/src/java/tree/support_types.js.map +1 -0
- package/dist/src/java/tree/tree.d.ts +3377 -0
- package/dist/src/java/tree/tree.d.ts.map +1 -0
- package/dist/src/java/tree/tree.js +4613 -0
- package/dist/src/java/tree/tree.js.map +1 -0
- package/dist/src/java/tree/types.d.ts +80 -0
- package/dist/src/java/tree/types.d.ts.map +1 -0
- package/dist/src/java/tree/types.js +138 -0
- package/dist/src/java/tree/types.js.map +1 -0
- package/dist/src/java/visitor.d.ts +82 -0
- package/dist/src/java/visitor.d.ts.map +1 -0
- package/dist/src/java/visitor.js +872 -0
- package/dist/src/java/visitor.js.map +1 -0
- package/dist/src/javascript/extensions.d.ts +12 -0
- package/dist/src/javascript/extensions.d.ts.map +1 -0
- package/dist/src/javascript/extensions.js +60 -0
- package/dist/src/javascript/extensions.js.map +1 -0
- package/dist/src/javascript/index.d.ts +6 -0
- package/dist/src/javascript/index.d.ts.map +1 -0
- package/dist/src/javascript/index.js +22 -0
- package/dist/src/javascript/index.js.map +1 -0
- package/dist/src/javascript/markers.d.ts +2 -0
- package/dist/src/javascript/markers.d.ts.map +1 -0
- package/dist/src/javascript/markers.js +3 -0
- package/dist/src/javascript/markers.js.map +1 -0
- package/dist/src/javascript/parser.d.ts +268 -0
- package/dist/src/javascript/parser.d.ts.map +1 -0
- package/dist/src/javascript/parser.js +1137 -0
- package/dist/src/javascript/parser.js.map +1 -0
- package/dist/src/javascript/parserUtils.d.ts +7 -0
- package/dist/src/javascript/parserUtils.d.ts.map +1 -0
- package/dist/src/javascript/parserUtils.js +165 -0
- package/dist/src/javascript/parserUtils.js.map +1 -0
- package/dist/src/javascript/projectParser.d.ts +25 -0
- package/dist/src/javascript/projectParser.d.ts.map +1 -0
- package/dist/src/javascript/projectParser.js +149 -0
- package/dist/src/javascript/projectParser.js.map +1 -0
- package/dist/src/javascript/projectParserMain.d.ts +3 -0
- package/dist/src/javascript/projectParserMain.d.ts.map +1 -0
- package/dist/src/javascript/projectParserMain.js +59 -0
- package/dist/src/javascript/projectParserMain.js.map +1 -0
- package/dist/src/javascript/tree/extensions.d.ts +4 -0
- package/dist/src/javascript/tree/extensions.d.ts.map +1 -0
- package/dist/src/javascript/tree/extensions.js +80 -0
- package/dist/src/javascript/tree/extensions.js.map +1 -0
- package/dist/src/javascript/tree/index.d.ts +3 -0
- package/dist/src/javascript/tree/index.d.ts.map +1 -0
- package/dist/src/javascript/tree/index.js +19 -0
- package/dist/src/javascript/tree/index.js.map +1 -0
- package/dist/src/javascript/tree/support_types.d.ts +184 -0
- package/dist/src/javascript/tree/support_types.d.ts.map +1 -0
- package/dist/src/javascript/tree/support_types.js +224 -0
- package/dist/src/javascript/tree/support_types.js.map +1 -0
- package/dist/src/javascript/tree/tree.d.ts +1173 -0
- package/dist/src/javascript/tree/tree.d.ts.map +1 -0
- package/dist/src/javascript/tree/tree.js +1590 -0
- package/dist/src/javascript/tree/tree.js.map +1 -0
- package/dist/src/javascript/typeMapping.d.ts +16 -0
- package/dist/src/javascript/typeMapping.d.ts.map +1 -0
- package/dist/src/javascript/typeMapping.js +120 -0
- package/dist/src/javascript/typeMapping.js.map +1 -0
- package/dist/src/javascript/visitor.d.ts +41 -0
- package/dist/src/javascript/visitor.d.ts.map +1 -0
- package/dist/src/javascript/visitor.js +360 -0
- package/dist/src/javascript/visitor.js.map +1 -0
- package/dist/src/json/extensions.d.ts +6 -0
- package/dist/src/json/extensions.d.ts.map +1 -0
- package/dist/src/json/extensions.js +11 -0
- package/dist/src/json/extensions.js.map +1 -0
- package/dist/src/json/index.d.ts +5 -0
- package/dist/src/json/index.d.ts.map +1 -0
- package/dist/src/json/index.js +21 -0
- package/dist/src/json/index.js.map +1 -0
- package/dist/src/json/markers.d.ts +2 -0
- package/dist/src/json/markers.d.ts.map +1 -0
- package/dist/src/json/markers.js +3 -0
- package/dist/src/json/markers.js.map +1 -0
- package/dist/src/json/support_types.d.ts +19 -0
- package/dist/src/json/support_types.d.ts.map +1 -0
- package/dist/src/json/support_types.js +47 -0
- package/dist/src/json/support_types.js.map +1 -0
- package/dist/src/json/tree.d.ts +187 -0
- package/dist/src/json/tree.d.ts.map +1 -0
- package/dist/src/json/tree.js +393 -0
- package/dist/src/json/tree.js.map +1 -0
- package/dist/src/json/visitor.d.ts +16 -0
- package/dist/src/json/visitor.d.ts.map +1 -0
- package/dist/src/json/visitor.js +83 -0
- package/dist/src/json/visitor.js.map +1 -0
- package/dist/src/yaml/index.d.ts +4 -0
- package/dist/src/yaml/index.d.ts.map +1 -0
- package/dist/src/yaml/index.js +20 -0
- package/dist/src/yaml/index.js.map +1 -0
- package/dist/src/yaml/markers.d.ts +2 -0
- package/dist/src/yaml/markers.d.ts.map +1 -0
- package/dist/src/yaml/markers.js +3 -0
- package/dist/src/yaml/markers.js.map +1 -0
- package/dist/src/yaml/tree/extensions.d.ts +2 -0
- package/dist/src/yaml/tree/extensions.d.ts.map +1 -0
- package/dist/src/yaml/tree/extensions.js +3 -0
- package/dist/src/yaml/tree/extensions.js.map +1 -0
- package/dist/src/yaml/tree/index.d.ts +3 -0
- package/dist/src/yaml/tree/index.d.ts.map +1 -0
- package/dist/src/yaml/tree/index.js +19 -0
- package/dist/src/yaml/tree/index.js.map +1 -0
- package/dist/src/yaml/tree/support_types.d.ts +37 -0
- package/dist/src/yaml/tree/support_types.d.ts.map +1 -0
- package/dist/src/yaml/tree/support_types.js +25 -0
- package/dist/src/yaml/tree/support_types.js.map +1 -0
- package/dist/src/yaml/tree/tree.d.ts +451 -0
- package/dist/src/yaml/tree/tree.d.ts.map +1 -0
- package/dist/src/yaml/tree/tree.js +551 -0
- package/dist/src/yaml/tree/tree.js.map +1 -0
- package/dist/src/yaml/visitor.d.ts +16 -0
- package/dist/src/yaml/visitor.d.ts.map +1 -0
- package/dist/src/yaml/visitor.js +64 -0
- package/dist/src/yaml/visitor.js.map +1 -0
- package/package.json +40 -0
|
@@ -0,0 +1,1590 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
+
if (mod && mod.__esModule) return mod;
|
|
26
|
+
var result = {};
|
|
27
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
28
|
+
__setModuleDefault(result, mod);
|
|
29
|
+
return result;
|
|
30
|
+
};
|
|
31
|
+
var CompilationUnit_1, Alias_1, ArrowFunction_1, Await_1, DefaultType_1, Delete_1, Export_1, FunctionType_1, JsImport_1, JsBinary_1, ObjectBindingDeclarations_1, PropertyAssignment_1, TemplateExpression_1, Tuple_1, TypeDeclaration_1, TypeOf_1, TypeOperator_1, Unary_1, Union_1, Void_1;
|
|
32
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
+
exports.Void = exports.Union = exports.Unary = exports.TypeOperator = exports.TypeOf = exports.TypeDeclaration = exports.Tuple = exports.TemplateExpression = exports.PropertyAssignment = exports.ObjectBindingDeclarations = exports.JsBinary = exports.JsImport = exports.FunctionType = exports.Export = exports.Delete = exports.DefaultType = exports.Await = exports.ArrowFunction = exports.Alias = exports.CompilationUnit = void 0;
|
|
34
|
+
const extensions = __importStar(require("./extensions"));
|
|
35
|
+
const support_types_1 = require("./support_types");
|
|
36
|
+
const core_1 = require("../../core");
|
|
37
|
+
const tree_1 = require("../../java/tree");
|
|
38
|
+
let CompilationUnit = CompilationUnit_1 = class CompilationUnit extends (0, core_1.SourceFileMixin)((0, support_types_1.JSMixin)(Object)) {
|
|
39
|
+
constructor(id, prefix, markers, sourcePath, fileAttributes, charsetName, charsetBomMarked, checksum, imports, statements, eof) {
|
|
40
|
+
super();
|
|
41
|
+
this._id = id;
|
|
42
|
+
this._prefix = prefix;
|
|
43
|
+
this._markers = markers;
|
|
44
|
+
this._sourcePath = sourcePath;
|
|
45
|
+
this._fileAttributes = fileAttributes;
|
|
46
|
+
this._charsetName = charsetName;
|
|
47
|
+
this._charsetBomMarked = charsetBomMarked;
|
|
48
|
+
this._checksum = checksum;
|
|
49
|
+
this._imports = imports;
|
|
50
|
+
this._statements = statements;
|
|
51
|
+
this._eof = eof;
|
|
52
|
+
}
|
|
53
|
+
get id() {
|
|
54
|
+
return this._id;
|
|
55
|
+
}
|
|
56
|
+
withId(id) {
|
|
57
|
+
return id === this._id ? this : new CompilationUnit_1(id, this._prefix, this._markers, this._sourcePath, this._fileAttributes, this._charsetName, this._charsetBomMarked, this._checksum, this._imports, this._statements, this._eof);
|
|
58
|
+
}
|
|
59
|
+
get prefix() {
|
|
60
|
+
return this._prefix;
|
|
61
|
+
}
|
|
62
|
+
withPrefix(prefix) {
|
|
63
|
+
return prefix === this._prefix ? this : new CompilationUnit_1(this._id, prefix, this._markers, this._sourcePath, this._fileAttributes, this._charsetName, this._charsetBomMarked, this._checksum, this._imports, this._statements, this._eof);
|
|
64
|
+
}
|
|
65
|
+
get markers() {
|
|
66
|
+
return this._markers;
|
|
67
|
+
}
|
|
68
|
+
withMarkers(markers) {
|
|
69
|
+
return markers === this._markers ? this : new CompilationUnit_1(this._id, this._prefix, markers, this._sourcePath, this._fileAttributes, this._charsetName, this._charsetBomMarked, this._checksum, this._imports, this._statements, this._eof);
|
|
70
|
+
}
|
|
71
|
+
get sourcePath() {
|
|
72
|
+
return this._sourcePath;
|
|
73
|
+
}
|
|
74
|
+
withSourcePath(sourcePath) {
|
|
75
|
+
return sourcePath === this._sourcePath ? this : new CompilationUnit_1(this._id, this._prefix, this._markers, sourcePath, this._fileAttributes, this._charsetName, this._charsetBomMarked, this._checksum, this._imports, this._statements, this._eof);
|
|
76
|
+
}
|
|
77
|
+
get fileAttributes() {
|
|
78
|
+
return this._fileAttributes;
|
|
79
|
+
}
|
|
80
|
+
withFileAttributes(fileAttributes) {
|
|
81
|
+
return fileAttributes === this._fileAttributes ? this : new CompilationUnit_1(this._id, this._prefix, this._markers, this._sourcePath, fileAttributes, this._charsetName, this._charsetBomMarked, this._checksum, this._imports, this._statements, this._eof);
|
|
82
|
+
}
|
|
83
|
+
get charsetName() {
|
|
84
|
+
return this._charsetName;
|
|
85
|
+
}
|
|
86
|
+
withCharsetName(charsetName) {
|
|
87
|
+
return charsetName === this._charsetName ? this : new CompilationUnit_1(this._id, this._prefix, this._markers, this._sourcePath, this._fileAttributes, charsetName, this._charsetBomMarked, this._checksum, this._imports, this._statements, this._eof);
|
|
88
|
+
}
|
|
89
|
+
get charsetBomMarked() {
|
|
90
|
+
return this._charsetBomMarked;
|
|
91
|
+
}
|
|
92
|
+
withCharsetBomMarked(charsetBomMarked) {
|
|
93
|
+
return charsetBomMarked === this._charsetBomMarked ? this : new CompilationUnit_1(this._id, this._prefix, this._markers, this._sourcePath, this._fileAttributes, this._charsetName, charsetBomMarked, this._checksum, this._imports, this._statements, this._eof);
|
|
94
|
+
}
|
|
95
|
+
get checksum() {
|
|
96
|
+
return this._checksum;
|
|
97
|
+
}
|
|
98
|
+
withChecksum(checksum) {
|
|
99
|
+
return checksum === this._checksum ? this : new CompilationUnit_1(this._id, this._prefix, this._markers, this._sourcePath, this._fileAttributes, this._charsetName, this._charsetBomMarked, checksum, this._imports, this._statements, this._eof);
|
|
100
|
+
}
|
|
101
|
+
get imports() {
|
|
102
|
+
return tree_1.JRightPadded.getElements(this._imports);
|
|
103
|
+
}
|
|
104
|
+
withImports(imports) {
|
|
105
|
+
return this.padding.withImports(tree_1.JRightPadded.withElements(this._imports, imports));
|
|
106
|
+
}
|
|
107
|
+
get statements() {
|
|
108
|
+
return tree_1.JRightPadded.getElements(this._statements);
|
|
109
|
+
}
|
|
110
|
+
withStatements(statements) {
|
|
111
|
+
return this.padding.withStatements(tree_1.JRightPadded.withElements(this._statements, statements));
|
|
112
|
+
}
|
|
113
|
+
get eof() {
|
|
114
|
+
return this._eof;
|
|
115
|
+
}
|
|
116
|
+
withEof(eof) {
|
|
117
|
+
return eof === this._eof ? this : new CompilationUnit_1(this._id, this._prefix, this._markers, this._sourcePath, this._fileAttributes, this._charsetName, this._charsetBomMarked, this._checksum, this._imports, this._statements, eof);
|
|
118
|
+
}
|
|
119
|
+
printer(cursor) {
|
|
120
|
+
return core_1.PrinterFactory.current.createPrinter(cursor);
|
|
121
|
+
}
|
|
122
|
+
acceptJavaScript(v, p) {
|
|
123
|
+
return v.visitJsCompilationUnit(this, p);
|
|
124
|
+
}
|
|
125
|
+
get padding() {
|
|
126
|
+
const t = this;
|
|
127
|
+
return new class {
|
|
128
|
+
get imports() {
|
|
129
|
+
return t._imports;
|
|
130
|
+
}
|
|
131
|
+
withImports(imports) {
|
|
132
|
+
return t._imports === imports ? t : new CompilationUnit_1(t._id, t._prefix, t._markers, t._sourcePath, t._fileAttributes, t._charsetName, t._charsetBomMarked, t._checksum, imports, t._statements, t._eof);
|
|
133
|
+
}
|
|
134
|
+
get statements() {
|
|
135
|
+
return t._statements;
|
|
136
|
+
}
|
|
137
|
+
withStatements(statements) {
|
|
138
|
+
return t._statements === statements ? t : new CompilationUnit_1(t._id, t._prefix, t._markers, t._sourcePath, t._fileAttributes, t._charsetName, t._charsetBomMarked, t._checksum, t._imports, statements, t._eof);
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
exports.CompilationUnit = CompilationUnit;
|
|
144
|
+
exports.CompilationUnit = CompilationUnit = CompilationUnit_1 = __decorate([
|
|
145
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$CompilationUnit")
|
|
146
|
+
], CompilationUnit);
|
|
147
|
+
let Alias = Alias_1 = class Alias extends (0, support_types_1.JSMixin)(Object) {
|
|
148
|
+
constructor(id, prefix, markers, propertyName, alias) {
|
|
149
|
+
super();
|
|
150
|
+
this._id = id;
|
|
151
|
+
this._prefix = prefix;
|
|
152
|
+
this._markers = markers;
|
|
153
|
+
this._propertyName = propertyName;
|
|
154
|
+
this._alias = alias;
|
|
155
|
+
}
|
|
156
|
+
get id() {
|
|
157
|
+
return this._id;
|
|
158
|
+
}
|
|
159
|
+
withId(id) {
|
|
160
|
+
return id === this._id ? this : new Alias_1(id, this._prefix, this._markers, this._propertyName, this._alias);
|
|
161
|
+
}
|
|
162
|
+
get prefix() {
|
|
163
|
+
return this._prefix;
|
|
164
|
+
}
|
|
165
|
+
withPrefix(prefix) {
|
|
166
|
+
return prefix === this._prefix ? this : new Alias_1(this._id, prefix, this._markers, this._propertyName, this._alias);
|
|
167
|
+
}
|
|
168
|
+
get markers() {
|
|
169
|
+
return this._markers;
|
|
170
|
+
}
|
|
171
|
+
withMarkers(markers) {
|
|
172
|
+
return markers === this._markers ? this : new Alias_1(this._id, this._prefix, markers, this._propertyName, this._alias);
|
|
173
|
+
}
|
|
174
|
+
get propertyName() {
|
|
175
|
+
return this._propertyName.element;
|
|
176
|
+
}
|
|
177
|
+
withPropertyName(propertyName) {
|
|
178
|
+
return this.padding.withPropertyName(this._propertyName.withElement(propertyName));
|
|
179
|
+
}
|
|
180
|
+
get alias() {
|
|
181
|
+
return this._alias;
|
|
182
|
+
}
|
|
183
|
+
withAlias(alias) {
|
|
184
|
+
return alias === this._alias ? this : new Alias_1(this._id, this._prefix, this._markers, this._propertyName, alias);
|
|
185
|
+
}
|
|
186
|
+
acceptJavaScript(v, p) {
|
|
187
|
+
return v.visitAlias(this, p);
|
|
188
|
+
}
|
|
189
|
+
get type() {
|
|
190
|
+
return extensions.getJavaType(this);
|
|
191
|
+
}
|
|
192
|
+
withType(type) {
|
|
193
|
+
return extensions.withJavaType(this, type);
|
|
194
|
+
}
|
|
195
|
+
get padding() {
|
|
196
|
+
const t = this;
|
|
197
|
+
return new class {
|
|
198
|
+
get propertyName() {
|
|
199
|
+
return t._propertyName;
|
|
200
|
+
}
|
|
201
|
+
withPropertyName(propertyName) {
|
|
202
|
+
return t._propertyName === propertyName ? t : new Alias_1(t._id, t._prefix, t._markers, propertyName, t._alias);
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
exports.Alias = Alias;
|
|
208
|
+
exports.Alias = Alias = Alias_1 = __decorate([
|
|
209
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$Alias")
|
|
210
|
+
], Alias);
|
|
211
|
+
let ArrowFunction = ArrowFunction_1 = class ArrowFunction extends (0, support_types_1.JSMixin)(Object) {
|
|
212
|
+
constructor(id, prefix, markers, leadingAnnotations, modifiers, parameters, returnTypeExpression, arrow, body, _type) {
|
|
213
|
+
super();
|
|
214
|
+
this._id = id;
|
|
215
|
+
this._prefix = prefix;
|
|
216
|
+
this._markers = markers;
|
|
217
|
+
this._leadingAnnotations = leadingAnnotations;
|
|
218
|
+
this._modifiers = modifiers;
|
|
219
|
+
this._parameters = parameters;
|
|
220
|
+
this._returnTypeExpression = returnTypeExpression;
|
|
221
|
+
this._arrow = arrow;
|
|
222
|
+
this._body = body;
|
|
223
|
+
this._type = _type;
|
|
224
|
+
}
|
|
225
|
+
get id() {
|
|
226
|
+
return this._id;
|
|
227
|
+
}
|
|
228
|
+
withId(id) {
|
|
229
|
+
return id === this._id ? this : new ArrowFunction_1(id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._parameters, this._returnTypeExpression, this._arrow, this._body, this._type);
|
|
230
|
+
}
|
|
231
|
+
get prefix() {
|
|
232
|
+
return this._prefix;
|
|
233
|
+
}
|
|
234
|
+
withPrefix(prefix) {
|
|
235
|
+
return prefix === this._prefix ? this : new ArrowFunction_1(this._id, prefix, this._markers, this._leadingAnnotations, this._modifiers, this._parameters, this._returnTypeExpression, this._arrow, this._body, this._type);
|
|
236
|
+
}
|
|
237
|
+
get markers() {
|
|
238
|
+
return this._markers;
|
|
239
|
+
}
|
|
240
|
+
withMarkers(markers) {
|
|
241
|
+
return markers === this._markers ? this : new ArrowFunction_1(this._id, this._prefix, markers, this._leadingAnnotations, this._modifiers, this._parameters, this._returnTypeExpression, this._arrow, this._body, this._type);
|
|
242
|
+
}
|
|
243
|
+
get leadingAnnotations() {
|
|
244
|
+
return this._leadingAnnotations;
|
|
245
|
+
}
|
|
246
|
+
withLeadingAnnotations(leadingAnnotations) {
|
|
247
|
+
return leadingAnnotations === this._leadingAnnotations ? this : new ArrowFunction_1(this._id, this._prefix, this._markers, leadingAnnotations, this._modifiers, this._parameters, this._returnTypeExpression, this._arrow, this._body, this._type);
|
|
248
|
+
}
|
|
249
|
+
get modifiers() {
|
|
250
|
+
return this._modifiers;
|
|
251
|
+
}
|
|
252
|
+
withModifiers(modifiers) {
|
|
253
|
+
return modifiers === this._modifiers ? this : new ArrowFunction_1(this._id, this._prefix, this._markers, this._leadingAnnotations, modifiers, this._parameters, this._returnTypeExpression, this._arrow, this._body, this._type);
|
|
254
|
+
}
|
|
255
|
+
get parameters() {
|
|
256
|
+
return this._parameters;
|
|
257
|
+
}
|
|
258
|
+
withParameters(parameters) {
|
|
259
|
+
return parameters === this._parameters ? this : new ArrowFunction_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, parameters, this._returnTypeExpression, this._arrow, this._body, this._type);
|
|
260
|
+
}
|
|
261
|
+
get returnTypeExpression() {
|
|
262
|
+
return this._returnTypeExpression;
|
|
263
|
+
}
|
|
264
|
+
withReturnTypeExpression(returnTypeExpression) {
|
|
265
|
+
return returnTypeExpression === this._returnTypeExpression ? this : new ArrowFunction_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._parameters, returnTypeExpression, this._arrow, this._body, this._type);
|
|
266
|
+
}
|
|
267
|
+
get arrow() {
|
|
268
|
+
return this._arrow;
|
|
269
|
+
}
|
|
270
|
+
withArrow(arrow) {
|
|
271
|
+
return arrow === this._arrow ? this : new ArrowFunction_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._parameters, this._returnTypeExpression, arrow, this._body, this._type);
|
|
272
|
+
}
|
|
273
|
+
get body() {
|
|
274
|
+
return this._body;
|
|
275
|
+
}
|
|
276
|
+
withBody(body) {
|
|
277
|
+
return body === this._body ? this : new ArrowFunction_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._parameters, this._returnTypeExpression, this._arrow, body, this._type);
|
|
278
|
+
}
|
|
279
|
+
get type() {
|
|
280
|
+
return this._type;
|
|
281
|
+
}
|
|
282
|
+
withType(_type) {
|
|
283
|
+
return _type === this._type ? this : new ArrowFunction_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._parameters, this._returnTypeExpression, this._arrow, this._body, _type);
|
|
284
|
+
}
|
|
285
|
+
acceptJavaScript(v, p) {
|
|
286
|
+
return v.visitArrowFunction(this, p);
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
exports.ArrowFunction = ArrowFunction;
|
|
290
|
+
exports.ArrowFunction = ArrowFunction = ArrowFunction_1 = __decorate([
|
|
291
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$ArrowFunction")
|
|
292
|
+
], ArrowFunction);
|
|
293
|
+
let Await = Await_1 = class Await extends (0, support_types_1.JSMixin)(Object) {
|
|
294
|
+
constructor(id, prefix, markers, expression, _type) {
|
|
295
|
+
super();
|
|
296
|
+
this._id = id;
|
|
297
|
+
this._prefix = prefix;
|
|
298
|
+
this._markers = markers;
|
|
299
|
+
this._expression = expression;
|
|
300
|
+
this._type = _type;
|
|
301
|
+
}
|
|
302
|
+
get id() {
|
|
303
|
+
return this._id;
|
|
304
|
+
}
|
|
305
|
+
withId(id) {
|
|
306
|
+
return id === this._id ? this : new Await_1(id, this._prefix, this._markers, this._expression, this._type);
|
|
307
|
+
}
|
|
308
|
+
get prefix() {
|
|
309
|
+
return this._prefix;
|
|
310
|
+
}
|
|
311
|
+
withPrefix(prefix) {
|
|
312
|
+
return prefix === this._prefix ? this : new Await_1(this._id, prefix, this._markers, this._expression, this._type);
|
|
313
|
+
}
|
|
314
|
+
get markers() {
|
|
315
|
+
return this._markers;
|
|
316
|
+
}
|
|
317
|
+
withMarkers(markers) {
|
|
318
|
+
return markers === this._markers ? this : new Await_1(this._id, this._prefix, markers, this._expression, this._type);
|
|
319
|
+
}
|
|
320
|
+
get expression() {
|
|
321
|
+
return this._expression;
|
|
322
|
+
}
|
|
323
|
+
withExpression(expression) {
|
|
324
|
+
return expression === this._expression ? this : new Await_1(this._id, this._prefix, this._markers, expression, this._type);
|
|
325
|
+
}
|
|
326
|
+
get type() {
|
|
327
|
+
return this._type;
|
|
328
|
+
}
|
|
329
|
+
withType(_type) {
|
|
330
|
+
return _type === this._type ? this : new Await_1(this._id, this._prefix, this._markers, this._expression, _type);
|
|
331
|
+
}
|
|
332
|
+
acceptJavaScript(v, p) {
|
|
333
|
+
return v.visitAwait(this, p);
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
exports.Await = Await;
|
|
337
|
+
exports.Await = Await = Await_1 = __decorate([
|
|
338
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$Await")
|
|
339
|
+
], Await);
|
|
340
|
+
let DefaultType = DefaultType_1 = class DefaultType extends (0, support_types_1.JSMixin)(Object) {
|
|
341
|
+
constructor(id, prefix, markers, left, beforeEquals, right, _type) {
|
|
342
|
+
super();
|
|
343
|
+
this._id = id;
|
|
344
|
+
this._prefix = prefix;
|
|
345
|
+
this._markers = markers;
|
|
346
|
+
this._left = left;
|
|
347
|
+
this._beforeEquals = beforeEquals;
|
|
348
|
+
this._right = right;
|
|
349
|
+
this._type = _type;
|
|
350
|
+
}
|
|
351
|
+
get id() {
|
|
352
|
+
return this._id;
|
|
353
|
+
}
|
|
354
|
+
withId(id) {
|
|
355
|
+
return id === this._id ? this : new DefaultType_1(id, this._prefix, this._markers, this._left, this._beforeEquals, this._right, this._type);
|
|
356
|
+
}
|
|
357
|
+
get prefix() {
|
|
358
|
+
return this._prefix;
|
|
359
|
+
}
|
|
360
|
+
withPrefix(prefix) {
|
|
361
|
+
return prefix === this._prefix ? this : new DefaultType_1(this._id, prefix, this._markers, this._left, this._beforeEquals, this._right, this._type);
|
|
362
|
+
}
|
|
363
|
+
get markers() {
|
|
364
|
+
return this._markers;
|
|
365
|
+
}
|
|
366
|
+
withMarkers(markers) {
|
|
367
|
+
return markers === this._markers ? this : new DefaultType_1(this._id, this._prefix, markers, this._left, this._beforeEquals, this._right, this._type);
|
|
368
|
+
}
|
|
369
|
+
get left() {
|
|
370
|
+
return this._left;
|
|
371
|
+
}
|
|
372
|
+
withLeft(left) {
|
|
373
|
+
return left === this._left ? this : new DefaultType_1(this._id, this._prefix, this._markers, left, this._beforeEquals, this._right, this._type);
|
|
374
|
+
}
|
|
375
|
+
get beforeEquals() {
|
|
376
|
+
return this._beforeEquals;
|
|
377
|
+
}
|
|
378
|
+
withBeforeEquals(beforeEquals) {
|
|
379
|
+
return beforeEquals === this._beforeEquals ? this : new DefaultType_1(this._id, this._prefix, this._markers, this._left, beforeEquals, this._right, this._type);
|
|
380
|
+
}
|
|
381
|
+
get right() {
|
|
382
|
+
return this._right;
|
|
383
|
+
}
|
|
384
|
+
withRight(right) {
|
|
385
|
+
return right === this._right ? this : new DefaultType_1(this._id, this._prefix, this._markers, this._left, this._beforeEquals, right, this._type);
|
|
386
|
+
}
|
|
387
|
+
get type() {
|
|
388
|
+
return this._type;
|
|
389
|
+
}
|
|
390
|
+
withType(_type) {
|
|
391
|
+
return _type === this._type ? this : new DefaultType_1(this._id, this._prefix, this._markers, this._left, this._beforeEquals, this._right, _type);
|
|
392
|
+
}
|
|
393
|
+
acceptJavaScript(v, p) {
|
|
394
|
+
return v.visitDefaultType(this, p);
|
|
395
|
+
}
|
|
396
|
+
};
|
|
397
|
+
exports.DefaultType = DefaultType;
|
|
398
|
+
exports.DefaultType = DefaultType = DefaultType_1 = __decorate([
|
|
399
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$DefaultType")
|
|
400
|
+
], DefaultType);
|
|
401
|
+
let Delete = Delete_1 = class Delete extends (0, support_types_1.JSMixin)(Object) {
|
|
402
|
+
constructor(id, prefix, markers, expression, _type) {
|
|
403
|
+
super();
|
|
404
|
+
this._id = id;
|
|
405
|
+
this._prefix = prefix;
|
|
406
|
+
this._markers = markers;
|
|
407
|
+
this._expression = expression;
|
|
408
|
+
this._type = _type;
|
|
409
|
+
}
|
|
410
|
+
get id() {
|
|
411
|
+
return this._id;
|
|
412
|
+
}
|
|
413
|
+
withId(id) {
|
|
414
|
+
return id === this._id ? this : new Delete_1(id, this._prefix, this._markers, this._expression, this._type);
|
|
415
|
+
}
|
|
416
|
+
get prefix() {
|
|
417
|
+
return this._prefix;
|
|
418
|
+
}
|
|
419
|
+
withPrefix(prefix) {
|
|
420
|
+
return prefix === this._prefix ? this : new Delete_1(this._id, prefix, this._markers, this._expression, this._type);
|
|
421
|
+
}
|
|
422
|
+
get markers() {
|
|
423
|
+
return this._markers;
|
|
424
|
+
}
|
|
425
|
+
withMarkers(markers) {
|
|
426
|
+
return markers === this._markers ? this : new Delete_1(this._id, this._prefix, markers, this._expression, this._type);
|
|
427
|
+
}
|
|
428
|
+
get expression() {
|
|
429
|
+
return this._expression;
|
|
430
|
+
}
|
|
431
|
+
withExpression(expression) {
|
|
432
|
+
return expression === this._expression ? this : new Delete_1(this._id, this._prefix, this._markers, expression, this._type);
|
|
433
|
+
}
|
|
434
|
+
get type() {
|
|
435
|
+
return this._type;
|
|
436
|
+
}
|
|
437
|
+
withType(_type) {
|
|
438
|
+
return _type === this._type ? this : new Delete_1(this._id, this._prefix, this._markers, this._expression, _type);
|
|
439
|
+
}
|
|
440
|
+
acceptJavaScript(v, p) {
|
|
441
|
+
return v.visitDelete(this, p);
|
|
442
|
+
}
|
|
443
|
+
};
|
|
444
|
+
exports.Delete = Delete;
|
|
445
|
+
exports.Delete = Delete = Delete_1 = __decorate([
|
|
446
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$Delete")
|
|
447
|
+
], Delete);
|
|
448
|
+
let Export = Export_1 = class Export extends (0, support_types_1.JSMixin)(Object) {
|
|
449
|
+
constructor(id, prefix, markers, exports, _from, target, initializer) {
|
|
450
|
+
super();
|
|
451
|
+
this._id = id;
|
|
452
|
+
this._prefix = prefix;
|
|
453
|
+
this._markers = markers;
|
|
454
|
+
this._exports = exports;
|
|
455
|
+
this._from = _from;
|
|
456
|
+
this._target = target;
|
|
457
|
+
this._initializer = initializer;
|
|
458
|
+
}
|
|
459
|
+
get id() {
|
|
460
|
+
return this._id;
|
|
461
|
+
}
|
|
462
|
+
withId(id) {
|
|
463
|
+
return id === this._id ? this : new Export_1(id, this._prefix, this._markers, this._exports, this._from, this._target, this._initializer);
|
|
464
|
+
}
|
|
465
|
+
get prefix() {
|
|
466
|
+
return this._prefix;
|
|
467
|
+
}
|
|
468
|
+
withPrefix(prefix) {
|
|
469
|
+
return prefix === this._prefix ? this : new Export_1(this._id, prefix, this._markers, this._exports, this._from, this._target, this._initializer);
|
|
470
|
+
}
|
|
471
|
+
get markers() {
|
|
472
|
+
return this._markers;
|
|
473
|
+
}
|
|
474
|
+
withMarkers(markers) {
|
|
475
|
+
return markers === this._markers ? this : new Export_1(this._id, this._prefix, markers, this._exports, this._from, this._target, this._initializer);
|
|
476
|
+
}
|
|
477
|
+
get exports() {
|
|
478
|
+
return this._exports === null ? null : this._exports.elements;
|
|
479
|
+
}
|
|
480
|
+
withExports(exports) {
|
|
481
|
+
return this.padding.withExports(tree_1.JContainer.withElementsNullable(this._exports, exports));
|
|
482
|
+
}
|
|
483
|
+
get from() {
|
|
484
|
+
return this._from;
|
|
485
|
+
}
|
|
486
|
+
withFrom(_from) {
|
|
487
|
+
return _from === this._from ? this : new Export_1(this._id, this._prefix, this._markers, this._exports, _from, this._target, this._initializer);
|
|
488
|
+
}
|
|
489
|
+
get target() {
|
|
490
|
+
return this._target;
|
|
491
|
+
}
|
|
492
|
+
withTarget(target) {
|
|
493
|
+
return target === this._target ? this : new Export_1(this._id, this._prefix, this._markers, this._exports, this._from, target, this._initializer);
|
|
494
|
+
}
|
|
495
|
+
get initializer() {
|
|
496
|
+
return this._initializer === null ? null : this._initializer.element;
|
|
497
|
+
}
|
|
498
|
+
withInitializer(initializer) {
|
|
499
|
+
return this.padding.withInitializer(tree_1.JLeftPadded.withElement(this._initializer, initializer));
|
|
500
|
+
}
|
|
501
|
+
acceptJavaScript(v, p) {
|
|
502
|
+
return v.visitExport(this, p);
|
|
503
|
+
}
|
|
504
|
+
get padding() {
|
|
505
|
+
const t = this;
|
|
506
|
+
return new class {
|
|
507
|
+
get exports() {
|
|
508
|
+
return t._exports;
|
|
509
|
+
}
|
|
510
|
+
withExports(exports) {
|
|
511
|
+
return t._exports === exports ? t : new Export_1(t._id, t._prefix, t._markers, exports, t._from, t._target, t._initializer);
|
|
512
|
+
}
|
|
513
|
+
get initializer() {
|
|
514
|
+
return t._initializer;
|
|
515
|
+
}
|
|
516
|
+
withInitializer(initializer) {
|
|
517
|
+
return t._initializer === initializer ? t : new Export_1(t._id, t._prefix, t._markers, t._exports, t._from, t._target, initializer);
|
|
518
|
+
}
|
|
519
|
+
};
|
|
520
|
+
}
|
|
521
|
+
};
|
|
522
|
+
exports.Export = Export;
|
|
523
|
+
exports.Export = Export = Export_1 = __decorate([
|
|
524
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$Export")
|
|
525
|
+
], Export);
|
|
526
|
+
let FunctionType = FunctionType_1 = class FunctionType extends (0, support_types_1.JSMixin)(Object) {
|
|
527
|
+
constructor(id, prefix, markers, parameters, arrow, returnType, _type) {
|
|
528
|
+
super();
|
|
529
|
+
this._id = id;
|
|
530
|
+
this._prefix = prefix;
|
|
531
|
+
this._markers = markers;
|
|
532
|
+
this._parameters = parameters;
|
|
533
|
+
this._arrow = arrow;
|
|
534
|
+
this._returnType = returnType;
|
|
535
|
+
this._type = _type;
|
|
536
|
+
}
|
|
537
|
+
get id() {
|
|
538
|
+
return this._id;
|
|
539
|
+
}
|
|
540
|
+
withId(id) {
|
|
541
|
+
return id === this._id ? this : new FunctionType_1(id, this._prefix, this._markers, this._parameters, this._arrow, this._returnType, this._type);
|
|
542
|
+
}
|
|
543
|
+
get prefix() {
|
|
544
|
+
return this._prefix;
|
|
545
|
+
}
|
|
546
|
+
withPrefix(prefix) {
|
|
547
|
+
return prefix === this._prefix ? this : new FunctionType_1(this._id, prefix, this._markers, this._parameters, this._arrow, this._returnType, this._type);
|
|
548
|
+
}
|
|
549
|
+
get markers() {
|
|
550
|
+
return this._markers;
|
|
551
|
+
}
|
|
552
|
+
withMarkers(markers) {
|
|
553
|
+
return markers === this._markers ? this : new FunctionType_1(this._id, this._prefix, markers, this._parameters, this._arrow, this._returnType, this._type);
|
|
554
|
+
}
|
|
555
|
+
get parameters() {
|
|
556
|
+
return this._parameters.elements;
|
|
557
|
+
}
|
|
558
|
+
withParameters(parameters) {
|
|
559
|
+
return this.padding.withParameters(tree_1.JContainer.withElements(this._parameters, parameters));
|
|
560
|
+
}
|
|
561
|
+
get arrow() {
|
|
562
|
+
return this._arrow;
|
|
563
|
+
}
|
|
564
|
+
withArrow(arrow) {
|
|
565
|
+
return arrow === this._arrow ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._parameters, arrow, this._returnType, this._type);
|
|
566
|
+
}
|
|
567
|
+
get returnType() {
|
|
568
|
+
return this._returnType;
|
|
569
|
+
}
|
|
570
|
+
withReturnType(returnType) {
|
|
571
|
+
return returnType === this._returnType ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._parameters, this._arrow, returnType, this._type);
|
|
572
|
+
}
|
|
573
|
+
get type() {
|
|
574
|
+
return this._type;
|
|
575
|
+
}
|
|
576
|
+
withType(_type) {
|
|
577
|
+
return _type === this._type ? this : new FunctionType_1(this._id, this._prefix, this._markers, this._parameters, this._arrow, this._returnType, _type);
|
|
578
|
+
}
|
|
579
|
+
acceptJavaScript(v, p) {
|
|
580
|
+
return v.visitFunctionType(this, p);
|
|
581
|
+
}
|
|
582
|
+
get padding() {
|
|
583
|
+
const t = this;
|
|
584
|
+
return new class {
|
|
585
|
+
get parameters() {
|
|
586
|
+
return t._parameters;
|
|
587
|
+
}
|
|
588
|
+
withParameters(parameters) {
|
|
589
|
+
return t._parameters === parameters ? t : new FunctionType_1(t._id, t._prefix, t._markers, parameters, t._arrow, t._returnType, t._type);
|
|
590
|
+
}
|
|
591
|
+
};
|
|
592
|
+
}
|
|
593
|
+
};
|
|
594
|
+
exports.FunctionType = FunctionType;
|
|
595
|
+
exports.FunctionType = FunctionType = FunctionType_1 = __decorate([
|
|
596
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$FunctionType")
|
|
597
|
+
], FunctionType);
|
|
598
|
+
let JsImport = JsImport_1 = class JsImport extends (0, support_types_1.JSMixin)(Object) {
|
|
599
|
+
constructor(id, prefix, markers, name, imports, _from, target, initializer) {
|
|
600
|
+
super();
|
|
601
|
+
this._id = id;
|
|
602
|
+
this._prefix = prefix;
|
|
603
|
+
this._markers = markers;
|
|
604
|
+
this._name = name;
|
|
605
|
+
this._imports = imports;
|
|
606
|
+
this._from = _from;
|
|
607
|
+
this._target = target;
|
|
608
|
+
this._initializer = initializer;
|
|
609
|
+
}
|
|
610
|
+
get id() {
|
|
611
|
+
return this._id;
|
|
612
|
+
}
|
|
613
|
+
withId(id) {
|
|
614
|
+
return id === this._id ? this : new JsImport_1(id, this._prefix, this._markers, this._name, this._imports, this._from, this._target, this._initializer);
|
|
615
|
+
}
|
|
616
|
+
get prefix() {
|
|
617
|
+
return this._prefix;
|
|
618
|
+
}
|
|
619
|
+
withPrefix(prefix) {
|
|
620
|
+
return prefix === this._prefix ? this : new JsImport_1(this._id, prefix, this._markers, this._name, this._imports, this._from, this._target, this._initializer);
|
|
621
|
+
}
|
|
622
|
+
get markers() {
|
|
623
|
+
return this._markers;
|
|
624
|
+
}
|
|
625
|
+
withMarkers(markers) {
|
|
626
|
+
return markers === this._markers ? this : new JsImport_1(this._id, this._prefix, markers, this._name, this._imports, this._from, this._target, this._initializer);
|
|
627
|
+
}
|
|
628
|
+
get name() {
|
|
629
|
+
return this._name === null ? null : this._name.element;
|
|
630
|
+
}
|
|
631
|
+
withName(name) {
|
|
632
|
+
return this.padding.withName(tree_1.JRightPadded.withElement(this._name, name));
|
|
633
|
+
}
|
|
634
|
+
get imports() {
|
|
635
|
+
return this._imports === null ? null : this._imports.elements;
|
|
636
|
+
}
|
|
637
|
+
withImports(imports) {
|
|
638
|
+
return this.padding.withImports(tree_1.JContainer.withElementsNullable(this._imports, imports));
|
|
639
|
+
}
|
|
640
|
+
get from() {
|
|
641
|
+
return this._from;
|
|
642
|
+
}
|
|
643
|
+
withFrom(_from) {
|
|
644
|
+
return _from === this._from ? this : new JsImport_1(this._id, this._prefix, this._markers, this._name, this._imports, _from, this._target, this._initializer);
|
|
645
|
+
}
|
|
646
|
+
get target() {
|
|
647
|
+
return this._target;
|
|
648
|
+
}
|
|
649
|
+
withTarget(target) {
|
|
650
|
+
return target === this._target ? this : new JsImport_1(this._id, this._prefix, this._markers, this._name, this._imports, this._from, target, this._initializer);
|
|
651
|
+
}
|
|
652
|
+
get initializer() {
|
|
653
|
+
return this._initializer === null ? null : this._initializer.element;
|
|
654
|
+
}
|
|
655
|
+
withInitializer(initializer) {
|
|
656
|
+
return this.padding.withInitializer(tree_1.JLeftPadded.withElement(this._initializer, initializer));
|
|
657
|
+
}
|
|
658
|
+
acceptJavaScript(v, p) {
|
|
659
|
+
return v.visitJsImport(this, p);
|
|
660
|
+
}
|
|
661
|
+
get padding() {
|
|
662
|
+
const t = this;
|
|
663
|
+
return new class {
|
|
664
|
+
get name() {
|
|
665
|
+
return t._name;
|
|
666
|
+
}
|
|
667
|
+
withName(name) {
|
|
668
|
+
return t._name === name ? t : new JsImport_1(t._id, t._prefix, t._markers, name, t._imports, t._from, t._target, t._initializer);
|
|
669
|
+
}
|
|
670
|
+
get imports() {
|
|
671
|
+
return t._imports;
|
|
672
|
+
}
|
|
673
|
+
withImports(imports) {
|
|
674
|
+
return t._imports === imports ? t : new JsImport_1(t._id, t._prefix, t._markers, t._name, imports, t._from, t._target, t._initializer);
|
|
675
|
+
}
|
|
676
|
+
get initializer() {
|
|
677
|
+
return t._initializer;
|
|
678
|
+
}
|
|
679
|
+
withInitializer(initializer) {
|
|
680
|
+
return t._initializer === initializer ? t : new JsImport_1(t._id, t._prefix, t._markers, t._name, t._imports, t._from, t._target, initializer);
|
|
681
|
+
}
|
|
682
|
+
};
|
|
683
|
+
}
|
|
684
|
+
};
|
|
685
|
+
exports.JsImport = JsImport;
|
|
686
|
+
exports.JsImport = JsImport = JsImport_1 = __decorate([
|
|
687
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$JsImport")
|
|
688
|
+
], JsImport);
|
|
689
|
+
let JsBinary = JsBinary_1 = class JsBinary extends (0, support_types_1.JSMixin)(Object) {
|
|
690
|
+
constructor(id, prefix, markers, left, operator, right, _type) {
|
|
691
|
+
super();
|
|
692
|
+
this._id = id;
|
|
693
|
+
this._prefix = prefix;
|
|
694
|
+
this._markers = markers;
|
|
695
|
+
this._left = left;
|
|
696
|
+
this._operator = operator;
|
|
697
|
+
this._right = right;
|
|
698
|
+
this._type = _type;
|
|
699
|
+
}
|
|
700
|
+
get id() {
|
|
701
|
+
return this._id;
|
|
702
|
+
}
|
|
703
|
+
withId(id) {
|
|
704
|
+
return id === this._id ? this : new JsBinary_1(id, this._prefix, this._markers, this._left, this._operator, this._right, this._type);
|
|
705
|
+
}
|
|
706
|
+
get prefix() {
|
|
707
|
+
return this._prefix;
|
|
708
|
+
}
|
|
709
|
+
withPrefix(prefix) {
|
|
710
|
+
return prefix === this._prefix ? this : new JsBinary_1(this._id, prefix, this._markers, this._left, this._operator, this._right, this._type);
|
|
711
|
+
}
|
|
712
|
+
get markers() {
|
|
713
|
+
return this._markers;
|
|
714
|
+
}
|
|
715
|
+
withMarkers(markers) {
|
|
716
|
+
return markers === this._markers ? this : new JsBinary_1(this._id, this._prefix, markers, this._left, this._operator, this._right, this._type);
|
|
717
|
+
}
|
|
718
|
+
get left() {
|
|
719
|
+
return this._left;
|
|
720
|
+
}
|
|
721
|
+
withLeft(left) {
|
|
722
|
+
return left === this._left ? this : new JsBinary_1(this._id, this._prefix, this._markers, left, this._operator, this._right, this._type);
|
|
723
|
+
}
|
|
724
|
+
get operator() {
|
|
725
|
+
return this._operator.element;
|
|
726
|
+
}
|
|
727
|
+
withOperator(operator) {
|
|
728
|
+
return this.padding.withOperator(this._operator.withElement(operator));
|
|
729
|
+
}
|
|
730
|
+
get right() {
|
|
731
|
+
return this._right;
|
|
732
|
+
}
|
|
733
|
+
withRight(right) {
|
|
734
|
+
return right === this._right ? this : new JsBinary_1(this._id, this._prefix, this._markers, this._left, this._operator, right, this._type);
|
|
735
|
+
}
|
|
736
|
+
get type() {
|
|
737
|
+
return this._type;
|
|
738
|
+
}
|
|
739
|
+
withType(_type) {
|
|
740
|
+
return _type === this._type ? this : new JsBinary_1(this._id, this._prefix, this._markers, this._left, this._operator, this._right, _type);
|
|
741
|
+
}
|
|
742
|
+
acceptJavaScript(v, p) {
|
|
743
|
+
return v.visitJsBinary(this, p);
|
|
744
|
+
}
|
|
745
|
+
get padding() {
|
|
746
|
+
const t = this;
|
|
747
|
+
return new class {
|
|
748
|
+
get operator() {
|
|
749
|
+
return t._operator;
|
|
750
|
+
}
|
|
751
|
+
withOperator(operator) {
|
|
752
|
+
return t._operator === operator ? t : new JsBinary_1(t._id, t._prefix, t._markers, t._left, operator, t._right, t._type);
|
|
753
|
+
}
|
|
754
|
+
};
|
|
755
|
+
}
|
|
756
|
+
};
|
|
757
|
+
exports.JsBinary = JsBinary;
|
|
758
|
+
exports.JsBinary = JsBinary = JsBinary_1 = __decorate([
|
|
759
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$JsBinary")
|
|
760
|
+
], JsBinary);
|
|
761
|
+
(function (JsBinary) {
|
|
762
|
+
let Type;
|
|
763
|
+
(function (Type) {
|
|
764
|
+
Type[Type["As"] = 0] = "As";
|
|
765
|
+
Type[Type["IdentityEquals"] = 1] = "IdentityEquals";
|
|
766
|
+
Type[Type["IdentityNotEquals"] = 2] = "IdentityNotEquals";
|
|
767
|
+
Type[Type["In"] = 3] = "In";
|
|
768
|
+
})(Type = JsBinary.Type || (JsBinary.Type = {}));
|
|
769
|
+
})(JsBinary || (exports.JsBinary = JsBinary = {}));
|
|
770
|
+
let ObjectBindingDeclarations = ObjectBindingDeclarations_1 = class ObjectBindingDeclarations extends (0, support_types_1.JSMixin)(Object) {
|
|
771
|
+
constructor(id, prefix, markers, leadingAnnotations, modifiers, typeExpression, bindings, initializer) {
|
|
772
|
+
super();
|
|
773
|
+
this._id = id;
|
|
774
|
+
this._prefix = prefix;
|
|
775
|
+
this._markers = markers;
|
|
776
|
+
this._leadingAnnotations = leadingAnnotations;
|
|
777
|
+
this._modifiers = modifiers;
|
|
778
|
+
this._typeExpression = typeExpression;
|
|
779
|
+
this._bindings = bindings;
|
|
780
|
+
this._initializer = initializer;
|
|
781
|
+
}
|
|
782
|
+
get id() {
|
|
783
|
+
return this._id;
|
|
784
|
+
}
|
|
785
|
+
withId(id) {
|
|
786
|
+
return id === this._id ? this : new ObjectBindingDeclarations_1(id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._typeExpression, this._bindings, this._initializer);
|
|
787
|
+
}
|
|
788
|
+
get prefix() {
|
|
789
|
+
return this._prefix;
|
|
790
|
+
}
|
|
791
|
+
withPrefix(prefix) {
|
|
792
|
+
return prefix === this._prefix ? this : new ObjectBindingDeclarations_1(this._id, prefix, this._markers, this._leadingAnnotations, this._modifiers, this._typeExpression, this._bindings, this._initializer);
|
|
793
|
+
}
|
|
794
|
+
get markers() {
|
|
795
|
+
return this._markers;
|
|
796
|
+
}
|
|
797
|
+
withMarkers(markers) {
|
|
798
|
+
return markers === this._markers ? this : new ObjectBindingDeclarations_1(this._id, this._prefix, markers, this._leadingAnnotations, this._modifiers, this._typeExpression, this._bindings, this._initializer);
|
|
799
|
+
}
|
|
800
|
+
get leadingAnnotations() {
|
|
801
|
+
return this._leadingAnnotations;
|
|
802
|
+
}
|
|
803
|
+
withLeadingAnnotations(leadingAnnotations) {
|
|
804
|
+
return leadingAnnotations === this._leadingAnnotations ? this : new ObjectBindingDeclarations_1(this._id, this._prefix, this._markers, leadingAnnotations, this._modifiers, this._typeExpression, this._bindings, this._initializer);
|
|
805
|
+
}
|
|
806
|
+
get modifiers() {
|
|
807
|
+
return this._modifiers;
|
|
808
|
+
}
|
|
809
|
+
withModifiers(modifiers) {
|
|
810
|
+
return modifiers === this._modifiers ? this : new ObjectBindingDeclarations_1(this._id, this._prefix, this._markers, this._leadingAnnotations, modifiers, this._typeExpression, this._bindings, this._initializer);
|
|
811
|
+
}
|
|
812
|
+
get typeExpression() {
|
|
813
|
+
return this._typeExpression;
|
|
814
|
+
}
|
|
815
|
+
withTypeExpression(typeExpression) {
|
|
816
|
+
return typeExpression === this._typeExpression ? this : new ObjectBindingDeclarations_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, typeExpression, this._bindings, this._initializer);
|
|
817
|
+
}
|
|
818
|
+
get bindings() {
|
|
819
|
+
return this._bindings.elements;
|
|
820
|
+
}
|
|
821
|
+
withBindings(bindings) {
|
|
822
|
+
return this.padding.withBindings(tree_1.JContainer.withElements(this._bindings, bindings));
|
|
823
|
+
}
|
|
824
|
+
get initializer() {
|
|
825
|
+
return this._initializer === null ? null : this._initializer.element;
|
|
826
|
+
}
|
|
827
|
+
withInitializer(initializer) {
|
|
828
|
+
return this.padding.withInitializer(tree_1.JLeftPadded.withElement(this._initializer, initializer));
|
|
829
|
+
}
|
|
830
|
+
acceptJavaScript(v, p) {
|
|
831
|
+
return v.visitObjectBindingDeclarations(this, p);
|
|
832
|
+
}
|
|
833
|
+
get type() {
|
|
834
|
+
return extensions.getJavaType(this);
|
|
835
|
+
}
|
|
836
|
+
withType(type) {
|
|
837
|
+
return extensions.withJavaType(this, type);
|
|
838
|
+
}
|
|
839
|
+
get padding() {
|
|
840
|
+
const t = this;
|
|
841
|
+
return new class {
|
|
842
|
+
get bindings() {
|
|
843
|
+
return t._bindings;
|
|
844
|
+
}
|
|
845
|
+
withBindings(bindings) {
|
|
846
|
+
return t._bindings === bindings ? t : new ObjectBindingDeclarations_1(t._id, t._prefix, t._markers, t._leadingAnnotations, t._modifiers, t._typeExpression, bindings, t._initializer);
|
|
847
|
+
}
|
|
848
|
+
get initializer() {
|
|
849
|
+
return t._initializer;
|
|
850
|
+
}
|
|
851
|
+
withInitializer(initializer) {
|
|
852
|
+
return t._initializer === initializer ? t : new ObjectBindingDeclarations_1(t._id, t._prefix, t._markers, t._leadingAnnotations, t._modifiers, t._typeExpression, t._bindings, initializer);
|
|
853
|
+
}
|
|
854
|
+
};
|
|
855
|
+
}
|
|
856
|
+
};
|
|
857
|
+
exports.ObjectBindingDeclarations = ObjectBindingDeclarations;
|
|
858
|
+
exports.ObjectBindingDeclarations = ObjectBindingDeclarations = ObjectBindingDeclarations_1 = __decorate([
|
|
859
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$ObjectBindingDeclarations")
|
|
860
|
+
], ObjectBindingDeclarations);
|
|
861
|
+
(function (ObjectBindingDeclarations) {
|
|
862
|
+
let Binding = class Binding extends (0, support_types_1.JSMixin)(Object) {
|
|
863
|
+
constructor(id, prefix, markers, propertyName, name, dimensionsAfterName, afterVararg, initializer, variableType) {
|
|
864
|
+
super();
|
|
865
|
+
this._id = id;
|
|
866
|
+
this._prefix = prefix;
|
|
867
|
+
this._markers = markers;
|
|
868
|
+
this._propertyName = propertyName;
|
|
869
|
+
this._name = name;
|
|
870
|
+
this._dimensionsAfterName = dimensionsAfterName;
|
|
871
|
+
this._afterVararg = afterVararg;
|
|
872
|
+
this._initializer = initializer;
|
|
873
|
+
this._variableType = variableType;
|
|
874
|
+
}
|
|
875
|
+
get id() {
|
|
876
|
+
return this._id;
|
|
877
|
+
}
|
|
878
|
+
withId(id) {
|
|
879
|
+
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);
|
|
880
|
+
}
|
|
881
|
+
get prefix() {
|
|
882
|
+
return this._prefix;
|
|
883
|
+
}
|
|
884
|
+
withPrefix(prefix) {
|
|
885
|
+
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);
|
|
886
|
+
}
|
|
887
|
+
get markers() {
|
|
888
|
+
return this._markers;
|
|
889
|
+
}
|
|
890
|
+
withMarkers(markers) {
|
|
891
|
+
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);
|
|
892
|
+
}
|
|
893
|
+
get propertyName() {
|
|
894
|
+
return this._propertyName === null ? null : this._propertyName.element;
|
|
895
|
+
}
|
|
896
|
+
withPropertyName(propertyName) {
|
|
897
|
+
return this.padding.withPropertyName(tree_1.JRightPadded.withElement(this._propertyName, propertyName));
|
|
898
|
+
}
|
|
899
|
+
get name() {
|
|
900
|
+
return this._name;
|
|
901
|
+
}
|
|
902
|
+
withName(name) {
|
|
903
|
+
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);
|
|
904
|
+
}
|
|
905
|
+
get dimensionsAfterName() {
|
|
906
|
+
return this._dimensionsAfterName;
|
|
907
|
+
}
|
|
908
|
+
withDimensionsAfterName(dimensionsAfterName) {
|
|
909
|
+
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);
|
|
910
|
+
}
|
|
911
|
+
get afterVararg() {
|
|
912
|
+
return this._afterVararg;
|
|
913
|
+
}
|
|
914
|
+
withAfterVararg(afterVararg) {
|
|
915
|
+
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);
|
|
916
|
+
}
|
|
917
|
+
get initializer() {
|
|
918
|
+
return this._initializer === null ? null : this._initializer.element;
|
|
919
|
+
}
|
|
920
|
+
withInitializer(initializer) {
|
|
921
|
+
return this.padding.withInitializer(tree_1.JLeftPadded.withElement(this._initializer, initializer));
|
|
922
|
+
}
|
|
923
|
+
get variableType() {
|
|
924
|
+
return this._variableType;
|
|
925
|
+
}
|
|
926
|
+
withVariableType(variableType) {
|
|
927
|
+
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);
|
|
928
|
+
}
|
|
929
|
+
acceptJavaScript(v, p) {
|
|
930
|
+
return v.visitBinding(this, p);
|
|
931
|
+
}
|
|
932
|
+
get type() {
|
|
933
|
+
return extensions.getJavaType(this);
|
|
934
|
+
}
|
|
935
|
+
withType(type) {
|
|
936
|
+
return extensions.withJavaType(this, type);
|
|
937
|
+
}
|
|
938
|
+
get padding() {
|
|
939
|
+
const t = this;
|
|
940
|
+
return new class {
|
|
941
|
+
get propertyName() {
|
|
942
|
+
return t._propertyName;
|
|
943
|
+
}
|
|
944
|
+
withPropertyName(propertyName) {
|
|
945
|
+
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);
|
|
946
|
+
}
|
|
947
|
+
get initializer() {
|
|
948
|
+
return t._initializer;
|
|
949
|
+
}
|
|
950
|
+
withInitializer(initializer) {
|
|
951
|
+
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);
|
|
952
|
+
}
|
|
953
|
+
};
|
|
954
|
+
}
|
|
955
|
+
};
|
|
956
|
+
Binding = __decorate([
|
|
957
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$ObjectBindingDeclarations$Binding")
|
|
958
|
+
], Binding);
|
|
959
|
+
ObjectBindingDeclarations.Binding = Binding;
|
|
960
|
+
})(ObjectBindingDeclarations || (exports.ObjectBindingDeclarations = ObjectBindingDeclarations = {}));
|
|
961
|
+
let PropertyAssignment = PropertyAssignment_1 = class PropertyAssignment extends (0, support_types_1.JSMixin)(Object) {
|
|
962
|
+
constructor(id, prefix, markers, name, initializer) {
|
|
963
|
+
super();
|
|
964
|
+
this._id = id;
|
|
965
|
+
this._prefix = prefix;
|
|
966
|
+
this._markers = markers;
|
|
967
|
+
this._name = name;
|
|
968
|
+
this._initializer = initializer;
|
|
969
|
+
}
|
|
970
|
+
get id() {
|
|
971
|
+
return this._id;
|
|
972
|
+
}
|
|
973
|
+
withId(id) {
|
|
974
|
+
return id === this._id ? this : new PropertyAssignment_1(id, this._prefix, this._markers, this._name, this._initializer);
|
|
975
|
+
}
|
|
976
|
+
get prefix() {
|
|
977
|
+
return this._prefix;
|
|
978
|
+
}
|
|
979
|
+
withPrefix(prefix) {
|
|
980
|
+
return prefix === this._prefix ? this : new PropertyAssignment_1(this._id, prefix, this._markers, this._name, this._initializer);
|
|
981
|
+
}
|
|
982
|
+
get markers() {
|
|
983
|
+
return this._markers;
|
|
984
|
+
}
|
|
985
|
+
withMarkers(markers) {
|
|
986
|
+
return markers === this._markers ? this : new PropertyAssignment_1(this._id, this._prefix, markers, this._name, this._initializer);
|
|
987
|
+
}
|
|
988
|
+
get name() {
|
|
989
|
+
return this._name.element;
|
|
990
|
+
}
|
|
991
|
+
withName(name) {
|
|
992
|
+
return this.padding.withName(this._name.withElement(name));
|
|
993
|
+
}
|
|
994
|
+
get initializer() {
|
|
995
|
+
return this._initializer;
|
|
996
|
+
}
|
|
997
|
+
withInitializer(initializer) {
|
|
998
|
+
return initializer === this._initializer ? this : new PropertyAssignment_1(this._id, this._prefix, this._markers, this._name, initializer);
|
|
999
|
+
}
|
|
1000
|
+
acceptJavaScript(v, p) {
|
|
1001
|
+
return v.visitPropertyAssignment(this, p);
|
|
1002
|
+
}
|
|
1003
|
+
get type() {
|
|
1004
|
+
return extensions.getJavaType(this);
|
|
1005
|
+
}
|
|
1006
|
+
withType(type) {
|
|
1007
|
+
return extensions.withJavaType(this, type);
|
|
1008
|
+
}
|
|
1009
|
+
get padding() {
|
|
1010
|
+
const t = this;
|
|
1011
|
+
return new class {
|
|
1012
|
+
get name() {
|
|
1013
|
+
return t._name;
|
|
1014
|
+
}
|
|
1015
|
+
withName(name) {
|
|
1016
|
+
return t._name === name ? t : new PropertyAssignment_1(t._id, t._prefix, t._markers, name, t._initializer);
|
|
1017
|
+
}
|
|
1018
|
+
};
|
|
1019
|
+
}
|
|
1020
|
+
};
|
|
1021
|
+
exports.PropertyAssignment = PropertyAssignment;
|
|
1022
|
+
exports.PropertyAssignment = PropertyAssignment = PropertyAssignment_1 = __decorate([
|
|
1023
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$PropertyAssignment")
|
|
1024
|
+
], PropertyAssignment);
|
|
1025
|
+
let TemplateExpression = TemplateExpression_1 = class TemplateExpression extends (0, support_types_1.JSMixin)(Object) {
|
|
1026
|
+
constructor(id, prefix, markers, delimiter, tag, strings, _type) {
|
|
1027
|
+
super();
|
|
1028
|
+
this._id = id;
|
|
1029
|
+
this._prefix = prefix;
|
|
1030
|
+
this._markers = markers;
|
|
1031
|
+
this._delimiter = delimiter;
|
|
1032
|
+
this._tag = tag;
|
|
1033
|
+
this._strings = strings;
|
|
1034
|
+
this._type = _type;
|
|
1035
|
+
}
|
|
1036
|
+
get id() {
|
|
1037
|
+
return this._id;
|
|
1038
|
+
}
|
|
1039
|
+
withId(id) {
|
|
1040
|
+
return id === this._id ? this : new TemplateExpression_1(id, this._prefix, this._markers, this._delimiter, this._tag, this._strings, this._type);
|
|
1041
|
+
}
|
|
1042
|
+
get prefix() {
|
|
1043
|
+
return this._prefix;
|
|
1044
|
+
}
|
|
1045
|
+
withPrefix(prefix) {
|
|
1046
|
+
return prefix === this._prefix ? this : new TemplateExpression_1(this._id, prefix, this._markers, this._delimiter, this._tag, this._strings, this._type);
|
|
1047
|
+
}
|
|
1048
|
+
get markers() {
|
|
1049
|
+
return this._markers;
|
|
1050
|
+
}
|
|
1051
|
+
withMarkers(markers) {
|
|
1052
|
+
return markers === this._markers ? this : new TemplateExpression_1(this._id, this._prefix, markers, this._delimiter, this._tag, this._strings, this._type);
|
|
1053
|
+
}
|
|
1054
|
+
get delimiter() {
|
|
1055
|
+
return this._delimiter;
|
|
1056
|
+
}
|
|
1057
|
+
withDelimiter(delimiter) {
|
|
1058
|
+
return delimiter === this._delimiter ? this : new TemplateExpression_1(this._id, this._prefix, this._markers, delimiter, this._tag, this._strings, this._type);
|
|
1059
|
+
}
|
|
1060
|
+
get tag() {
|
|
1061
|
+
return this._tag === null ? null : this._tag.element;
|
|
1062
|
+
}
|
|
1063
|
+
withTag(tag) {
|
|
1064
|
+
return this.padding.withTag(tree_1.JRightPadded.withElement(this._tag, tag));
|
|
1065
|
+
}
|
|
1066
|
+
get strings() {
|
|
1067
|
+
return this._strings;
|
|
1068
|
+
}
|
|
1069
|
+
withStrings(strings) {
|
|
1070
|
+
return strings === this._strings ? this : new TemplateExpression_1(this._id, this._prefix, this._markers, this._delimiter, this._tag, strings, this._type);
|
|
1071
|
+
}
|
|
1072
|
+
get type() {
|
|
1073
|
+
return this._type;
|
|
1074
|
+
}
|
|
1075
|
+
withType(_type) {
|
|
1076
|
+
return _type === this._type ? this : new TemplateExpression_1(this._id, this._prefix, this._markers, this._delimiter, this._tag, this._strings, _type);
|
|
1077
|
+
}
|
|
1078
|
+
acceptJavaScript(v, p) {
|
|
1079
|
+
return v.visitTemplateExpression(this, p);
|
|
1080
|
+
}
|
|
1081
|
+
get padding() {
|
|
1082
|
+
const t = this;
|
|
1083
|
+
return new class {
|
|
1084
|
+
get tag() {
|
|
1085
|
+
return t._tag;
|
|
1086
|
+
}
|
|
1087
|
+
withTag(tag) {
|
|
1088
|
+
return t._tag === tag ? t : new TemplateExpression_1(t._id, t._prefix, t._markers, t._delimiter, tag, t._strings, t._type);
|
|
1089
|
+
}
|
|
1090
|
+
};
|
|
1091
|
+
}
|
|
1092
|
+
};
|
|
1093
|
+
exports.TemplateExpression = TemplateExpression;
|
|
1094
|
+
exports.TemplateExpression = TemplateExpression = TemplateExpression_1 = __decorate([
|
|
1095
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$TemplateExpression")
|
|
1096
|
+
], TemplateExpression);
|
|
1097
|
+
(function (TemplateExpression) {
|
|
1098
|
+
let Value = class Value extends (0, support_types_1.JSMixin)(Object) {
|
|
1099
|
+
constructor(id, prefix, markers, tree, after, enclosedInBraces) {
|
|
1100
|
+
super();
|
|
1101
|
+
this._id = id;
|
|
1102
|
+
this._prefix = prefix;
|
|
1103
|
+
this._markers = markers;
|
|
1104
|
+
this._tree = tree;
|
|
1105
|
+
this._after = after;
|
|
1106
|
+
this._enclosedInBraces = enclosedInBraces;
|
|
1107
|
+
}
|
|
1108
|
+
get id() {
|
|
1109
|
+
return this._id;
|
|
1110
|
+
}
|
|
1111
|
+
withId(id) {
|
|
1112
|
+
return id === this._id ? this : new TemplateExpression.Value(id, this._prefix, this._markers, this._tree, this._after, this._enclosedInBraces);
|
|
1113
|
+
}
|
|
1114
|
+
get prefix() {
|
|
1115
|
+
return this._prefix;
|
|
1116
|
+
}
|
|
1117
|
+
withPrefix(prefix) {
|
|
1118
|
+
return prefix === this._prefix ? this : new TemplateExpression.Value(this._id, prefix, this._markers, this._tree, this._after, this._enclosedInBraces);
|
|
1119
|
+
}
|
|
1120
|
+
get markers() {
|
|
1121
|
+
return this._markers;
|
|
1122
|
+
}
|
|
1123
|
+
withMarkers(markers) {
|
|
1124
|
+
return markers === this._markers ? this : new TemplateExpression.Value(this._id, this._prefix, markers, this._tree, this._after, this._enclosedInBraces);
|
|
1125
|
+
}
|
|
1126
|
+
get tree() {
|
|
1127
|
+
return this._tree;
|
|
1128
|
+
}
|
|
1129
|
+
withTree(tree) {
|
|
1130
|
+
return tree === this._tree ? this : new TemplateExpression.Value(this._id, this._prefix, this._markers, tree, this._after, this._enclosedInBraces);
|
|
1131
|
+
}
|
|
1132
|
+
get after() {
|
|
1133
|
+
return this._after;
|
|
1134
|
+
}
|
|
1135
|
+
withAfter(after) {
|
|
1136
|
+
return after === this._after ? this : new TemplateExpression.Value(this._id, this._prefix, this._markers, this._tree, after, this._enclosedInBraces);
|
|
1137
|
+
}
|
|
1138
|
+
get enclosedInBraces() {
|
|
1139
|
+
return this._enclosedInBraces;
|
|
1140
|
+
}
|
|
1141
|
+
withEnclosedInBraces(enclosedInBraces) {
|
|
1142
|
+
return enclosedInBraces === this._enclosedInBraces ? this : new TemplateExpression.Value(this._id, this._prefix, this._markers, this._tree, this._after, enclosedInBraces);
|
|
1143
|
+
}
|
|
1144
|
+
acceptJavaScript(v, p) {
|
|
1145
|
+
return v.visitTemplateExpressionValue(this, p);
|
|
1146
|
+
}
|
|
1147
|
+
};
|
|
1148
|
+
Value = __decorate([
|
|
1149
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$TemplateExpression$Value")
|
|
1150
|
+
], Value);
|
|
1151
|
+
TemplateExpression.Value = Value;
|
|
1152
|
+
})(TemplateExpression || (exports.TemplateExpression = TemplateExpression = {}));
|
|
1153
|
+
let Tuple = Tuple_1 = class Tuple extends (0, support_types_1.JSMixin)(Object) {
|
|
1154
|
+
constructor(id, prefix, markers, elements, _type) {
|
|
1155
|
+
super();
|
|
1156
|
+
this._id = id;
|
|
1157
|
+
this._prefix = prefix;
|
|
1158
|
+
this._markers = markers;
|
|
1159
|
+
this._elements = elements;
|
|
1160
|
+
this._type = _type;
|
|
1161
|
+
}
|
|
1162
|
+
get id() {
|
|
1163
|
+
return this._id;
|
|
1164
|
+
}
|
|
1165
|
+
withId(id) {
|
|
1166
|
+
return id === this._id ? this : new Tuple_1(id, this._prefix, this._markers, this._elements, this._type);
|
|
1167
|
+
}
|
|
1168
|
+
get prefix() {
|
|
1169
|
+
return this._prefix;
|
|
1170
|
+
}
|
|
1171
|
+
withPrefix(prefix) {
|
|
1172
|
+
return prefix === this._prefix ? this : new Tuple_1(this._id, prefix, this._markers, this._elements, this._type);
|
|
1173
|
+
}
|
|
1174
|
+
get markers() {
|
|
1175
|
+
return this._markers;
|
|
1176
|
+
}
|
|
1177
|
+
withMarkers(markers) {
|
|
1178
|
+
return markers === this._markers ? this : new Tuple_1(this._id, this._prefix, markers, this._elements, this._type);
|
|
1179
|
+
}
|
|
1180
|
+
get elements() {
|
|
1181
|
+
return this._elements.elements;
|
|
1182
|
+
}
|
|
1183
|
+
withElements(elements) {
|
|
1184
|
+
return this.padding.withElements(tree_1.JContainer.withElements(this._elements, elements));
|
|
1185
|
+
}
|
|
1186
|
+
get type() {
|
|
1187
|
+
return this._type;
|
|
1188
|
+
}
|
|
1189
|
+
withType(_type) {
|
|
1190
|
+
return _type === this._type ? this : new Tuple_1(this._id, this._prefix, this._markers, this._elements, _type);
|
|
1191
|
+
}
|
|
1192
|
+
acceptJavaScript(v, p) {
|
|
1193
|
+
return v.visitTuple(this, p);
|
|
1194
|
+
}
|
|
1195
|
+
get padding() {
|
|
1196
|
+
const t = this;
|
|
1197
|
+
return new class {
|
|
1198
|
+
get elements() {
|
|
1199
|
+
return t._elements;
|
|
1200
|
+
}
|
|
1201
|
+
withElements(elements) {
|
|
1202
|
+
return t._elements === elements ? t : new Tuple_1(t._id, t._prefix, t._markers, elements, t._type);
|
|
1203
|
+
}
|
|
1204
|
+
};
|
|
1205
|
+
}
|
|
1206
|
+
};
|
|
1207
|
+
exports.Tuple = Tuple;
|
|
1208
|
+
exports.Tuple = Tuple = Tuple_1 = __decorate([
|
|
1209
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$Tuple")
|
|
1210
|
+
], Tuple);
|
|
1211
|
+
let TypeDeclaration = TypeDeclaration_1 = class TypeDeclaration extends (0, support_types_1.JSMixin)(Object) {
|
|
1212
|
+
constructor(id, prefix, markers, leadingAnnotations, modifiers, name, typeParameters, initializer, _type) {
|
|
1213
|
+
super();
|
|
1214
|
+
this._id = id;
|
|
1215
|
+
this._prefix = prefix;
|
|
1216
|
+
this._markers = markers;
|
|
1217
|
+
this._leadingAnnotations = leadingAnnotations;
|
|
1218
|
+
this._modifiers = modifiers;
|
|
1219
|
+
this._name = name;
|
|
1220
|
+
this._typeParameters = typeParameters;
|
|
1221
|
+
this._initializer = initializer;
|
|
1222
|
+
this._type = _type;
|
|
1223
|
+
}
|
|
1224
|
+
get id() {
|
|
1225
|
+
return this._id;
|
|
1226
|
+
}
|
|
1227
|
+
withId(id) {
|
|
1228
|
+
return id === this._id ? this : new TypeDeclaration_1(id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._name, this._typeParameters, this._initializer, this._type);
|
|
1229
|
+
}
|
|
1230
|
+
get prefix() {
|
|
1231
|
+
return this._prefix;
|
|
1232
|
+
}
|
|
1233
|
+
withPrefix(prefix) {
|
|
1234
|
+
return prefix === this._prefix ? this : new TypeDeclaration_1(this._id, prefix, this._markers, this._leadingAnnotations, this._modifiers, this._name, this._typeParameters, this._initializer, this._type);
|
|
1235
|
+
}
|
|
1236
|
+
get markers() {
|
|
1237
|
+
return this._markers;
|
|
1238
|
+
}
|
|
1239
|
+
withMarkers(markers) {
|
|
1240
|
+
return markers === this._markers ? this : new TypeDeclaration_1(this._id, this._prefix, markers, this._leadingAnnotations, this._modifiers, this._name, this._typeParameters, this._initializer, this._type);
|
|
1241
|
+
}
|
|
1242
|
+
get leadingAnnotations() {
|
|
1243
|
+
return this._leadingAnnotations;
|
|
1244
|
+
}
|
|
1245
|
+
withLeadingAnnotations(leadingAnnotations) {
|
|
1246
|
+
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);
|
|
1247
|
+
}
|
|
1248
|
+
get modifiers() {
|
|
1249
|
+
return this._modifiers;
|
|
1250
|
+
}
|
|
1251
|
+
withModifiers(modifiers) {
|
|
1252
|
+
return modifiers === this._modifiers ? this : new TypeDeclaration_1(this._id, this._prefix, this._markers, this._leadingAnnotations, modifiers, this._name, this._typeParameters, this._initializer, this._type);
|
|
1253
|
+
}
|
|
1254
|
+
get name() {
|
|
1255
|
+
return this._name;
|
|
1256
|
+
}
|
|
1257
|
+
withName(name) {
|
|
1258
|
+
return name === this._name ? this : new TypeDeclaration_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, name, this._typeParameters, this._initializer, this._type);
|
|
1259
|
+
}
|
|
1260
|
+
get typeParameters() {
|
|
1261
|
+
return this._typeParameters;
|
|
1262
|
+
}
|
|
1263
|
+
withTypeParameters(typeParameters) {
|
|
1264
|
+
return typeParameters === this._typeParameters ? this : new TypeDeclaration_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._name, typeParameters, this._initializer, this._type);
|
|
1265
|
+
}
|
|
1266
|
+
get initializer() {
|
|
1267
|
+
return this._initializer.element;
|
|
1268
|
+
}
|
|
1269
|
+
withInitializer(initializer) {
|
|
1270
|
+
return this.padding.withInitializer(this._initializer.withElement(initializer));
|
|
1271
|
+
}
|
|
1272
|
+
get type() {
|
|
1273
|
+
return this._type;
|
|
1274
|
+
}
|
|
1275
|
+
withType(_type) {
|
|
1276
|
+
return _type === this._type ? this : new TypeDeclaration_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._name, this._typeParameters, this._initializer, _type);
|
|
1277
|
+
}
|
|
1278
|
+
acceptJavaScript(v, p) {
|
|
1279
|
+
return v.visitTypeDeclaration(this, p);
|
|
1280
|
+
}
|
|
1281
|
+
get padding() {
|
|
1282
|
+
const t = this;
|
|
1283
|
+
return new class {
|
|
1284
|
+
get initializer() {
|
|
1285
|
+
return t._initializer;
|
|
1286
|
+
}
|
|
1287
|
+
withInitializer(initializer) {
|
|
1288
|
+
return t._initializer === initializer ? t : new TypeDeclaration_1(t._id, t._prefix, t._markers, t._leadingAnnotations, t._modifiers, t._name, t._typeParameters, initializer, t._type);
|
|
1289
|
+
}
|
|
1290
|
+
};
|
|
1291
|
+
}
|
|
1292
|
+
};
|
|
1293
|
+
exports.TypeDeclaration = TypeDeclaration;
|
|
1294
|
+
exports.TypeDeclaration = TypeDeclaration = TypeDeclaration_1 = __decorate([
|
|
1295
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$TypeDeclaration")
|
|
1296
|
+
], TypeDeclaration);
|
|
1297
|
+
let TypeOf = TypeOf_1 = class TypeOf extends (0, support_types_1.JSMixin)(Object) {
|
|
1298
|
+
constructor(id, prefix, markers, expression, _type) {
|
|
1299
|
+
super();
|
|
1300
|
+
this._id = id;
|
|
1301
|
+
this._prefix = prefix;
|
|
1302
|
+
this._markers = markers;
|
|
1303
|
+
this._expression = expression;
|
|
1304
|
+
this._type = _type;
|
|
1305
|
+
}
|
|
1306
|
+
get id() {
|
|
1307
|
+
return this._id;
|
|
1308
|
+
}
|
|
1309
|
+
withId(id) {
|
|
1310
|
+
return id === this._id ? this : new TypeOf_1(id, this._prefix, this._markers, this._expression, this._type);
|
|
1311
|
+
}
|
|
1312
|
+
get prefix() {
|
|
1313
|
+
return this._prefix;
|
|
1314
|
+
}
|
|
1315
|
+
withPrefix(prefix) {
|
|
1316
|
+
return prefix === this._prefix ? this : new TypeOf_1(this._id, prefix, this._markers, this._expression, this._type);
|
|
1317
|
+
}
|
|
1318
|
+
get markers() {
|
|
1319
|
+
return this._markers;
|
|
1320
|
+
}
|
|
1321
|
+
withMarkers(markers) {
|
|
1322
|
+
return markers === this._markers ? this : new TypeOf_1(this._id, this._prefix, markers, this._expression, this._type);
|
|
1323
|
+
}
|
|
1324
|
+
get expression() {
|
|
1325
|
+
return this._expression;
|
|
1326
|
+
}
|
|
1327
|
+
withExpression(expression) {
|
|
1328
|
+
return expression === this._expression ? this : new TypeOf_1(this._id, this._prefix, this._markers, expression, this._type);
|
|
1329
|
+
}
|
|
1330
|
+
get type() {
|
|
1331
|
+
return this._type;
|
|
1332
|
+
}
|
|
1333
|
+
withType(_type) {
|
|
1334
|
+
return _type === this._type ? this : new TypeOf_1(this._id, this._prefix, this._markers, this._expression, _type);
|
|
1335
|
+
}
|
|
1336
|
+
acceptJavaScript(v, p) {
|
|
1337
|
+
return v.visitTypeOf(this, p);
|
|
1338
|
+
}
|
|
1339
|
+
};
|
|
1340
|
+
exports.TypeOf = TypeOf;
|
|
1341
|
+
exports.TypeOf = TypeOf = TypeOf_1 = __decorate([
|
|
1342
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$TypeOf")
|
|
1343
|
+
], TypeOf);
|
|
1344
|
+
let TypeOperator = TypeOperator_1 = class TypeOperator extends (0, support_types_1.JSMixin)(Object) {
|
|
1345
|
+
constructor(id, prefix, markers, operator, expression) {
|
|
1346
|
+
super();
|
|
1347
|
+
this._id = id;
|
|
1348
|
+
this._prefix = prefix;
|
|
1349
|
+
this._markers = markers;
|
|
1350
|
+
this._operator = operator;
|
|
1351
|
+
this._expression = expression;
|
|
1352
|
+
}
|
|
1353
|
+
get id() {
|
|
1354
|
+
return this._id;
|
|
1355
|
+
}
|
|
1356
|
+
withId(id) {
|
|
1357
|
+
return id === this._id ? this : new TypeOperator_1(id, this._prefix, this._markers, this._operator, this._expression);
|
|
1358
|
+
}
|
|
1359
|
+
get prefix() {
|
|
1360
|
+
return this._prefix;
|
|
1361
|
+
}
|
|
1362
|
+
withPrefix(prefix) {
|
|
1363
|
+
return prefix === this._prefix ? this : new TypeOperator_1(this._id, prefix, this._markers, this._operator, this._expression);
|
|
1364
|
+
}
|
|
1365
|
+
get markers() {
|
|
1366
|
+
return this._markers;
|
|
1367
|
+
}
|
|
1368
|
+
withMarkers(markers) {
|
|
1369
|
+
return markers === this._markers ? this : new TypeOperator_1(this._id, this._prefix, markers, this._operator, this._expression);
|
|
1370
|
+
}
|
|
1371
|
+
get operator() {
|
|
1372
|
+
return this._operator;
|
|
1373
|
+
}
|
|
1374
|
+
withOperator(operator) {
|
|
1375
|
+
return operator === this._operator ? this : new TypeOperator_1(this._id, this._prefix, this._markers, operator, this._expression);
|
|
1376
|
+
}
|
|
1377
|
+
get expression() {
|
|
1378
|
+
return this._expression.element;
|
|
1379
|
+
}
|
|
1380
|
+
withExpression(expression) {
|
|
1381
|
+
return this.padding.withExpression(this._expression.withElement(expression));
|
|
1382
|
+
}
|
|
1383
|
+
acceptJavaScript(v, p) {
|
|
1384
|
+
return v.visitTypeOperator(this, p);
|
|
1385
|
+
}
|
|
1386
|
+
get type() {
|
|
1387
|
+
return extensions.getJavaType(this);
|
|
1388
|
+
}
|
|
1389
|
+
withType(type) {
|
|
1390
|
+
return extensions.withJavaType(this, type);
|
|
1391
|
+
}
|
|
1392
|
+
get padding() {
|
|
1393
|
+
const t = this;
|
|
1394
|
+
return new class {
|
|
1395
|
+
get expression() {
|
|
1396
|
+
return t._expression;
|
|
1397
|
+
}
|
|
1398
|
+
withExpression(expression) {
|
|
1399
|
+
return t._expression === expression ? t : new TypeOperator_1(t._id, t._prefix, t._markers, t._operator, expression);
|
|
1400
|
+
}
|
|
1401
|
+
};
|
|
1402
|
+
}
|
|
1403
|
+
};
|
|
1404
|
+
exports.TypeOperator = TypeOperator;
|
|
1405
|
+
exports.TypeOperator = TypeOperator = TypeOperator_1 = __decorate([
|
|
1406
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$TypeOperator")
|
|
1407
|
+
], TypeOperator);
|
|
1408
|
+
(function (TypeOperator) {
|
|
1409
|
+
let Type;
|
|
1410
|
+
(function (Type) {
|
|
1411
|
+
Type[Type["ReadOnly"] = 0] = "ReadOnly";
|
|
1412
|
+
Type[Type["KeyOf"] = 1] = "KeyOf";
|
|
1413
|
+
})(Type = TypeOperator.Type || (TypeOperator.Type = {}));
|
|
1414
|
+
})(TypeOperator || (exports.TypeOperator = TypeOperator = {}));
|
|
1415
|
+
let Unary = Unary_1 = class Unary extends (0, support_types_1.JSMixin)(Object) {
|
|
1416
|
+
constructor(id, prefix, markers, operator, expression, _type) {
|
|
1417
|
+
super();
|
|
1418
|
+
this._id = id;
|
|
1419
|
+
this._prefix = prefix;
|
|
1420
|
+
this._markers = markers;
|
|
1421
|
+
this._operator = operator;
|
|
1422
|
+
this._expression = expression;
|
|
1423
|
+
this._type = _type;
|
|
1424
|
+
}
|
|
1425
|
+
get id() {
|
|
1426
|
+
return this._id;
|
|
1427
|
+
}
|
|
1428
|
+
withId(id) {
|
|
1429
|
+
return id === this._id ? this : new Unary_1(id, this._prefix, this._markers, this._operator, this._expression, this._type);
|
|
1430
|
+
}
|
|
1431
|
+
get prefix() {
|
|
1432
|
+
return this._prefix;
|
|
1433
|
+
}
|
|
1434
|
+
withPrefix(prefix) {
|
|
1435
|
+
return prefix === this._prefix ? this : new Unary_1(this._id, prefix, this._markers, this._operator, this._expression, this._type);
|
|
1436
|
+
}
|
|
1437
|
+
get markers() {
|
|
1438
|
+
return this._markers;
|
|
1439
|
+
}
|
|
1440
|
+
withMarkers(markers) {
|
|
1441
|
+
return markers === this._markers ? this : new Unary_1(this._id, this._prefix, markers, this._operator, this._expression, this._type);
|
|
1442
|
+
}
|
|
1443
|
+
get operator() {
|
|
1444
|
+
return this._operator.element;
|
|
1445
|
+
}
|
|
1446
|
+
withOperator(operator) {
|
|
1447
|
+
return this.padding.withOperator(this._operator.withElement(operator));
|
|
1448
|
+
}
|
|
1449
|
+
get expression() {
|
|
1450
|
+
return this._expression;
|
|
1451
|
+
}
|
|
1452
|
+
withExpression(expression) {
|
|
1453
|
+
return expression === this._expression ? this : new Unary_1(this._id, this._prefix, this._markers, this._operator, expression, this._type);
|
|
1454
|
+
}
|
|
1455
|
+
get type() {
|
|
1456
|
+
return this._type;
|
|
1457
|
+
}
|
|
1458
|
+
withType(_type) {
|
|
1459
|
+
return _type === this._type ? this : new Unary_1(this._id, this._prefix, this._markers, this._operator, this._expression, _type);
|
|
1460
|
+
}
|
|
1461
|
+
acceptJavaScript(v, p) {
|
|
1462
|
+
return v.visitJsUnary(this, p);
|
|
1463
|
+
}
|
|
1464
|
+
get padding() {
|
|
1465
|
+
const t = this;
|
|
1466
|
+
return new class {
|
|
1467
|
+
get operator() {
|
|
1468
|
+
return t._operator;
|
|
1469
|
+
}
|
|
1470
|
+
withOperator(operator) {
|
|
1471
|
+
return t._operator === operator ? t : new Unary_1(t._id, t._prefix, t._markers, operator, t._expression, t._type);
|
|
1472
|
+
}
|
|
1473
|
+
};
|
|
1474
|
+
}
|
|
1475
|
+
};
|
|
1476
|
+
exports.Unary = Unary;
|
|
1477
|
+
exports.Unary = Unary = Unary_1 = __decorate([
|
|
1478
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$Unary")
|
|
1479
|
+
], Unary);
|
|
1480
|
+
(function (Unary) {
|
|
1481
|
+
let Type;
|
|
1482
|
+
(function (Type) {
|
|
1483
|
+
Type[Type["Spread"] = 0] = "Spread";
|
|
1484
|
+
})(Type = Unary.Type || (Unary.Type = {}));
|
|
1485
|
+
})(Unary || (exports.Unary = Unary = {}));
|
|
1486
|
+
let Union = Union_1 = class Union extends (0, support_types_1.JSMixin)(Object) {
|
|
1487
|
+
constructor(id, prefix, markers, types, _type) {
|
|
1488
|
+
super();
|
|
1489
|
+
this._id = id;
|
|
1490
|
+
this._prefix = prefix;
|
|
1491
|
+
this._markers = markers;
|
|
1492
|
+
this._types = types;
|
|
1493
|
+
this._type = _type;
|
|
1494
|
+
}
|
|
1495
|
+
get id() {
|
|
1496
|
+
return this._id;
|
|
1497
|
+
}
|
|
1498
|
+
withId(id) {
|
|
1499
|
+
return id === this._id ? this : new Union_1(id, this._prefix, this._markers, this._types, this._type);
|
|
1500
|
+
}
|
|
1501
|
+
get prefix() {
|
|
1502
|
+
return this._prefix;
|
|
1503
|
+
}
|
|
1504
|
+
withPrefix(prefix) {
|
|
1505
|
+
return prefix === this._prefix ? this : new Union_1(this._id, prefix, this._markers, this._types, this._type);
|
|
1506
|
+
}
|
|
1507
|
+
get markers() {
|
|
1508
|
+
return this._markers;
|
|
1509
|
+
}
|
|
1510
|
+
withMarkers(markers) {
|
|
1511
|
+
return markers === this._markers ? this : new Union_1(this._id, this._prefix, markers, this._types, this._type);
|
|
1512
|
+
}
|
|
1513
|
+
get types() {
|
|
1514
|
+
return tree_1.JRightPadded.getElements(this._types);
|
|
1515
|
+
}
|
|
1516
|
+
withTypes(types) {
|
|
1517
|
+
return this.padding.withTypes(tree_1.JRightPadded.withElements(this._types, types));
|
|
1518
|
+
}
|
|
1519
|
+
get type() {
|
|
1520
|
+
return this._type;
|
|
1521
|
+
}
|
|
1522
|
+
withType(_type) {
|
|
1523
|
+
return _type === this._type ? this : new Union_1(this._id, this._prefix, this._markers, this._types, _type);
|
|
1524
|
+
}
|
|
1525
|
+
acceptJavaScript(v, p) {
|
|
1526
|
+
return v.visitUnion(this, p);
|
|
1527
|
+
}
|
|
1528
|
+
get padding() {
|
|
1529
|
+
const t = this;
|
|
1530
|
+
return new class {
|
|
1531
|
+
get types() {
|
|
1532
|
+
return t._types;
|
|
1533
|
+
}
|
|
1534
|
+
withTypes(types) {
|
|
1535
|
+
return t._types === types ? t : new Union_1(t._id, t._prefix, t._markers, types, t._type);
|
|
1536
|
+
}
|
|
1537
|
+
};
|
|
1538
|
+
}
|
|
1539
|
+
};
|
|
1540
|
+
exports.Union = Union;
|
|
1541
|
+
exports.Union = Union = Union_1 = __decorate([
|
|
1542
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$Union")
|
|
1543
|
+
], Union);
|
|
1544
|
+
let Void = Void_1 = class Void extends (0, support_types_1.JSMixin)(Object) {
|
|
1545
|
+
constructor(id, prefix, markers, expression) {
|
|
1546
|
+
super();
|
|
1547
|
+
this._id = id;
|
|
1548
|
+
this._prefix = prefix;
|
|
1549
|
+
this._markers = markers;
|
|
1550
|
+
this._expression = expression;
|
|
1551
|
+
}
|
|
1552
|
+
get id() {
|
|
1553
|
+
return this._id;
|
|
1554
|
+
}
|
|
1555
|
+
withId(id) {
|
|
1556
|
+
return id === this._id ? this : new Void_1(id, this._prefix, this._markers, this._expression);
|
|
1557
|
+
}
|
|
1558
|
+
get prefix() {
|
|
1559
|
+
return this._prefix;
|
|
1560
|
+
}
|
|
1561
|
+
withPrefix(prefix) {
|
|
1562
|
+
return prefix === this._prefix ? this : new Void_1(this._id, prefix, this._markers, this._expression);
|
|
1563
|
+
}
|
|
1564
|
+
get markers() {
|
|
1565
|
+
return this._markers;
|
|
1566
|
+
}
|
|
1567
|
+
withMarkers(markers) {
|
|
1568
|
+
return markers === this._markers ? this : new Void_1(this._id, this._prefix, markers, this._expression);
|
|
1569
|
+
}
|
|
1570
|
+
get expression() {
|
|
1571
|
+
return this._expression;
|
|
1572
|
+
}
|
|
1573
|
+
withExpression(expression) {
|
|
1574
|
+
return expression === this._expression ? this : new Void_1(this._id, this._prefix, this._markers, expression);
|
|
1575
|
+
}
|
|
1576
|
+
acceptJavaScript(v, p) {
|
|
1577
|
+
return v.visitVoid(this, p);
|
|
1578
|
+
}
|
|
1579
|
+
get type() {
|
|
1580
|
+
return extensions.getJavaType(this);
|
|
1581
|
+
}
|
|
1582
|
+
withType(type) {
|
|
1583
|
+
return extensions.withJavaType(this, type);
|
|
1584
|
+
}
|
|
1585
|
+
};
|
|
1586
|
+
exports.Void = Void;
|
|
1587
|
+
exports.Void = Void = Void_1 = __decorate([
|
|
1588
|
+
(0, core_1.LstType)("org.openrewrite.javascript.tree.JS$Void")
|
|
1589
|
+
], Void);
|
|
1590
|
+
//# sourceMappingURL=tree.js.map
|