@openrewrite/rewrite 0.18.4 → 0.18.6

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.
Files changed (68) hide show
  1. package/dist/src/java/remote/index.d.ts +4 -0
  2. package/dist/src/java/remote/index.d.ts.map +1 -0
  3. package/dist/src/java/remote/index.js +20 -0
  4. package/dist/src/java/remote/index.js.map +1 -0
  5. package/dist/src/java/remote/receiver.d.ts +8 -0
  6. package/dist/src/java/remote/receiver.d.ts.map +1 -0
  7. package/dist/src/java/remote/receiver.js +909 -0
  8. package/dist/src/java/remote/receiver.js.map +1 -0
  9. package/dist/src/java/remote/register.d.ts +2 -0
  10. package/dist/src/java/remote/register.d.ts.map +1 -0
  11. package/dist/src/java/remote/register.js +122 -0
  12. package/dist/src/java/remote/register.js.map +1 -0
  13. package/dist/src/java/remote/remote_extensions.d.ts +17 -0
  14. package/dist/src/java/remote/remote_extensions.d.ts.map +1 -0
  15. package/dist/src/java/remote/remote_extensions.js +119 -0
  16. package/dist/src/java/remote/remote_extensions.js.map +1 -0
  17. package/dist/src/java/remote/sender.d.ts +6 -0
  18. package/dist/src/java/remote/sender.d.ts.map +1 -0
  19. package/dist/src/java/remote/sender.js +674 -0
  20. package/dist/src/java/remote/sender.js.map +1 -0
  21. package/dist/src/java/tree/extensions.d.ts.map +1 -1
  22. package/dist/src/java/tree/extensions.js +3 -0
  23. package/dist/src/java/tree/extensions.js.map +1 -1
  24. package/dist/src/javascript/parser.d.ts +5 -5
  25. package/dist/src/javascript/parser.d.ts.map +1 -1
  26. package/dist/src/javascript/parser.js +54 -30
  27. package/dist/src/javascript/parser.js.map +1 -1
  28. package/dist/src/javascript/remote/index.d.ts +4 -0
  29. package/dist/src/javascript/remote/index.d.ts.map +1 -0
  30. package/dist/src/javascript/remote/index.js +20 -0
  31. package/dist/src/javascript/remote/index.js.map +1 -0
  32. package/dist/src/javascript/remote/receiver.d.ts +8 -0
  33. package/dist/src/javascript/remote/receiver.d.ts.map +1 -0
  34. package/dist/src/javascript/remote/receiver.js +1209 -0
  35. package/dist/src/javascript/remote/receiver.js.map +1 -0
  36. package/dist/src/javascript/remote/register.d.ts +2 -0
  37. package/dist/src/javascript/remote/register.d.ts.map +1 -0
  38. package/dist/src/javascript/remote/register.js +11 -0
  39. package/dist/src/javascript/remote/register.js.map +1 -0
  40. package/dist/src/javascript/remote/remote_extensions.d.ts +18 -0
  41. package/dist/src/javascript/remote/remote_extensions.d.ts.map +1 -0
  42. package/dist/src/javascript/remote/remote_extensions.js +75 -0
  43. package/dist/src/javascript/remote/remote_extensions.js.map +1 -0
  44. package/dist/src/javascript/remote/sender.d.ts +6 -0
  45. package/dist/src/javascript/remote/sender.d.ts.map +1 -0
  46. package/dist/src/javascript/remote/sender.js +898 -0
  47. package/dist/src/javascript/remote/sender.js.map +1 -0
  48. package/dist/src/yaml/remote/index.d.ts +4 -0
  49. package/dist/src/yaml/remote/index.d.ts.map +1 -0
  50. package/dist/src/yaml/remote/index.js +20 -0
  51. package/dist/src/yaml/remote/index.js.map +1 -0
  52. package/dist/src/yaml/remote/receiver.d.ts +8 -0
  53. package/dist/src/yaml/remote/receiver.d.ts.map +1 -0
  54. package/dist/src/yaml/remote/receiver.js +147 -0
  55. package/dist/src/yaml/remote/receiver.js.map +1 -0
  56. package/dist/src/yaml/remote/register.d.ts +2 -0
  57. package/dist/src/yaml/remote/register.d.ts.map +1 -0
  58. package/dist/src/yaml/remote/register.js +11 -0
  59. package/dist/src/yaml/remote/register.js.map +1 -0
  60. package/dist/src/yaml/remote/remote_extensions.d.ts +2 -0
  61. package/dist/src/yaml/remote/remote_extensions.d.ts.map +1 -0
  62. package/dist/src/yaml/remote/remote_extensions.js +3 -0
  63. package/dist/src/yaml/remote/remote_extensions.js.map +1 -0
  64. package/dist/src/yaml/remote/sender.d.ts +6 -0
  65. package/dist/src/yaml/remote/sender.d.ts.map +1 -0
  66. package/dist/src/yaml/remote/sender.js +108 -0
  67. package/dist/src/yaml/remote/sender.js.map +1 -0
  68. package/package.json +13 -2
@@ -0,0 +1,1209 @@
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 __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.JavaScriptReceiver = void 0;
27
+ const extensions = __importStar(require("./remote_extensions"));
28
+ const core_1 = require("../../core");
29
+ const __1 = require("..");
30
+ const tree_1 = require("../tree");
31
+ const java_1 = require("../../java");
32
+ const Java = __importStar(require("../../java/tree"));
33
+ class JavaScriptReceiver {
34
+ fork(ctx) {
35
+ return ctx.fork(new Visitor(), new Factory());
36
+ }
37
+ receive(before, ctx) {
38
+ let forked = this.fork(ctx);
39
+ return forked.visitor.visit(before, forked);
40
+ }
41
+ }
42
+ exports.JavaScriptReceiver = JavaScriptReceiver;
43
+ class Visitor extends __1.JavaScriptVisitor {
44
+ visit(tree, ctx) {
45
+ this.cursor = new core_1.Cursor(this.cursor, tree);
46
+ tree = ctx.receiveNode(tree, ctx.receiveTree);
47
+ this.cursor = this.cursor.parent;
48
+ return tree;
49
+ }
50
+ visitJsCompilationUnit(compilationUnit, ctx) {
51
+ compilationUnit = compilationUnit.withId(ctx.receiveValue(compilationUnit.id, 0));
52
+ compilationUnit = compilationUnit.withPrefix(ctx.receiveNode(compilationUnit.prefix, receiveSpace));
53
+ compilationUnit = compilationUnit.withMarkers(ctx.receiveNode(compilationUnit.markers, ctx.receiveMarkers));
54
+ compilationUnit = compilationUnit.withSourcePath(ctx.receiveValue(compilationUnit.sourcePath, 1));
55
+ compilationUnit = compilationUnit.withFileAttributes(ctx.receiveValue(compilationUnit.fileAttributes, 5));
56
+ compilationUnit = compilationUnit.withCharsetName(ctx.receiveValue(compilationUnit.charsetName, 1));
57
+ compilationUnit = compilationUnit.withCharsetBomMarked(ctx.receiveValue(compilationUnit.charsetBomMarked, 1));
58
+ compilationUnit = compilationUnit.withChecksum(ctx.receiveValue(compilationUnit.checksum, 5));
59
+ compilationUnit = compilationUnit.padding.withImports(ctx.receiveNodes(compilationUnit.padding.imports, receiveRightPaddedTree));
60
+ compilationUnit = compilationUnit.padding.withStatements(ctx.receiveNodes(compilationUnit.padding.statements, receiveRightPaddedTree));
61
+ compilationUnit = compilationUnit.withEof(ctx.receiveNode(compilationUnit.eof, receiveSpace));
62
+ return compilationUnit;
63
+ }
64
+ visitAlias(alias, ctx) {
65
+ alias = alias.withId(ctx.receiveValue(alias.id, 0));
66
+ alias = alias.withPrefix(ctx.receiveNode(alias.prefix, receiveSpace));
67
+ alias = alias.withMarkers(ctx.receiveNode(alias.markers, ctx.receiveMarkers));
68
+ alias = alias.padding.withPropertyName(ctx.receiveNode(alias.padding.propertyName, receiveRightPaddedTree));
69
+ alias = alias.withAlias(ctx.receiveNode(alias.alias, ctx.receiveTree));
70
+ return alias;
71
+ }
72
+ visitArrowFunction(arrowFunction, ctx) {
73
+ arrowFunction = arrowFunction.withId(ctx.receiveValue(arrowFunction.id, 0));
74
+ arrowFunction = arrowFunction.withPrefix(ctx.receiveNode(arrowFunction.prefix, receiveSpace));
75
+ arrowFunction = arrowFunction.withMarkers(ctx.receiveNode(arrowFunction.markers, ctx.receiveMarkers));
76
+ arrowFunction = arrowFunction.withLeadingAnnotations(ctx.receiveNodes(arrowFunction.leadingAnnotations, ctx.receiveTree));
77
+ arrowFunction = arrowFunction.withModifiers(ctx.receiveNodes(arrowFunction.modifiers, ctx.receiveTree));
78
+ arrowFunction = arrowFunction.withParameters(ctx.receiveNode(arrowFunction.parameters, ctx.receiveTree));
79
+ arrowFunction = arrowFunction.withReturnTypeExpression(ctx.receiveNode(arrowFunction.returnTypeExpression, ctx.receiveTree));
80
+ arrowFunction = arrowFunction.withArrow(ctx.receiveNode(arrowFunction.arrow, receiveSpace));
81
+ arrowFunction = arrowFunction.withBody(ctx.receiveNode(arrowFunction.body, ctx.receiveTree));
82
+ arrowFunction = arrowFunction.withType(ctx.receiveValue(arrowFunction.type, 5));
83
+ return arrowFunction;
84
+ }
85
+ visitAwait(await, ctx) {
86
+ await = await.withId(ctx.receiveValue(await.id, 0));
87
+ await = await.withPrefix(ctx.receiveNode(await.prefix, receiveSpace));
88
+ await = await.withMarkers(ctx.receiveNode(await.markers, ctx.receiveMarkers));
89
+ await = await.withExpression(ctx.receiveNode(await.expression, ctx.receiveTree));
90
+ await = await.withType(ctx.receiveValue(await.type, 5));
91
+ return await;
92
+ }
93
+ visitDefaultType(defaultType, ctx) {
94
+ defaultType = defaultType.withId(ctx.receiveValue(defaultType.id, 0));
95
+ defaultType = defaultType.withPrefix(ctx.receiveNode(defaultType.prefix, receiveSpace));
96
+ defaultType = defaultType.withMarkers(ctx.receiveNode(defaultType.markers, ctx.receiveMarkers));
97
+ defaultType = defaultType.withLeft(ctx.receiveNode(defaultType.left, ctx.receiveTree));
98
+ defaultType = defaultType.withBeforeEquals(ctx.receiveNode(defaultType.beforeEquals, receiveSpace));
99
+ defaultType = defaultType.withRight(ctx.receiveNode(defaultType.right, ctx.receiveTree));
100
+ defaultType = defaultType.withType(ctx.receiveValue(defaultType.type, 5));
101
+ return defaultType;
102
+ }
103
+ visitDelete(_delete, ctx) {
104
+ _delete = _delete.withId(ctx.receiveValue(_delete.id, 0));
105
+ _delete = _delete.withPrefix(ctx.receiveNode(_delete.prefix, receiveSpace));
106
+ _delete = _delete.withMarkers(ctx.receiveNode(_delete.markers, ctx.receiveMarkers));
107
+ _delete = _delete.withExpression(ctx.receiveNode(_delete.expression, ctx.receiveTree));
108
+ _delete = _delete.withType(ctx.receiveValue(_delete.type, 5));
109
+ return _delete;
110
+ }
111
+ visitExport(_export, ctx) {
112
+ _export = _export.withId(ctx.receiveValue(_export.id, 0));
113
+ _export = _export.withPrefix(ctx.receiveNode(_export.prefix, receiveSpace));
114
+ _export = _export.withMarkers(ctx.receiveNode(_export.markers, ctx.receiveMarkers));
115
+ _export = _export.padding.withExports(ctx.receiveNode(_export.padding.exports, receiveContainer));
116
+ _export = _export.withFrom(ctx.receiveNode(_export.from, receiveSpace));
117
+ _export = _export.withTarget(ctx.receiveNode(_export.target, ctx.receiveTree));
118
+ _export = _export.padding.withInitializer(ctx.receiveNode(_export.padding.initializer, receiveLeftPaddedTree));
119
+ return _export;
120
+ }
121
+ visitExpressionStatement(expressionStatement, ctx) {
122
+ expressionStatement = expressionStatement.withId(ctx.receiveValue(expressionStatement.id, 0));
123
+ expressionStatement = expressionStatement.withExpression(ctx.receiveNode(expressionStatement.expression, ctx.receiveTree));
124
+ return expressionStatement;
125
+ }
126
+ visitFunctionType(functionType, ctx) {
127
+ functionType = functionType.withId(ctx.receiveValue(functionType.id, 0));
128
+ functionType = functionType.withPrefix(ctx.receiveNode(functionType.prefix, receiveSpace));
129
+ functionType = functionType.withMarkers(ctx.receiveNode(functionType.markers, ctx.receiveMarkers));
130
+ functionType = functionType.padding.withParameters(ctx.receiveNode(functionType.padding.parameters, receiveContainer));
131
+ functionType = functionType.withArrow(ctx.receiveNode(functionType.arrow, receiveSpace));
132
+ functionType = functionType.withReturnType(ctx.receiveNode(functionType.returnType, ctx.receiveTree));
133
+ functionType = functionType.withType(ctx.receiveValue(functionType.type, 5));
134
+ return functionType;
135
+ }
136
+ visitJsImport(jsImport, ctx) {
137
+ jsImport = jsImport.withId(ctx.receiveValue(jsImport.id, 0));
138
+ jsImport = jsImport.withPrefix(ctx.receiveNode(jsImport.prefix, receiveSpace));
139
+ jsImport = jsImport.withMarkers(ctx.receiveNode(jsImport.markers, ctx.receiveMarkers));
140
+ jsImport = jsImport.padding.withName(ctx.receiveNode(jsImport.padding.name, receiveRightPaddedTree));
141
+ jsImport = jsImport.padding.withImports(ctx.receiveNode(jsImport.padding.imports, receiveContainer));
142
+ jsImport = jsImport.withFrom(ctx.receiveNode(jsImport.from, receiveSpace));
143
+ jsImport = jsImport.withTarget(ctx.receiveNode(jsImport.target, ctx.receiveTree));
144
+ jsImport = jsImport.padding.withInitializer(ctx.receiveNode(jsImport.padding.initializer, receiveLeftPaddedTree));
145
+ return jsImport;
146
+ }
147
+ visitJsBinary(jsBinary, ctx) {
148
+ jsBinary = jsBinary.withId(ctx.receiveValue(jsBinary.id, 0));
149
+ jsBinary = jsBinary.withPrefix(ctx.receiveNode(jsBinary.prefix, receiveSpace));
150
+ jsBinary = jsBinary.withMarkers(ctx.receiveNode(jsBinary.markers, ctx.receiveMarkers));
151
+ jsBinary = jsBinary.withLeft(ctx.receiveNode(jsBinary.left, ctx.receiveTree));
152
+ jsBinary = jsBinary.padding.withOperator(ctx.receiveNode(jsBinary.padding.operator, leftPaddedValueReceiver(3)));
153
+ jsBinary = jsBinary.withRight(ctx.receiveNode(jsBinary.right, ctx.receiveTree));
154
+ jsBinary = jsBinary.withType(ctx.receiveValue(jsBinary.type, 5));
155
+ return jsBinary;
156
+ }
157
+ visitObjectBindingDeclarations(objectBindingDeclarations, ctx) {
158
+ objectBindingDeclarations = objectBindingDeclarations.withId(ctx.receiveValue(objectBindingDeclarations.id, 0));
159
+ objectBindingDeclarations = objectBindingDeclarations.withPrefix(ctx.receiveNode(objectBindingDeclarations.prefix, receiveSpace));
160
+ objectBindingDeclarations = objectBindingDeclarations.withMarkers(ctx.receiveNode(objectBindingDeclarations.markers, ctx.receiveMarkers));
161
+ objectBindingDeclarations = objectBindingDeclarations.withLeadingAnnotations(ctx.receiveNodes(objectBindingDeclarations.leadingAnnotations, ctx.receiveTree));
162
+ objectBindingDeclarations = objectBindingDeclarations.withModifiers(ctx.receiveNodes(objectBindingDeclarations.modifiers, ctx.receiveTree));
163
+ objectBindingDeclarations = objectBindingDeclarations.withTypeExpression(ctx.receiveNode(objectBindingDeclarations.typeExpression, ctx.receiveTree));
164
+ objectBindingDeclarations = objectBindingDeclarations.padding.withBindings(ctx.receiveNode(objectBindingDeclarations.padding.bindings, receiveContainer));
165
+ objectBindingDeclarations = objectBindingDeclarations.padding.withInitializer(ctx.receiveNode(objectBindingDeclarations.padding.initializer, receiveLeftPaddedTree));
166
+ return objectBindingDeclarations;
167
+ }
168
+ visitBinding(binding, ctx) {
169
+ binding = binding.withId(ctx.receiveValue(binding.id, 0));
170
+ binding = binding.withPrefix(ctx.receiveNode(binding.prefix, receiveSpace));
171
+ binding = binding.withMarkers(ctx.receiveNode(binding.markers, ctx.receiveMarkers));
172
+ binding = binding.padding.withPropertyName(ctx.receiveNode(binding.padding.propertyName, receiveRightPaddedTree));
173
+ binding = binding.withName(ctx.receiveNode(binding.name, ctx.receiveTree));
174
+ binding = binding.withDimensionsAfterName(ctx.receiveNodes(binding.dimensionsAfterName, leftPaddedNodeReceiver(java_1.Space)));
175
+ binding = binding.withAfterVararg(ctx.receiveNode(binding.afterVararg, receiveSpace));
176
+ binding = binding.padding.withInitializer(ctx.receiveNode(binding.padding.initializer, receiveLeftPaddedTree));
177
+ binding = binding.withVariableType(ctx.receiveValue(binding.variableType, 5));
178
+ return binding;
179
+ }
180
+ visitPropertyAssignment(propertyAssignment, ctx) {
181
+ propertyAssignment = propertyAssignment.withId(ctx.receiveValue(propertyAssignment.id, 0));
182
+ propertyAssignment = propertyAssignment.withPrefix(ctx.receiveNode(propertyAssignment.prefix, receiveSpace));
183
+ propertyAssignment = propertyAssignment.withMarkers(ctx.receiveNode(propertyAssignment.markers, ctx.receiveMarkers));
184
+ propertyAssignment = propertyAssignment.padding.withName(ctx.receiveNode(propertyAssignment.padding.name, receiveRightPaddedTree));
185
+ propertyAssignment = propertyAssignment.withInitializer(ctx.receiveNode(propertyAssignment.initializer, ctx.receiveTree));
186
+ return propertyAssignment;
187
+ }
188
+ visitScopedVariableDeclarations(scopedVariableDeclarations, ctx) {
189
+ scopedVariableDeclarations = scopedVariableDeclarations.withId(ctx.receiveValue(scopedVariableDeclarations.id, 0));
190
+ scopedVariableDeclarations = scopedVariableDeclarations.withPrefix(ctx.receiveNode(scopedVariableDeclarations.prefix, receiveSpace));
191
+ scopedVariableDeclarations = scopedVariableDeclarations.withMarkers(ctx.receiveNode(scopedVariableDeclarations.markers, ctx.receiveMarkers));
192
+ scopedVariableDeclarations = scopedVariableDeclarations.withScope(ctx.receiveValue(scopedVariableDeclarations.scope, 3));
193
+ scopedVariableDeclarations = scopedVariableDeclarations.padding.withVariables(ctx.receiveNodes(scopedVariableDeclarations.padding.variables, receiveRightPaddedTree));
194
+ return scopedVariableDeclarations;
195
+ }
196
+ visitStatementExpression(statementExpression, ctx) {
197
+ statementExpression = statementExpression.withId(ctx.receiveValue(statementExpression.id, 0));
198
+ statementExpression = statementExpression.withStatement(ctx.receiveNode(statementExpression.statement, ctx.receiveTree));
199
+ return statementExpression;
200
+ }
201
+ visitTemplateExpression(templateExpression, ctx) {
202
+ templateExpression = templateExpression.withId(ctx.receiveValue(templateExpression.id, 0));
203
+ templateExpression = templateExpression.withPrefix(ctx.receiveNode(templateExpression.prefix, receiveSpace));
204
+ templateExpression = templateExpression.withMarkers(ctx.receiveNode(templateExpression.markers, ctx.receiveMarkers));
205
+ templateExpression = templateExpression.withDelimiter(ctx.receiveValue(templateExpression.delimiter, 1));
206
+ templateExpression = templateExpression.padding.withTag(ctx.receiveNode(templateExpression.padding.tag, receiveRightPaddedTree));
207
+ templateExpression = templateExpression.withStrings(ctx.receiveNodes(templateExpression.strings, ctx.receiveTree));
208
+ templateExpression = templateExpression.withType(ctx.receiveValue(templateExpression.type, 5));
209
+ return templateExpression;
210
+ }
211
+ visitTemplateExpressionValue(value, ctx) {
212
+ value = value.withId(ctx.receiveValue(value.id, 0));
213
+ value = value.withPrefix(ctx.receiveNode(value.prefix, receiveSpace));
214
+ value = value.withMarkers(ctx.receiveNode(value.markers, ctx.receiveMarkers));
215
+ value = value.withTree(ctx.receiveNode(value.tree, ctx.receiveTree));
216
+ value = value.withAfter(ctx.receiveNode(value.after, receiveSpace));
217
+ value = value.withEnclosedInBraces(ctx.receiveValue(value.enclosedInBraces, 1));
218
+ return value;
219
+ }
220
+ visitTuple(tuple, ctx) {
221
+ tuple = tuple.withId(ctx.receiveValue(tuple.id, 0));
222
+ tuple = tuple.withPrefix(ctx.receiveNode(tuple.prefix, receiveSpace));
223
+ tuple = tuple.withMarkers(ctx.receiveNode(tuple.markers, ctx.receiveMarkers));
224
+ tuple = tuple.padding.withElements(ctx.receiveNode(tuple.padding.elements, receiveContainer));
225
+ tuple = tuple.withType(ctx.receiveValue(tuple.type, 5));
226
+ return tuple;
227
+ }
228
+ visitTypeDeclaration(typeDeclaration, ctx) {
229
+ typeDeclaration = typeDeclaration.withId(ctx.receiveValue(typeDeclaration.id, 0));
230
+ typeDeclaration = typeDeclaration.withPrefix(ctx.receiveNode(typeDeclaration.prefix, receiveSpace));
231
+ typeDeclaration = typeDeclaration.withMarkers(ctx.receiveNode(typeDeclaration.markers, ctx.receiveMarkers));
232
+ typeDeclaration = typeDeclaration.withLeadingAnnotations(ctx.receiveNodes(typeDeclaration.leadingAnnotations, ctx.receiveTree));
233
+ typeDeclaration = typeDeclaration.withModifiers(ctx.receiveNodes(typeDeclaration.modifiers, ctx.receiveTree));
234
+ typeDeclaration = typeDeclaration.withName(ctx.receiveNode(typeDeclaration.name, ctx.receiveTree));
235
+ typeDeclaration = typeDeclaration.withTypeParameters(ctx.receiveNode(typeDeclaration.typeParameters, ctx.receiveTree));
236
+ typeDeclaration = typeDeclaration.padding.withInitializer(ctx.receiveNode(typeDeclaration.padding.initializer, receiveLeftPaddedTree));
237
+ typeDeclaration = typeDeclaration.withType(ctx.receiveValue(typeDeclaration.type, 5));
238
+ return typeDeclaration;
239
+ }
240
+ visitTypeOf(typeOf, ctx) {
241
+ typeOf = typeOf.withId(ctx.receiveValue(typeOf.id, 0));
242
+ typeOf = typeOf.withPrefix(ctx.receiveNode(typeOf.prefix, receiveSpace));
243
+ typeOf = typeOf.withMarkers(ctx.receiveNode(typeOf.markers, ctx.receiveMarkers));
244
+ typeOf = typeOf.withExpression(ctx.receiveNode(typeOf.expression, ctx.receiveTree));
245
+ typeOf = typeOf.withType(ctx.receiveValue(typeOf.type, 5));
246
+ return typeOf;
247
+ }
248
+ visitTypeOperator(typeOperator, ctx) {
249
+ typeOperator = typeOperator.withId(ctx.receiveValue(typeOperator.id, 0));
250
+ typeOperator = typeOperator.withPrefix(ctx.receiveNode(typeOperator.prefix, receiveSpace));
251
+ typeOperator = typeOperator.withMarkers(ctx.receiveNode(typeOperator.markers, ctx.receiveMarkers));
252
+ typeOperator = typeOperator.withOperator(ctx.receiveValue(typeOperator.operator, 3));
253
+ typeOperator = typeOperator.padding.withExpression(ctx.receiveNode(typeOperator.padding.expression, receiveLeftPaddedTree));
254
+ return typeOperator;
255
+ }
256
+ visitJsUnary(unary, ctx) {
257
+ unary = unary.withId(ctx.receiveValue(unary.id, 0));
258
+ unary = unary.withPrefix(ctx.receiveNode(unary.prefix, receiveSpace));
259
+ unary = unary.withMarkers(ctx.receiveNode(unary.markers, ctx.receiveMarkers));
260
+ unary = unary.padding.withOperator(ctx.receiveNode(unary.padding.operator, leftPaddedValueReceiver(3)));
261
+ unary = unary.withExpression(ctx.receiveNode(unary.expression, ctx.receiveTree));
262
+ unary = unary.withType(ctx.receiveValue(unary.type, 5));
263
+ return unary;
264
+ }
265
+ visitUnion(union, ctx) {
266
+ union = union.withId(ctx.receiveValue(union.id, 0));
267
+ union = union.withPrefix(ctx.receiveNode(union.prefix, receiveSpace));
268
+ union = union.withMarkers(ctx.receiveNode(union.markers, ctx.receiveMarkers));
269
+ union = union.padding.withTypes(ctx.receiveNodes(union.padding.types, receiveRightPaddedTree));
270
+ union = union.withType(ctx.receiveValue(union.type, 5));
271
+ return union;
272
+ }
273
+ visitVoid(_void, ctx) {
274
+ _void = _void.withId(ctx.receiveValue(_void.id, 0));
275
+ _void = _void.withPrefix(ctx.receiveNode(_void.prefix, receiveSpace));
276
+ _void = _void.withMarkers(ctx.receiveNode(_void.markers, ctx.receiveMarkers));
277
+ _void = _void.withExpression(ctx.receiveNode(_void.expression, ctx.receiveTree));
278
+ return _void;
279
+ }
280
+ visitJsYield(_yield, ctx) {
281
+ _yield = _yield.withId(ctx.receiveValue(_yield.id, 0));
282
+ _yield = _yield.withPrefix(ctx.receiveNode(_yield.prefix, receiveSpace));
283
+ _yield = _yield.withMarkers(ctx.receiveNode(_yield.markers, ctx.receiveMarkers));
284
+ _yield = _yield.withDelegated(ctx.receiveValue(_yield.delegated, 1));
285
+ _yield = _yield.withExpression(ctx.receiveNode(_yield.expression, ctx.receiveTree));
286
+ _yield = _yield.withType(ctx.receiveValue(_yield.type, 5));
287
+ return _yield;
288
+ }
289
+ visitAnnotatedType(annotatedType, ctx) {
290
+ annotatedType = annotatedType.withId(ctx.receiveValue(annotatedType.id, 0));
291
+ annotatedType = annotatedType.withPrefix(ctx.receiveNode(annotatedType.prefix, receiveSpace));
292
+ annotatedType = annotatedType.withMarkers(ctx.receiveNode(annotatedType.markers, ctx.receiveMarkers));
293
+ annotatedType = annotatedType.withAnnotations(ctx.receiveNodes(annotatedType.annotations, ctx.receiveTree));
294
+ annotatedType = annotatedType.withTypeExpression(ctx.receiveNode(annotatedType.typeExpression, ctx.receiveTree));
295
+ return annotatedType;
296
+ }
297
+ visitAnnotation(annotation, ctx) {
298
+ annotation = annotation.withId(ctx.receiveValue(annotation.id, 0));
299
+ annotation = annotation.withPrefix(ctx.receiveNode(annotation.prefix, receiveSpace));
300
+ annotation = annotation.withMarkers(ctx.receiveNode(annotation.markers, ctx.receiveMarkers));
301
+ annotation = annotation.withAnnotationType(ctx.receiveNode(annotation.annotationType, ctx.receiveTree));
302
+ annotation = annotation.padding.withArguments(ctx.receiveNode(annotation.padding.arguments, receiveContainer));
303
+ return annotation;
304
+ }
305
+ visitArrayAccess(arrayAccess, ctx) {
306
+ arrayAccess = arrayAccess.withId(ctx.receiveValue(arrayAccess.id, 0));
307
+ arrayAccess = arrayAccess.withPrefix(ctx.receiveNode(arrayAccess.prefix, receiveSpace));
308
+ arrayAccess = arrayAccess.withMarkers(ctx.receiveNode(arrayAccess.markers, ctx.receiveMarkers));
309
+ arrayAccess = arrayAccess.withIndexed(ctx.receiveNode(arrayAccess.indexed, ctx.receiveTree));
310
+ arrayAccess = arrayAccess.withDimension(ctx.receiveNode(arrayAccess.dimension, ctx.receiveTree));
311
+ arrayAccess = arrayAccess.withType(ctx.receiveValue(arrayAccess.type, 5));
312
+ return arrayAccess;
313
+ }
314
+ visitArrayType(arrayType, ctx) {
315
+ arrayType = arrayType.withId(ctx.receiveValue(arrayType.id, 0));
316
+ arrayType = arrayType.withPrefix(ctx.receiveNode(arrayType.prefix, receiveSpace));
317
+ arrayType = arrayType.withMarkers(ctx.receiveNode(arrayType.markers, ctx.receiveMarkers));
318
+ arrayType = arrayType.withElementType(ctx.receiveNode(arrayType.elementType, ctx.receiveTree));
319
+ arrayType = arrayType.withAnnotations(ctx.receiveNodes(arrayType.annotations, ctx.receiveTree));
320
+ arrayType = arrayType.withDimension(ctx.receiveNode(arrayType.dimension, leftPaddedNodeReceiver(java_1.Space)));
321
+ arrayType = arrayType.withType(ctx.receiveValue(arrayType.type, 5));
322
+ return arrayType;
323
+ }
324
+ visitAssert(assert, ctx) {
325
+ assert = assert.withId(ctx.receiveValue(assert.id, 0));
326
+ assert = assert.withPrefix(ctx.receiveNode(assert.prefix, receiveSpace));
327
+ assert = assert.withMarkers(ctx.receiveNode(assert.markers, ctx.receiveMarkers));
328
+ assert = assert.withCondition(ctx.receiveNode(assert.condition, ctx.receiveTree));
329
+ assert = assert.withDetail(ctx.receiveNode(assert.detail, receiveLeftPaddedTree));
330
+ return assert;
331
+ }
332
+ visitAssignment(assignment, ctx) {
333
+ assignment = assignment.withId(ctx.receiveValue(assignment.id, 0));
334
+ assignment = assignment.withPrefix(ctx.receiveNode(assignment.prefix, receiveSpace));
335
+ assignment = assignment.withMarkers(ctx.receiveNode(assignment.markers, ctx.receiveMarkers));
336
+ assignment = assignment.withVariable(ctx.receiveNode(assignment.variable, ctx.receiveTree));
337
+ assignment = assignment.padding.withAssignment(ctx.receiveNode(assignment.padding.assignment, receiveLeftPaddedTree));
338
+ assignment = assignment.withType(ctx.receiveValue(assignment.type, 5));
339
+ return assignment;
340
+ }
341
+ visitAssignmentOperation(assignmentOperation, ctx) {
342
+ assignmentOperation = assignmentOperation.withId(ctx.receiveValue(assignmentOperation.id, 0));
343
+ assignmentOperation = assignmentOperation.withPrefix(ctx.receiveNode(assignmentOperation.prefix, receiveSpace));
344
+ assignmentOperation = assignmentOperation.withMarkers(ctx.receiveNode(assignmentOperation.markers, ctx.receiveMarkers));
345
+ assignmentOperation = assignmentOperation.withVariable(ctx.receiveNode(assignmentOperation.variable, ctx.receiveTree));
346
+ assignmentOperation = assignmentOperation.padding.withOperator(ctx.receiveNode(assignmentOperation.padding.operator, leftPaddedValueReceiver(3)));
347
+ assignmentOperation = assignmentOperation.withAssignment(ctx.receiveNode(assignmentOperation.assignment, ctx.receiveTree));
348
+ assignmentOperation = assignmentOperation.withType(ctx.receiveValue(assignmentOperation.type, 5));
349
+ return assignmentOperation;
350
+ }
351
+ visitBinary(binary, ctx) {
352
+ binary = binary.withId(ctx.receiveValue(binary.id, 0));
353
+ binary = binary.withPrefix(ctx.receiveNode(binary.prefix, receiveSpace));
354
+ binary = binary.withMarkers(ctx.receiveNode(binary.markers, ctx.receiveMarkers));
355
+ binary = binary.withLeft(ctx.receiveNode(binary.left, ctx.receiveTree));
356
+ binary = binary.padding.withOperator(ctx.receiveNode(binary.padding.operator, leftPaddedValueReceiver(3)));
357
+ binary = binary.withRight(ctx.receiveNode(binary.right, ctx.receiveTree));
358
+ binary = binary.withType(ctx.receiveValue(binary.type, 5));
359
+ return binary;
360
+ }
361
+ visitBlock(block, ctx) {
362
+ block = block.withId(ctx.receiveValue(block.id, 0));
363
+ block = block.withPrefix(ctx.receiveNode(block.prefix, receiveSpace));
364
+ block = block.withMarkers(ctx.receiveNode(block.markers, ctx.receiveMarkers));
365
+ block = block.padding.withStatic(ctx.receiveNode(block.padding.static, rightPaddedValueReceiver(1)));
366
+ block = block.padding.withStatements(ctx.receiveNodes(block.padding.statements, receiveRightPaddedTree));
367
+ block = block.withEnd(ctx.receiveNode(block.end, receiveSpace));
368
+ return block;
369
+ }
370
+ visitBreak(_break, ctx) {
371
+ _break = _break.withId(ctx.receiveValue(_break.id, 0));
372
+ _break = _break.withPrefix(ctx.receiveNode(_break.prefix, receiveSpace));
373
+ _break = _break.withMarkers(ctx.receiveNode(_break.markers, ctx.receiveMarkers));
374
+ _break = _break.withLabel(ctx.receiveNode(_break.label, ctx.receiveTree));
375
+ return _break;
376
+ }
377
+ visitCase(_case, ctx) {
378
+ _case = _case.withId(ctx.receiveValue(_case.id, 0));
379
+ _case = _case.withPrefix(ctx.receiveNode(_case.prefix, receiveSpace));
380
+ _case = _case.withMarkers(ctx.receiveNode(_case.markers, ctx.receiveMarkers));
381
+ _case = _case.withType(ctx.receiveValue(_case.type, 3));
382
+ _case = _case.padding.withExpressions(ctx.receiveNode(_case.padding.expressions, receiveContainer));
383
+ _case = _case.padding.withStatements(ctx.receiveNode(_case.padding.statements, receiveContainer));
384
+ _case = _case.padding.withBody(ctx.receiveNode(_case.padding.body, receiveRightPaddedTree));
385
+ return _case;
386
+ }
387
+ visitClassDeclaration(classDeclaration, ctx) {
388
+ classDeclaration = classDeclaration.withId(ctx.receiveValue(classDeclaration.id, 0));
389
+ classDeclaration = classDeclaration.withPrefix(ctx.receiveNode(classDeclaration.prefix, receiveSpace));
390
+ classDeclaration = classDeclaration.withMarkers(ctx.receiveNode(classDeclaration.markers, ctx.receiveMarkers));
391
+ classDeclaration = classDeclaration.withLeadingAnnotations(ctx.receiveNodes(classDeclaration.leadingAnnotations, ctx.receiveTree));
392
+ classDeclaration = classDeclaration.withModifiers(ctx.receiveNodes(classDeclaration.modifiers, ctx.receiveTree));
393
+ classDeclaration = classDeclaration.padding.withKind(ctx.receiveNode(classDeclaration.padding.kind, ctx.receiveTree));
394
+ classDeclaration = classDeclaration.withName(ctx.receiveNode(classDeclaration.name, ctx.receiveTree));
395
+ classDeclaration = classDeclaration.padding.withTypeParameters(ctx.receiveNode(classDeclaration.padding.typeParameters, receiveContainer));
396
+ classDeclaration = classDeclaration.padding.withPrimaryConstructor(ctx.receiveNode(classDeclaration.padding.primaryConstructor, receiveContainer));
397
+ classDeclaration = classDeclaration.padding.withExtends(ctx.receiveNode(classDeclaration.padding.extends, receiveLeftPaddedTree));
398
+ classDeclaration = classDeclaration.padding.withImplements(ctx.receiveNode(classDeclaration.padding.implements, receiveContainer));
399
+ classDeclaration = classDeclaration.padding.withPermits(ctx.receiveNode(classDeclaration.padding.permits, receiveContainer));
400
+ classDeclaration = classDeclaration.withBody(ctx.receiveNode(classDeclaration.body, ctx.receiveTree));
401
+ classDeclaration = classDeclaration.withType(ctx.receiveValue(classDeclaration.type, 5));
402
+ return classDeclaration;
403
+ }
404
+ visitClassDeclarationKind(kind, ctx) {
405
+ kind = kind.withId(ctx.receiveValue(kind.id, 0));
406
+ kind = kind.withPrefix(ctx.receiveNode(kind.prefix, receiveSpace));
407
+ kind = kind.withMarkers(ctx.receiveNode(kind.markers, ctx.receiveMarkers));
408
+ kind = kind.withAnnotations(ctx.receiveNodes(kind.annotations, ctx.receiveTree));
409
+ kind = kind.withType(ctx.receiveValue(kind.type, 3));
410
+ return kind;
411
+ }
412
+ visitContinue(_continue, ctx) {
413
+ _continue = _continue.withId(ctx.receiveValue(_continue.id, 0));
414
+ _continue = _continue.withPrefix(ctx.receiveNode(_continue.prefix, receiveSpace));
415
+ _continue = _continue.withMarkers(ctx.receiveNode(_continue.markers, ctx.receiveMarkers));
416
+ _continue = _continue.withLabel(ctx.receiveNode(_continue.label, ctx.receiveTree));
417
+ return _continue;
418
+ }
419
+ visitDoWhileLoop(doWhileLoop, ctx) {
420
+ doWhileLoop = doWhileLoop.withId(ctx.receiveValue(doWhileLoop.id, 0));
421
+ doWhileLoop = doWhileLoop.withPrefix(ctx.receiveNode(doWhileLoop.prefix, receiveSpace));
422
+ doWhileLoop = doWhileLoop.withMarkers(ctx.receiveNode(doWhileLoop.markers, ctx.receiveMarkers));
423
+ doWhileLoop = doWhileLoop.padding.withBody(ctx.receiveNode(doWhileLoop.padding.body, receiveRightPaddedTree));
424
+ doWhileLoop = doWhileLoop.padding.withWhileCondition(ctx.receiveNode(doWhileLoop.padding.whileCondition, receiveLeftPaddedTree));
425
+ return doWhileLoop;
426
+ }
427
+ visitEmpty(empty, ctx) {
428
+ empty = empty.withId(ctx.receiveValue(empty.id, 0));
429
+ empty = empty.withPrefix(ctx.receiveNode(empty.prefix, receiveSpace));
430
+ empty = empty.withMarkers(ctx.receiveNode(empty.markers, ctx.receiveMarkers));
431
+ return empty;
432
+ }
433
+ visitEnumValue(enumValue, ctx) {
434
+ enumValue = enumValue.withId(ctx.receiveValue(enumValue.id, 0));
435
+ enumValue = enumValue.withPrefix(ctx.receiveNode(enumValue.prefix, receiveSpace));
436
+ enumValue = enumValue.withMarkers(ctx.receiveNode(enumValue.markers, ctx.receiveMarkers));
437
+ enumValue = enumValue.withAnnotations(ctx.receiveNodes(enumValue.annotations, ctx.receiveTree));
438
+ enumValue = enumValue.withName(ctx.receiveNode(enumValue.name, ctx.receiveTree));
439
+ enumValue = enumValue.withInitializer(ctx.receiveNode(enumValue.initializer, ctx.receiveTree));
440
+ return enumValue;
441
+ }
442
+ visitEnumValueSet(enumValueSet, ctx) {
443
+ enumValueSet = enumValueSet.withId(ctx.receiveValue(enumValueSet.id, 0));
444
+ enumValueSet = enumValueSet.withPrefix(ctx.receiveNode(enumValueSet.prefix, receiveSpace));
445
+ enumValueSet = enumValueSet.withMarkers(ctx.receiveNode(enumValueSet.markers, ctx.receiveMarkers));
446
+ enumValueSet = enumValueSet.padding.withEnums(ctx.receiveNodes(enumValueSet.padding.enums, receiveRightPaddedTree));
447
+ enumValueSet = enumValueSet.withTerminatedWithSemicolon(ctx.receiveValue(enumValueSet.terminatedWithSemicolon, 1));
448
+ return enumValueSet;
449
+ }
450
+ visitFieldAccess(fieldAccess, ctx) {
451
+ fieldAccess = fieldAccess.withId(ctx.receiveValue(fieldAccess.id, 0));
452
+ fieldAccess = fieldAccess.withPrefix(ctx.receiveNode(fieldAccess.prefix, receiveSpace));
453
+ fieldAccess = fieldAccess.withMarkers(ctx.receiveNode(fieldAccess.markers, ctx.receiveMarkers));
454
+ fieldAccess = fieldAccess.withTarget(ctx.receiveNode(fieldAccess.target, ctx.receiveTree));
455
+ fieldAccess = fieldAccess.padding.withName(ctx.receiveNode(fieldAccess.padding.name, receiveLeftPaddedTree));
456
+ fieldAccess = fieldAccess.withType(ctx.receiveValue(fieldAccess.type, 5));
457
+ return fieldAccess;
458
+ }
459
+ visitForEachLoop(forEachLoop, ctx) {
460
+ forEachLoop = forEachLoop.withId(ctx.receiveValue(forEachLoop.id, 0));
461
+ forEachLoop = forEachLoop.withPrefix(ctx.receiveNode(forEachLoop.prefix, receiveSpace));
462
+ forEachLoop = forEachLoop.withMarkers(ctx.receiveNode(forEachLoop.markers, ctx.receiveMarkers));
463
+ forEachLoop = forEachLoop.withControl(ctx.receiveNode(forEachLoop.control, ctx.receiveTree));
464
+ forEachLoop = forEachLoop.padding.withBody(ctx.receiveNode(forEachLoop.padding.body, receiveRightPaddedTree));
465
+ return forEachLoop;
466
+ }
467
+ visitForEachControl(control, ctx) {
468
+ control = control.withId(ctx.receiveValue(control.id, 0));
469
+ control = control.withPrefix(ctx.receiveNode(control.prefix, receiveSpace));
470
+ control = control.withMarkers(ctx.receiveNode(control.markers, ctx.receiveMarkers));
471
+ control = control.padding.withVariable(ctx.receiveNode(control.padding.variable, receiveRightPaddedTree));
472
+ control = control.padding.withIterable(ctx.receiveNode(control.padding.iterable, receiveRightPaddedTree));
473
+ return control;
474
+ }
475
+ visitForLoop(forLoop, ctx) {
476
+ forLoop = forLoop.withId(ctx.receiveValue(forLoop.id, 0));
477
+ forLoop = forLoop.withPrefix(ctx.receiveNode(forLoop.prefix, receiveSpace));
478
+ forLoop = forLoop.withMarkers(ctx.receiveNode(forLoop.markers, ctx.receiveMarkers));
479
+ forLoop = forLoop.withControl(ctx.receiveNode(forLoop.control, ctx.receiveTree));
480
+ forLoop = forLoop.padding.withBody(ctx.receiveNode(forLoop.padding.body, receiveRightPaddedTree));
481
+ return forLoop;
482
+ }
483
+ visitForControl(control, ctx) {
484
+ control = control.withId(ctx.receiveValue(control.id, 0));
485
+ control = control.withPrefix(ctx.receiveNode(control.prefix, receiveSpace));
486
+ control = control.withMarkers(ctx.receiveNode(control.markers, ctx.receiveMarkers));
487
+ control = control.padding.withInit(ctx.receiveNodes(control.padding.init, receiveRightPaddedTree));
488
+ control = control.padding.withCondition(ctx.receiveNode(control.padding.condition, receiveRightPaddedTree));
489
+ control = control.padding.withUpdate(ctx.receiveNodes(control.padding.update, receiveRightPaddedTree));
490
+ return control;
491
+ }
492
+ visitParenthesizedTypeTree(parenthesizedTypeTree, ctx) {
493
+ parenthesizedTypeTree = parenthesizedTypeTree.withId(ctx.receiveValue(parenthesizedTypeTree.id, 0));
494
+ parenthesizedTypeTree = parenthesizedTypeTree.withPrefix(ctx.receiveNode(parenthesizedTypeTree.prefix, receiveSpace));
495
+ parenthesizedTypeTree = parenthesizedTypeTree.withMarkers(ctx.receiveNode(parenthesizedTypeTree.markers, ctx.receiveMarkers));
496
+ parenthesizedTypeTree = parenthesizedTypeTree.withAnnotations(ctx.receiveNodes(parenthesizedTypeTree.annotations, ctx.receiveTree));
497
+ parenthesizedTypeTree = parenthesizedTypeTree.withParenthesizedType(ctx.receiveNode(parenthesizedTypeTree.parenthesizedType, ctx.receiveTree));
498
+ return parenthesizedTypeTree;
499
+ }
500
+ visitIdentifier(identifier, ctx) {
501
+ identifier = identifier.withId(ctx.receiveValue(identifier.id, 0));
502
+ identifier = identifier.withPrefix(ctx.receiveNode(identifier.prefix, receiveSpace));
503
+ identifier = identifier.withMarkers(ctx.receiveNode(identifier.markers, ctx.receiveMarkers));
504
+ identifier = identifier.withAnnotations(ctx.receiveNodes(identifier.annotations, ctx.receiveTree));
505
+ identifier = identifier.withSimpleName(ctx.receiveValue(identifier.simpleName, 1));
506
+ identifier = identifier.withType(ctx.receiveValue(identifier.type, 5));
507
+ identifier = identifier.withFieldType(ctx.receiveValue(identifier.fieldType, 5));
508
+ return identifier;
509
+ }
510
+ visitIf(_if, ctx) {
511
+ _if = _if.withId(ctx.receiveValue(_if.id, 0));
512
+ _if = _if.withPrefix(ctx.receiveNode(_if.prefix, receiveSpace));
513
+ _if = _if.withMarkers(ctx.receiveNode(_if.markers, ctx.receiveMarkers));
514
+ _if = _if.withIfCondition(ctx.receiveNode(_if.ifCondition, ctx.receiveTree));
515
+ _if = _if.padding.withThenPart(ctx.receiveNode(_if.padding.thenPart, receiveRightPaddedTree));
516
+ _if = _if.withElsePart(ctx.receiveNode(_if.elsePart, ctx.receiveTree));
517
+ return _if;
518
+ }
519
+ visitElse(_else, ctx) {
520
+ _else = _else.withId(ctx.receiveValue(_else.id, 0));
521
+ _else = _else.withPrefix(ctx.receiveNode(_else.prefix, receiveSpace));
522
+ _else = _else.withMarkers(ctx.receiveNode(_else.markers, ctx.receiveMarkers));
523
+ _else = _else.padding.withBody(ctx.receiveNode(_else.padding.body, receiveRightPaddedTree));
524
+ return _else;
525
+ }
526
+ visitImport(_import, ctx) {
527
+ _import = _import.withId(ctx.receiveValue(_import.id, 0));
528
+ _import = _import.withPrefix(ctx.receiveNode(_import.prefix, receiveSpace));
529
+ _import = _import.withMarkers(ctx.receiveNode(_import.markers, ctx.receiveMarkers));
530
+ _import = _import.padding.withStatic(ctx.receiveNode(_import.padding.static, leftPaddedValueReceiver(1)));
531
+ _import = _import.withQualid(ctx.receiveNode(_import.qualid, ctx.receiveTree));
532
+ _import = _import.padding.withAlias(ctx.receiveNode(_import.padding.alias, receiveLeftPaddedTree));
533
+ return _import;
534
+ }
535
+ visitInstanceOf(instanceOf, ctx) {
536
+ instanceOf = instanceOf.withId(ctx.receiveValue(instanceOf.id, 0));
537
+ instanceOf = instanceOf.withPrefix(ctx.receiveNode(instanceOf.prefix, receiveSpace));
538
+ instanceOf = instanceOf.withMarkers(ctx.receiveNode(instanceOf.markers, ctx.receiveMarkers));
539
+ instanceOf = instanceOf.padding.withExpression(ctx.receiveNode(instanceOf.padding.expression, receiveRightPaddedTree));
540
+ instanceOf = instanceOf.withClazz(ctx.receiveNode(instanceOf.clazz, ctx.receiveTree));
541
+ instanceOf = instanceOf.withPattern(ctx.receiveNode(instanceOf.pattern, ctx.receiveTree));
542
+ instanceOf = instanceOf.withType(ctx.receiveValue(instanceOf.type, 5));
543
+ return instanceOf;
544
+ }
545
+ visitIntersectionType(intersectionType, ctx) {
546
+ intersectionType = intersectionType.withId(ctx.receiveValue(intersectionType.id, 0));
547
+ intersectionType = intersectionType.withPrefix(ctx.receiveNode(intersectionType.prefix, receiveSpace));
548
+ intersectionType = intersectionType.withMarkers(ctx.receiveNode(intersectionType.markers, ctx.receiveMarkers));
549
+ intersectionType = intersectionType.padding.withBounds(ctx.receiveNode(intersectionType.padding.bounds, receiveContainer));
550
+ return intersectionType;
551
+ }
552
+ visitLabel(label, ctx) {
553
+ label = label.withId(ctx.receiveValue(label.id, 0));
554
+ label = label.withPrefix(ctx.receiveNode(label.prefix, receiveSpace));
555
+ label = label.withMarkers(ctx.receiveNode(label.markers, ctx.receiveMarkers));
556
+ label = label.padding.withLabel(ctx.receiveNode(label.padding.label, receiveRightPaddedTree));
557
+ label = label.withStatement(ctx.receiveNode(label.statement, ctx.receiveTree));
558
+ return label;
559
+ }
560
+ visitLambda(lambda, ctx) {
561
+ lambda = lambda.withId(ctx.receiveValue(lambda.id, 0));
562
+ lambda = lambda.withPrefix(ctx.receiveNode(lambda.prefix, receiveSpace));
563
+ lambda = lambda.withMarkers(ctx.receiveNode(lambda.markers, ctx.receiveMarkers));
564
+ lambda = lambda.withParameters(ctx.receiveNode(lambda.parameters, ctx.receiveTree));
565
+ lambda = lambda.withArrow(ctx.receiveNode(lambda.arrow, receiveSpace));
566
+ lambda = lambda.withBody(ctx.receiveNode(lambda.body, ctx.receiveTree));
567
+ lambda = lambda.withType(ctx.receiveValue(lambda.type, 5));
568
+ return lambda;
569
+ }
570
+ visitLambdaParameters(parameters, ctx) {
571
+ parameters = parameters.withId(ctx.receiveValue(parameters.id, 0));
572
+ parameters = parameters.withPrefix(ctx.receiveNode(parameters.prefix, receiveSpace));
573
+ parameters = parameters.withMarkers(ctx.receiveNode(parameters.markers, ctx.receiveMarkers));
574
+ parameters = parameters.withParenthesized(ctx.receiveValue(parameters.parenthesized, 1));
575
+ parameters = parameters.padding.withParameters(ctx.receiveNodes(parameters.padding.parameters, receiveRightPaddedTree));
576
+ return parameters;
577
+ }
578
+ visitLiteral(literal, ctx) {
579
+ literal = literal.withId(ctx.receiveValue(literal.id, 0));
580
+ literal = literal.withPrefix(ctx.receiveNode(literal.prefix, receiveSpace));
581
+ literal = literal.withMarkers(ctx.receiveNode(literal.markers, ctx.receiveMarkers));
582
+ literal = literal.withValue(ctx.receiveValue(literal.value, 5));
583
+ literal = literal.withValueSource(ctx.receiveValue(literal.valueSource, 1));
584
+ literal = literal.withUnicodeEscapes(ctx.receiveValues(literal.unicodeEscapes, 5));
585
+ literal = literal.withType(ctx.receiveValue(literal.type, 3));
586
+ return literal;
587
+ }
588
+ visitMemberReference(memberReference, ctx) {
589
+ memberReference = memberReference.withId(ctx.receiveValue(memberReference.id, 0));
590
+ memberReference = memberReference.withPrefix(ctx.receiveNode(memberReference.prefix, receiveSpace));
591
+ memberReference = memberReference.withMarkers(ctx.receiveNode(memberReference.markers, ctx.receiveMarkers));
592
+ memberReference = memberReference.padding.withContaining(ctx.receiveNode(memberReference.padding.containing, receiveRightPaddedTree));
593
+ memberReference = memberReference.padding.withTypeParameters(ctx.receiveNode(memberReference.padding.typeParameters, receiveContainer));
594
+ memberReference = memberReference.padding.withReference(ctx.receiveNode(memberReference.padding.reference, receiveLeftPaddedTree));
595
+ memberReference = memberReference.withType(ctx.receiveValue(memberReference.type, 5));
596
+ memberReference = memberReference.withMethodType(ctx.receiveValue(memberReference.methodType, 5));
597
+ memberReference = memberReference.withVariableType(ctx.receiveValue(memberReference.variableType, 5));
598
+ return memberReference;
599
+ }
600
+ visitMethodDeclaration(methodDeclaration, ctx) {
601
+ methodDeclaration = methodDeclaration.withId(ctx.receiveValue(methodDeclaration.id, 0));
602
+ methodDeclaration = methodDeclaration.withPrefix(ctx.receiveNode(methodDeclaration.prefix, receiveSpace));
603
+ methodDeclaration = methodDeclaration.withMarkers(ctx.receiveNode(methodDeclaration.markers, ctx.receiveMarkers));
604
+ methodDeclaration = methodDeclaration.withLeadingAnnotations(ctx.receiveNodes(methodDeclaration.leadingAnnotations, ctx.receiveTree));
605
+ methodDeclaration = methodDeclaration.withModifiers(ctx.receiveNodes(methodDeclaration.modifiers, ctx.receiveTree));
606
+ methodDeclaration = methodDeclaration.annotations.withTypeParameters(ctx.receiveNode(methodDeclaration.annotations.typeParameters, ctx.receiveTree));
607
+ methodDeclaration = methodDeclaration.withReturnTypeExpression(ctx.receiveNode(methodDeclaration.returnTypeExpression, ctx.receiveTree));
608
+ methodDeclaration = methodDeclaration.annotations.withName(ctx.receiveNode(methodDeclaration.annotations.name, receiveMethodIdentifierWithAnnotations));
609
+ methodDeclaration = methodDeclaration.padding.withParameters(ctx.receiveNode(methodDeclaration.padding.parameters, receiveContainer));
610
+ methodDeclaration = methodDeclaration.padding.withThrows(ctx.receiveNode(methodDeclaration.padding.throws, receiveContainer));
611
+ methodDeclaration = methodDeclaration.withBody(ctx.receiveNode(methodDeclaration.body, ctx.receiveTree));
612
+ methodDeclaration = methodDeclaration.padding.withDefaultValue(ctx.receiveNode(methodDeclaration.padding.defaultValue, receiveLeftPaddedTree));
613
+ methodDeclaration = methodDeclaration.withMethodType(ctx.receiveValue(methodDeclaration.methodType, 5));
614
+ return methodDeclaration;
615
+ }
616
+ visitMethodInvocation(methodInvocation, ctx) {
617
+ methodInvocation = methodInvocation.withId(ctx.receiveValue(methodInvocation.id, 0));
618
+ methodInvocation = methodInvocation.withPrefix(ctx.receiveNode(methodInvocation.prefix, receiveSpace));
619
+ methodInvocation = methodInvocation.withMarkers(ctx.receiveNode(methodInvocation.markers, ctx.receiveMarkers));
620
+ methodInvocation = methodInvocation.padding.withSelect(ctx.receiveNode(methodInvocation.padding.select, receiveRightPaddedTree));
621
+ methodInvocation = methodInvocation.padding.withTypeParameters(ctx.receiveNode(methodInvocation.padding.typeParameters, receiveContainer));
622
+ methodInvocation = methodInvocation.withName(ctx.receiveNode(methodInvocation.name, ctx.receiveTree));
623
+ methodInvocation = methodInvocation.padding.withArguments(ctx.receiveNode(methodInvocation.padding.arguments, receiveContainer));
624
+ methodInvocation = methodInvocation.withMethodType(ctx.receiveValue(methodInvocation.methodType, 5));
625
+ return methodInvocation;
626
+ }
627
+ visitModifier(modifier, ctx) {
628
+ modifier = modifier.withId(ctx.receiveValue(modifier.id, 0));
629
+ modifier = modifier.withPrefix(ctx.receiveNode(modifier.prefix, receiveSpace));
630
+ modifier = modifier.withMarkers(ctx.receiveNode(modifier.markers, ctx.receiveMarkers));
631
+ modifier = modifier.withKeyword(ctx.receiveValue(modifier.keyword, 1));
632
+ modifier = modifier.withType(ctx.receiveValue(modifier.type, 3));
633
+ modifier = modifier.withAnnotations(ctx.receiveNodes(modifier.annotations, ctx.receiveTree));
634
+ return modifier;
635
+ }
636
+ visitMultiCatch(multiCatch, ctx) {
637
+ multiCatch = multiCatch.withId(ctx.receiveValue(multiCatch.id, 0));
638
+ multiCatch = multiCatch.withPrefix(ctx.receiveNode(multiCatch.prefix, receiveSpace));
639
+ multiCatch = multiCatch.withMarkers(ctx.receiveNode(multiCatch.markers, ctx.receiveMarkers));
640
+ multiCatch = multiCatch.padding.withAlternatives(ctx.receiveNodes(multiCatch.padding.alternatives, receiveRightPaddedTree));
641
+ return multiCatch;
642
+ }
643
+ visitNewArray(newArray, ctx) {
644
+ newArray = newArray.withId(ctx.receiveValue(newArray.id, 0));
645
+ newArray = newArray.withPrefix(ctx.receiveNode(newArray.prefix, receiveSpace));
646
+ newArray = newArray.withMarkers(ctx.receiveNode(newArray.markers, ctx.receiveMarkers));
647
+ newArray = newArray.withTypeExpression(ctx.receiveNode(newArray.typeExpression, ctx.receiveTree));
648
+ newArray = newArray.withDimensions(ctx.receiveNodes(newArray.dimensions, ctx.receiveTree));
649
+ newArray = newArray.padding.withInitializer(ctx.receiveNode(newArray.padding.initializer, receiveContainer));
650
+ newArray = newArray.withType(ctx.receiveValue(newArray.type, 5));
651
+ return newArray;
652
+ }
653
+ visitArrayDimension(arrayDimension, ctx) {
654
+ arrayDimension = arrayDimension.withId(ctx.receiveValue(arrayDimension.id, 0));
655
+ arrayDimension = arrayDimension.withPrefix(ctx.receiveNode(arrayDimension.prefix, receiveSpace));
656
+ arrayDimension = arrayDimension.withMarkers(ctx.receiveNode(arrayDimension.markers, ctx.receiveMarkers));
657
+ arrayDimension = arrayDimension.padding.withIndex(ctx.receiveNode(arrayDimension.padding.index, receiveRightPaddedTree));
658
+ return arrayDimension;
659
+ }
660
+ visitNewClass(newClass, ctx) {
661
+ newClass = newClass.withId(ctx.receiveValue(newClass.id, 0));
662
+ newClass = newClass.withPrefix(ctx.receiveNode(newClass.prefix, receiveSpace));
663
+ newClass = newClass.withMarkers(ctx.receiveNode(newClass.markers, ctx.receiveMarkers));
664
+ newClass = newClass.padding.withEnclosing(ctx.receiveNode(newClass.padding.enclosing, receiveRightPaddedTree));
665
+ newClass = newClass.withNew(ctx.receiveNode(newClass.new, receiveSpace));
666
+ newClass = newClass.withClazz(ctx.receiveNode(newClass.clazz, ctx.receiveTree));
667
+ newClass = newClass.padding.withArguments(ctx.receiveNode(newClass.padding.arguments, receiveContainer));
668
+ newClass = newClass.withBody(ctx.receiveNode(newClass.body, ctx.receiveTree));
669
+ newClass = newClass.withConstructorType(ctx.receiveValue(newClass.constructorType, 5));
670
+ return newClass;
671
+ }
672
+ visitNullableType(nullableType, ctx) {
673
+ nullableType = nullableType.withId(ctx.receiveValue(nullableType.id, 0));
674
+ nullableType = nullableType.withPrefix(ctx.receiveNode(nullableType.prefix, receiveSpace));
675
+ nullableType = nullableType.withMarkers(ctx.receiveNode(nullableType.markers, ctx.receiveMarkers));
676
+ nullableType = nullableType.withAnnotations(ctx.receiveNodes(nullableType.annotations, ctx.receiveTree));
677
+ nullableType = nullableType.padding.withTypeTree(ctx.receiveNode(nullableType.padding.typeTree, receiveRightPaddedTree));
678
+ return nullableType;
679
+ }
680
+ visitPackage(_package, ctx) {
681
+ _package = _package.withId(ctx.receiveValue(_package.id, 0));
682
+ _package = _package.withPrefix(ctx.receiveNode(_package.prefix, receiveSpace));
683
+ _package = _package.withMarkers(ctx.receiveNode(_package.markers, ctx.receiveMarkers));
684
+ _package = _package.withExpression(ctx.receiveNode(_package.expression, ctx.receiveTree));
685
+ _package = _package.withAnnotations(ctx.receiveNodes(_package.annotations, ctx.receiveTree));
686
+ return _package;
687
+ }
688
+ visitParameterizedType(parameterizedType, ctx) {
689
+ parameterizedType = parameterizedType.withId(ctx.receiveValue(parameterizedType.id, 0));
690
+ parameterizedType = parameterizedType.withPrefix(ctx.receiveNode(parameterizedType.prefix, receiveSpace));
691
+ parameterizedType = parameterizedType.withMarkers(ctx.receiveNode(parameterizedType.markers, ctx.receiveMarkers));
692
+ parameterizedType = parameterizedType.withClazz(ctx.receiveNode(parameterizedType.clazz, ctx.receiveTree));
693
+ parameterizedType = parameterizedType.padding.withTypeParameters(ctx.receiveNode(parameterizedType.padding.typeParameters, receiveContainer));
694
+ parameterizedType = parameterizedType.withType(ctx.receiveValue(parameterizedType.type, 5));
695
+ return parameterizedType;
696
+ }
697
+ visitParentheses(parentheses, ctx) {
698
+ parentheses = parentheses.withId(ctx.receiveValue(parentheses.id, 0));
699
+ parentheses = parentheses.withPrefix(ctx.receiveNode(parentheses.prefix, receiveSpace));
700
+ parentheses = parentheses.withMarkers(ctx.receiveNode(parentheses.markers, ctx.receiveMarkers));
701
+ parentheses = parentheses.padding.withTree(ctx.receiveNode(parentheses.padding.tree, receiveRightPaddedTree));
702
+ return parentheses;
703
+ }
704
+ visitControlParentheses(controlParentheses, ctx) {
705
+ controlParentheses = controlParentheses.withId(ctx.receiveValue(controlParentheses.id, 0));
706
+ controlParentheses = controlParentheses.withPrefix(ctx.receiveNode(controlParentheses.prefix, receiveSpace));
707
+ controlParentheses = controlParentheses.withMarkers(ctx.receiveNode(controlParentheses.markers, ctx.receiveMarkers));
708
+ controlParentheses = controlParentheses.padding.withTree(ctx.receiveNode(controlParentheses.padding.tree, receiveRightPaddedTree));
709
+ return controlParentheses;
710
+ }
711
+ visitPrimitive(primitive, ctx) {
712
+ primitive = primitive.withId(ctx.receiveValue(primitive.id, 0));
713
+ primitive = primitive.withPrefix(ctx.receiveNode(primitive.prefix, receiveSpace));
714
+ primitive = primitive.withMarkers(ctx.receiveNode(primitive.markers, ctx.receiveMarkers));
715
+ primitive = primitive.withType(ctx.receiveValue(primitive.type, 3));
716
+ return primitive;
717
+ }
718
+ visitReturn(_return, ctx) {
719
+ _return = _return.withId(ctx.receiveValue(_return.id, 0));
720
+ _return = _return.withPrefix(ctx.receiveNode(_return.prefix, receiveSpace));
721
+ _return = _return.withMarkers(ctx.receiveNode(_return.markers, ctx.receiveMarkers));
722
+ _return = _return.withExpression(ctx.receiveNode(_return.expression, ctx.receiveTree));
723
+ return _return;
724
+ }
725
+ visitSwitch(_switch, ctx) {
726
+ _switch = _switch.withId(ctx.receiveValue(_switch.id, 0));
727
+ _switch = _switch.withPrefix(ctx.receiveNode(_switch.prefix, receiveSpace));
728
+ _switch = _switch.withMarkers(ctx.receiveNode(_switch.markers, ctx.receiveMarkers));
729
+ _switch = _switch.withSelector(ctx.receiveNode(_switch.selector, ctx.receiveTree));
730
+ _switch = _switch.withCases(ctx.receiveNode(_switch.cases, ctx.receiveTree));
731
+ return _switch;
732
+ }
733
+ visitSwitchExpression(switchExpression, ctx) {
734
+ switchExpression = switchExpression.withId(ctx.receiveValue(switchExpression.id, 0));
735
+ switchExpression = switchExpression.withPrefix(ctx.receiveNode(switchExpression.prefix, receiveSpace));
736
+ switchExpression = switchExpression.withMarkers(ctx.receiveNode(switchExpression.markers, ctx.receiveMarkers));
737
+ switchExpression = switchExpression.withSelector(ctx.receiveNode(switchExpression.selector, ctx.receiveTree));
738
+ switchExpression = switchExpression.withCases(ctx.receiveNode(switchExpression.cases, ctx.receiveTree));
739
+ return switchExpression;
740
+ }
741
+ visitSynchronized(synchronized, ctx) {
742
+ synchronized = synchronized.withId(ctx.receiveValue(synchronized.id, 0));
743
+ synchronized = synchronized.withPrefix(ctx.receiveNode(synchronized.prefix, receiveSpace));
744
+ synchronized = synchronized.withMarkers(ctx.receiveNode(synchronized.markers, ctx.receiveMarkers));
745
+ synchronized = synchronized.withLock(ctx.receiveNode(synchronized.lock, ctx.receiveTree));
746
+ synchronized = synchronized.withBody(ctx.receiveNode(synchronized.body, ctx.receiveTree));
747
+ return synchronized;
748
+ }
749
+ visitTernary(ternary, ctx) {
750
+ ternary = ternary.withId(ctx.receiveValue(ternary.id, 0));
751
+ ternary = ternary.withPrefix(ctx.receiveNode(ternary.prefix, receiveSpace));
752
+ ternary = ternary.withMarkers(ctx.receiveNode(ternary.markers, ctx.receiveMarkers));
753
+ ternary = ternary.withCondition(ctx.receiveNode(ternary.condition, ctx.receiveTree));
754
+ ternary = ternary.padding.withTruePart(ctx.receiveNode(ternary.padding.truePart, receiveLeftPaddedTree));
755
+ ternary = ternary.padding.withFalsePart(ctx.receiveNode(ternary.padding.falsePart, receiveLeftPaddedTree));
756
+ ternary = ternary.withType(ctx.receiveValue(ternary.type, 5));
757
+ return ternary;
758
+ }
759
+ visitThrow(_throw, ctx) {
760
+ _throw = _throw.withId(ctx.receiveValue(_throw.id, 0));
761
+ _throw = _throw.withPrefix(ctx.receiveNode(_throw.prefix, receiveSpace));
762
+ _throw = _throw.withMarkers(ctx.receiveNode(_throw.markers, ctx.receiveMarkers));
763
+ _throw = _throw.withException(ctx.receiveNode(_throw.exception, ctx.receiveTree));
764
+ return _throw;
765
+ }
766
+ visitTry(_try, ctx) {
767
+ _try = _try.withId(ctx.receiveValue(_try.id, 0));
768
+ _try = _try.withPrefix(ctx.receiveNode(_try.prefix, receiveSpace));
769
+ _try = _try.withMarkers(ctx.receiveNode(_try.markers, ctx.receiveMarkers));
770
+ _try = _try.padding.withResources(ctx.receiveNode(_try.padding.resources, receiveContainer));
771
+ _try = _try.withBody(ctx.receiveNode(_try.body, ctx.receiveTree));
772
+ _try = _try.withCatches(ctx.receiveNodes(_try.catches, ctx.receiveTree));
773
+ _try = _try.padding.withFinally(ctx.receiveNode(_try.padding.finally, receiveLeftPaddedTree));
774
+ return _try;
775
+ }
776
+ visitTryResource(resource, ctx) {
777
+ resource = resource.withId(ctx.receiveValue(resource.id, 0));
778
+ resource = resource.withPrefix(ctx.receiveNode(resource.prefix, receiveSpace));
779
+ resource = resource.withMarkers(ctx.receiveNode(resource.markers, ctx.receiveMarkers));
780
+ resource = resource.withVariableDeclarations(ctx.receiveNode(resource.variableDeclarations, ctx.receiveTree));
781
+ resource = resource.withTerminatedWithSemicolon(ctx.receiveValue(resource.terminatedWithSemicolon, 1));
782
+ return resource;
783
+ }
784
+ visitCatch(_catch, ctx) {
785
+ _catch = _catch.withId(ctx.receiveValue(_catch.id, 0));
786
+ _catch = _catch.withPrefix(ctx.receiveNode(_catch.prefix, receiveSpace));
787
+ _catch = _catch.withMarkers(ctx.receiveNode(_catch.markers, ctx.receiveMarkers));
788
+ _catch = _catch.withParameter(ctx.receiveNode(_catch.parameter, ctx.receiveTree));
789
+ _catch = _catch.withBody(ctx.receiveNode(_catch.body, ctx.receiveTree));
790
+ return _catch;
791
+ }
792
+ visitTypeCast(typeCast, ctx) {
793
+ typeCast = typeCast.withId(ctx.receiveValue(typeCast.id, 0));
794
+ typeCast = typeCast.withPrefix(ctx.receiveNode(typeCast.prefix, receiveSpace));
795
+ typeCast = typeCast.withMarkers(ctx.receiveNode(typeCast.markers, ctx.receiveMarkers));
796
+ typeCast = typeCast.withClazz(ctx.receiveNode(typeCast.clazz, ctx.receiveTree));
797
+ typeCast = typeCast.withExpression(ctx.receiveNode(typeCast.expression, ctx.receiveTree));
798
+ return typeCast;
799
+ }
800
+ visitTypeParameter(typeParameter, ctx) {
801
+ typeParameter = typeParameter.withId(ctx.receiveValue(typeParameter.id, 0));
802
+ typeParameter = typeParameter.withPrefix(ctx.receiveNode(typeParameter.prefix, receiveSpace));
803
+ typeParameter = typeParameter.withMarkers(ctx.receiveNode(typeParameter.markers, ctx.receiveMarkers));
804
+ typeParameter = typeParameter.withAnnotations(ctx.receiveNodes(typeParameter.annotations, ctx.receiveTree));
805
+ typeParameter = typeParameter.withModifiers(ctx.receiveNodes(typeParameter.modifiers, ctx.receiveTree));
806
+ typeParameter = typeParameter.withName(ctx.receiveNode(typeParameter.name, ctx.receiveTree));
807
+ typeParameter = typeParameter.padding.withBounds(ctx.receiveNode(typeParameter.padding.bounds, receiveContainer));
808
+ return typeParameter;
809
+ }
810
+ visitTypeParameters(typeParameters, ctx) {
811
+ typeParameters = typeParameters.withId(ctx.receiveValue(typeParameters.id, 0));
812
+ typeParameters = typeParameters.withPrefix(ctx.receiveNode(typeParameters.prefix, receiveSpace));
813
+ typeParameters = typeParameters.withMarkers(ctx.receiveNode(typeParameters.markers, ctx.receiveMarkers));
814
+ typeParameters = typeParameters.withAnnotations(ctx.receiveNodes(typeParameters.annotations, ctx.receiveTree));
815
+ typeParameters = typeParameters.padding.withTypeParameters(ctx.receiveNodes(typeParameters.padding.typeParameters, receiveRightPaddedTree));
816
+ return typeParameters;
817
+ }
818
+ visitUnary(unary, ctx) {
819
+ unary = unary.withId(ctx.receiveValue(unary.id, 0));
820
+ unary = unary.withPrefix(ctx.receiveNode(unary.prefix, receiveSpace));
821
+ unary = unary.withMarkers(ctx.receiveNode(unary.markers, ctx.receiveMarkers));
822
+ unary = unary.padding.withOperator(ctx.receiveNode(unary.padding.operator, leftPaddedValueReceiver(3)));
823
+ unary = unary.withExpression(ctx.receiveNode(unary.expression, ctx.receiveTree));
824
+ unary = unary.withType(ctx.receiveValue(unary.type, 5));
825
+ return unary;
826
+ }
827
+ visitVariableDeclarations(variableDeclarations, ctx) {
828
+ variableDeclarations = variableDeclarations.withId(ctx.receiveValue(variableDeclarations.id, 0));
829
+ variableDeclarations = variableDeclarations.withPrefix(ctx.receiveNode(variableDeclarations.prefix, receiveSpace));
830
+ variableDeclarations = variableDeclarations.withMarkers(ctx.receiveNode(variableDeclarations.markers, ctx.receiveMarkers));
831
+ variableDeclarations = variableDeclarations.withLeadingAnnotations(ctx.receiveNodes(variableDeclarations.leadingAnnotations, ctx.receiveTree));
832
+ variableDeclarations = variableDeclarations.withModifiers(ctx.receiveNodes(variableDeclarations.modifiers, ctx.receiveTree));
833
+ variableDeclarations = variableDeclarations.withTypeExpression(ctx.receiveNode(variableDeclarations.typeExpression, ctx.receiveTree));
834
+ variableDeclarations = variableDeclarations.withVarargs(ctx.receiveNode(variableDeclarations.varargs, receiveSpace));
835
+ variableDeclarations = variableDeclarations.withDimensionsBeforeName(ctx.receiveNodes(variableDeclarations.dimensionsBeforeName, leftPaddedNodeReceiver(java_1.Space)));
836
+ variableDeclarations = variableDeclarations.padding.withVariables(ctx.receiveNodes(variableDeclarations.padding.variables, receiveRightPaddedTree));
837
+ return variableDeclarations;
838
+ }
839
+ visitVariable(namedVariable, ctx) {
840
+ namedVariable = namedVariable.withId(ctx.receiveValue(namedVariable.id, 0));
841
+ namedVariable = namedVariable.withPrefix(ctx.receiveNode(namedVariable.prefix, receiveSpace));
842
+ namedVariable = namedVariable.withMarkers(ctx.receiveNode(namedVariable.markers, ctx.receiveMarkers));
843
+ namedVariable = namedVariable.withName(ctx.receiveNode(namedVariable.name, ctx.receiveTree));
844
+ namedVariable = namedVariable.withDimensionsAfterName(ctx.receiveNodes(namedVariable.dimensionsAfterName, leftPaddedNodeReceiver(java_1.Space)));
845
+ namedVariable = namedVariable.padding.withInitializer(ctx.receiveNode(namedVariable.padding.initializer, receiveLeftPaddedTree));
846
+ namedVariable = namedVariable.withVariableType(ctx.receiveValue(namedVariable.variableType, 5));
847
+ return namedVariable;
848
+ }
849
+ visitWhileLoop(whileLoop, ctx) {
850
+ whileLoop = whileLoop.withId(ctx.receiveValue(whileLoop.id, 0));
851
+ whileLoop = whileLoop.withPrefix(ctx.receiveNode(whileLoop.prefix, receiveSpace));
852
+ whileLoop = whileLoop.withMarkers(ctx.receiveNode(whileLoop.markers, ctx.receiveMarkers));
853
+ whileLoop = whileLoop.withCondition(ctx.receiveNode(whileLoop.condition, ctx.receiveTree));
854
+ whileLoop = whileLoop.padding.withBody(ctx.receiveNode(whileLoop.padding.body, receiveRightPaddedTree));
855
+ return whileLoop;
856
+ }
857
+ visitWildcard(wildcard, ctx) {
858
+ wildcard = wildcard.withId(ctx.receiveValue(wildcard.id, 0));
859
+ wildcard = wildcard.withPrefix(ctx.receiveNode(wildcard.prefix, receiveSpace));
860
+ wildcard = wildcard.withMarkers(ctx.receiveNode(wildcard.markers, ctx.receiveMarkers));
861
+ wildcard = wildcard.padding.withBound(ctx.receiveNode(wildcard.padding.bound, leftPaddedValueReceiver(3)));
862
+ wildcard = wildcard.withBoundedType(ctx.receiveNode(wildcard.boundedType, ctx.receiveTree));
863
+ return wildcard;
864
+ }
865
+ visitYield(_yield, ctx) {
866
+ _yield = _yield.withId(ctx.receiveValue(_yield.id, 0));
867
+ _yield = _yield.withPrefix(ctx.receiveNode(_yield.prefix, receiveSpace));
868
+ _yield = _yield.withMarkers(ctx.receiveNode(_yield.markers, ctx.receiveMarkers));
869
+ _yield = _yield.withImplicit(ctx.receiveValue(_yield.implicit, 1));
870
+ _yield = _yield.withValue(ctx.receiveNode(_yield.value, ctx.receiveTree));
871
+ return _yield;
872
+ }
873
+ visitUnknown(unknown, ctx) {
874
+ unknown = unknown.withId(ctx.receiveValue(unknown.id, 0));
875
+ unknown = unknown.withPrefix(ctx.receiveNode(unknown.prefix, receiveSpace));
876
+ unknown = unknown.withMarkers(ctx.receiveNode(unknown.markers, ctx.receiveMarkers));
877
+ unknown = unknown.withSource(ctx.receiveNode(unknown.source, ctx.receiveTree));
878
+ return unknown;
879
+ }
880
+ visitUnknownSource(source, ctx) {
881
+ source = source.withId(ctx.receiveValue(source.id, 0));
882
+ source = source.withPrefix(ctx.receiveNode(source.prefix, receiveSpace));
883
+ source = source.withMarkers(ctx.receiveNode(source.markers, ctx.receiveMarkers));
884
+ source = source.withText(ctx.receiveValue(source.text, 1));
885
+ return source;
886
+ }
887
+ }
888
+ class Factory {
889
+ create(type, ctx) {
890
+ if (type === "org.openrewrite.javascript.tree.JS$CompilationUnit") {
891
+ return new tree_1.CompilationUnit(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveValue(null, 1), ctx.receiveValue(null, 5), ctx.receiveValue(null, 1), ctx.receiveValue(null, 1), ctx.receiveValue(null, 5), ctx.receiveNodes(null, receiveRightPaddedTree), ctx.receiveNodes(null, receiveRightPaddedTree), ctx.receiveNode(null, receiveSpace));
892
+ }
893
+ if (type === "org.openrewrite.javascript.tree.JS$Alias") {
894
+ return new tree_1.Alias(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveNode(null, ctx.receiveTree));
895
+ }
896
+ if (type === "org.openrewrite.javascript.tree.JS$ArrowFunction") {
897
+ return new tree_1.ArrowFunction(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
898
+ }
899
+ if (type === "org.openrewrite.javascript.tree.JS$Await") {
900
+ return new tree_1.Await(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
901
+ }
902
+ if (type === "org.openrewrite.javascript.tree.JS$DefaultType") {
903
+ return new tree_1.DefaultType(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
904
+ }
905
+ if (type === "org.openrewrite.javascript.tree.JS$Delete") {
906
+ return new tree_1.Delete(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
907
+ }
908
+ if (type === "org.openrewrite.javascript.tree.JS$Export") {
909
+ return new tree_1.Export(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveContainer), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveLeftPaddedTree));
910
+ }
911
+ if (type === "org.openrewrite.javascript.tree.JS$ExpressionStatement") {
912
+ return new tree_1.ExpressionStatement(ctx.receiveValue(null, 0), ctx.receiveNode(null, ctx.receiveTree));
913
+ }
914
+ if (type === "org.openrewrite.javascript.tree.JS$FunctionType") {
915
+ return new tree_1.FunctionType(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveContainer), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
916
+ }
917
+ if (type === "org.openrewrite.javascript.tree.JS$JsImport") {
918
+ return new tree_1.JsImport(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveNode(null, receiveContainer), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveLeftPaddedTree));
919
+ }
920
+ if (type === "org.openrewrite.javascript.tree.JS$JsBinary") {
921
+ return new tree_1.JsBinary(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, leftPaddedValueReceiver(3)), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
922
+ }
923
+ if (type === "org.openrewrite.javascript.tree.JS$ObjectBindingDeclarations") {
924
+ return new tree_1.ObjectBindingDeclarations(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveContainer), ctx.receiveNode(null, receiveLeftPaddedTree));
925
+ }
926
+ if (type === "org.openrewrite.javascript.tree.JS$ObjectBindingDeclarations$Binding") {
927
+ return new tree_1.ObjectBindingDeclarations.Binding(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNodes(null, leftPaddedNodeReceiver(java_1.Space)), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, receiveLeftPaddedTree), ctx.receiveValue(null, 5));
928
+ }
929
+ if (type === "org.openrewrite.javascript.tree.JS$PropertyAssignment") {
930
+ return new tree_1.PropertyAssignment(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveNode(null, ctx.receiveTree));
931
+ }
932
+ if (type === "org.openrewrite.javascript.tree.JS$ScopedVariableDeclarations") {
933
+ return new tree_1.ScopedVariableDeclarations(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveValue(null, 3), ctx.receiveNodes(null, receiveRightPaddedTree));
934
+ }
935
+ if (type === "org.openrewrite.javascript.tree.JS$StatementExpression") {
936
+ return new tree_1.StatementExpression(ctx.receiveValue(null, 0), ctx.receiveNode(null, ctx.receiveTree));
937
+ }
938
+ if (type === "org.openrewrite.javascript.tree.JS$TemplateExpression") {
939
+ return new tree_1.TemplateExpression(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveValue(null, 1), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveValue(null, 5));
940
+ }
941
+ if (type === "org.openrewrite.javascript.tree.JS$TemplateExpression$Value") {
942
+ return new tree_1.TemplateExpression.Value(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveSpace), ctx.receiveValue(null, 1));
943
+ }
944
+ if (type === "org.openrewrite.javascript.tree.JS$Tuple") {
945
+ return new tree_1.Tuple(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveContainer), ctx.receiveValue(null, 5));
946
+ }
947
+ if (type === "org.openrewrite.javascript.tree.JS$TypeDeclaration") {
948
+ return new tree_1.TypeDeclaration(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveLeftPaddedTree), ctx.receiveValue(null, 5));
949
+ }
950
+ if (type === "org.openrewrite.javascript.tree.JS$TypeOf") {
951
+ return new tree_1.TypeOf(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
952
+ }
953
+ if (type === "org.openrewrite.javascript.tree.JS$TypeOperator") {
954
+ return new tree_1.TypeOperator(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveValue(null, 3), ctx.receiveNode(null, receiveLeftPaddedTree));
955
+ }
956
+ if (type === "org.openrewrite.javascript.tree.JS$Unary") {
957
+ return new tree_1.Unary(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, leftPaddedValueReceiver(3)), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
958
+ }
959
+ if (type === "org.openrewrite.javascript.tree.JS$Union") {
960
+ return new tree_1.Union(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, receiveRightPaddedTree), ctx.receiveValue(null, 5));
961
+ }
962
+ if (type === "org.openrewrite.javascript.tree.JS$Void") {
963
+ return new tree_1.Void(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree));
964
+ }
965
+ if (type === "org.openrewrite.javascript.tree.JS$Yield") {
966
+ return new tree_1.Yield(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveValue(null, 1), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
967
+ }
968
+ if (type === "org.openrewrite.java.tree.J$AnnotatedType") {
969
+ return new Java.AnnotatedType(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree));
970
+ }
971
+ if (type === "org.openrewrite.java.tree.J$Annotation") {
972
+ return new Java.Annotation(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveContainer));
973
+ }
974
+ if (type === "org.openrewrite.java.tree.J$ArrayAccess") {
975
+ return new Java.ArrayAccess(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
976
+ }
977
+ if (type === "org.openrewrite.java.tree.J$ArrayType") {
978
+ return new Java.ArrayType(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, leftPaddedNodeReceiver(java_1.Space)), ctx.receiveValue(null, 5));
979
+ }
980
+ if (type === "org.openrewrite.java.tree.J$Assert") {
981
+ return new Java.Assert(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveLeftPaddedTree));
982
+ }
983
+ if (type === "org.openrewrite.java.tree.J$Assignment") {
984
+ return new Java.Assignment(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveLeftPaddedTree), ctx.receiveValue(null, 5));
985
+ }
986
+ if (type === "org.openrewrite.java.tree.J$AssignmentOperation") {
987
+ return new Java.AssignmentOperation(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, leftPaddedValueReceiver(3)), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
988
+ }
989
+ if (type === "org.openrewrite.java.tree.J$Binary") {
990
+ return new Java.Binary(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, leftPaddedValueReceiver(3)), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
991
+ }
992
+ if (type === "org.openrewrite.java.tree.J$Block") {
993
+ return new Java.Block(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, rightPaddedValueReceiver(1)), ctx.receiveNodes(null, receiveRightPaddedTree), ctx.receiveNode(null, receiveSpace));
994
+ }
995
+ if (type === "org.openrewrite.java.tree.J$Break") {
996
+ return new Java.Break(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree));
997
+ }
998
+ if (type === "org.openrewrite.java.tree.J$Case") {
999
+ return new Java.Case(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveValue(null, 3), ctx.receiveNode(null, receiveContainer), ctx.receiveNode(null, receiveContainer), ctx.receiveNode(null, receiveRightPaddedTree));
1000
+ }
1001
+ if (type === "org.openrewrite.java.tree.J$ClassDeclaration") {
1002
+ return new Java.ClassDeclaration(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveContainer), ctx.receiveNode(null, receiveContainer), ctx.receiveNode(null, receiveLeftPaddedTree), ctx.receiveNode(null, receiveContainer), ctx.receiveNode(null, receiveContainer), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
1003
+ }
1004
+ if (type === "org.openrewrite.java.tree.J$ClassDeclaration$Kind") {
1005
+ return new Java.ClassDeclaration.Kind(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveValue(null, 3));
1006
+ }
1007
+ if (type === "org.openrewrite.java.tree.J$Continue") {
1008
+ return new Java.Continue(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree));
1009
+ }
1010
+ if (type === "org.openrewrite.java.tree.J$DoWhileLoop") {
1011
+ return new Java.DoWhileLoop(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveNode(null, receiveLeftPaddedTree));
1012
+ }
1013
+ if (type === "org.openrewrite.java.tree.J$Empty") {
1014
+ return new Java.Empty(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers));
1015
+ }
1016
+ if (type === "org.openrewrite.java.tree.J$EnumValue") {
1017
+ return new Java.EnumValue(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree));
1018
+ }
1019
+ if (type === "org.openrewrite.java.tree.J$EnumValueSet") {
1020
+ return new Java.EnumValueSet(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, receiveRightPaddedTree), ctx.receiveValue(null, 1));
1021
+ }
1022
+ if (type === "org.openrewrite.java.tree.J$FieldAccess") {
1023
+ return new Java.FieldAccess(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveLeftPaddedTree), ctx.receiveValue(null, 5));
1024
+ }
1025
+ if (type === "org.openrewrite.java.tree.J$ForEachLoop") {
1026
+ return new Java.ForEachLoop(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveRightPaddedTree));
1027
+ }
1028
+ if (type === "org.openrewrite.java.tree.J$ForEachLoop$Control") {
1029
+ return new Java.ForEachLoop.Control(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveNode(null, receiveRightPaddedTree));
1030
+ }
1031
+ if (type === "org.openrewrite.java.tree.J$ForLoop") {
1032
+ return new Java.ForLoop(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveRightPaddedTree));
1033
+ }
1034
+ if (type === "org.openrewrite.java.tree.J$ForLoop$Control") {
1035
+ return new Java.ForLoop.Control(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, receiveRightPaddedTree), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveNodes(null, receiveRightPaddedTree));
1036
+ }
1037
+ if (type === "org.openrewrite.java.tree.J$ParenthesizedTypeTree") {
1038
+ return new Java.ParenthesizedTypeTree(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree));
1039
+ }
1040
+ if (type === "org.openrewrite.java.tree.J$Identifier") {
1041
+ return new Java.Identifier(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveValue(null, 1), ctx.receiveValue(null, 5), ctx.receiveValue(null, 5));
1042
+ }
1043
+ if (type === "org.openrewrite.java.tree.J$If") {
1044
+ return new Java.If(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveNode(null, ctx.receiveTree));
1045
+ }
1046
+ if (type === "org.openrewrite.java.tree.J$If$Else") {
1047
+ return new Java.If.Else(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree));
1048
+ }
1049
+ if (type === "org.openrewrite.java.tree.J$Import") {
1050
+ return new Java.Import(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, leftPaddedValueReceiver(1)), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveLeftPaddedTree));
1051
+ }
1052
+ if (type === "org.openrewrite.java.tree.J$InstanceOf") {
1053
+ return new Java.InstanceOf(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
1054
+ }
1055
+ if (type === "org.openrewrite.java.tree.J$IntersectionType") {
1056
+ return new Java.IntersectionType(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveContainer));
1057
+ }
1058
+ if (type === "org.openrewrite.java.tree.J$Label") {
1059
+ return new Java.Label(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveNode(null, ctx.receiveTree));
1060
+ }
1061
+ if (type === "org.openrewrite.java.tree.J$Lambda") {
1062
+ return new Java.Lambda(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
1063
+ }
1064
+ if (type === "org.openrewrite.java.tree.J$Lambda$Parameters") {
1065
+ return new Java.Lambda.Parameters(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveValue(null, 1), ctx.receiveNodes(null, receiveRightPaddedTree));
1066
+ }
1067
+ if (type === "org.openrewrite.java.tree.J$Literal") {
1068
+ return new Java.Literal(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveValue(null, 5), ctx.receiveValue(null, 1), ctx.receiveValues(null, 5), ctx.receiveValue(null, 3));
1069
+ }
1070
+ if (type === "org.openrewrite.java.tree.J$MemberReference") {
1071
+ return new Java.MemberReference(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveNode(null, receiveContainer), ctx.receiveNode(null, receiveLeftPaddedTree), ctx.receiveValue(null, 5), ctx.receiveValue(null, 5), ctx.receiveValue(null, 5));
1072
+ }
1073
+ if (type === "org.openrewrite.java.tree.J$MethodDeclaration") {
1074
+ return new Java.MethodDeclaration(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveMethodIdentifierWithAnnotations), ctx.receiveNode(null, receiveContainer), ctx.receiveNode(null, receiveContainer), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveLeftPaddedTree), ctx.receiveValue(null, 5));
1075
+ }
1076
+ if (type === "org.openrewrite.java.tree.J$MethodInvocation") {
1077
+ return new Java.MethodInvocation(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveNode(null, receiveContainer), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveContainer), ctx.receiveValue(null, 5));
1078
+ }
1079
+ if (type === "org.openrewrite.java.tree.J$Modifier") {
1080
+ return new Java.Modifier(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveValue(null, 1), ctx.receiveValue(null, 3), ctx.receiveNodes(null, ctx.receiveTree));
1081
+ }
1082
+ if (type === "org.openrewrite.java.tree.J$MultiCatch") {
1083
+ return new Java.MultiCatch(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, receiveRightPaddedTree));
1084
+ }
1085
+ if (type === "org.openrewrite.java.tree.J$NewArray") {
1086
+ return new Java.NewArray(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, receiveContainer), ctx.receiveValue(null, 5));
1087
+ }
1088
+ if (type === "org.openrewrite.java.tree.J$ArrayDimension") {
1089
+ return new Java.ArrayDimension(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree));
1090
+ }
1091
+ if (type === "org.openrewrite.java.tree.J$NewClass") {
1092
+ return new Java.NewClass(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveContainer), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
1093
+ }
1094
+ if (type === "org.openrewrite.java.tree.J$NullableType") {
1095
+ return new Java.NullableType(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, receiveRightPaddedTree));
1096
+ }
1097
+ if (type === "org.openrewrite.java.tree.J$Package") {
1098
+ return new Java.Package(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNodes(null, ctx.receiveTree));
1099
+ }
1100
+ if (type === "org.openrewrite.java.tree.J$ParameterizedType") {
1101
+ return new Java.ParameterizedType(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveContainer), ctx.receiveValue(null, 5));
1102
+ }
1103
+ if (type === "org.openrewrite.java.tree.J$Parentheses") {
1104
+ return new Java.Parentheses(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree));
1105
+ }
1106
+ if (type === "org.openrewrite.java.tree.J$ControlParentheses") {
1107
+ return new Java.ControlParentheses(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree));
1108
+ }
1109
+ if (type === "org.openrewrite.java.tree.J$Primitive") {
1110
+ return new Java.Primitive(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveValue(null, 3));
1111
+ }
1112
+ if (type === "org.openrewrite.java.tree.J$Return") {
1113
+ return new Java.Return(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree));
1114
+ }
1115
+ if (type === "org.openrewrite.java.tree.J$Switch") {
1116
+ return new Java.Switch(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree));
1117
+ }
1118
+ if (type === "org.openrewrite.java.tree.J$SwitchExpression") {
1119
+ return new Java.SwitchExpression(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree));
1120
+ }
1121
+ if (type === "org.openrewrite.java.tree.J$Synchronized") {
1122
+ return new Java.Synchronized(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree));
1123
+ }
1124
+ if (type === "org.openrewrite.java.tree.J$Ternary") {
1125
+ return new Java.Ternary(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveLeftPaddedTree), ctx.receiveNode(null, receiveLeftPaddedTree), ctx.receiveValue(null, 5));
1126
+ }
1127
+ if (type === "org.openrewrite.java.tree.J$Throw") {
1128
+ return new Java.Throw(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree));
1129
+ }
1130
+ if (type === "org.openrewrite.java.tree.J$Try") {
1131
+ return new Java.Try(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveContainer), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, receiveLeftPaddedTree));
1132
+ }
1133
+ if (type === "org.openrewrite.java.tree.J$Try$Resource") {
1134
+ return new Java.Try.Resource(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 1));
1135
+ }
1136
+ if (type === "org.openrewrite.java.tree.J$Try$Catch") {
1137
+ return new Java.Try.Catch(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree));
1138
+ }
1139
+ if (type === "org.openrewrite.java.tree.J$TypeCast") {
1140
+ return new Java.TypeCast(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree));
1141
+ }
1142
+ if (type === "org.openrewrite.java.tree.J$TypeParameter") {
1143
+ return new Java.TypeParameter(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveContainer));
1144
+ }
1145
+ if (type === "org.openrewrite.java.tree.J$TypeParameters") {
1146
+ return new Java.TypeParameters(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNodes(null, receiveRightPaddedTree));
1147
+ }
1148
+ if (type === "org.openrewrite.java.tree.J$Unary") {
1149
+ return new Java.Unary(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, leftPaddedValueReceiver(3)), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 5));
1150
+ }
1151
+ if (type === "org.openrewrite.java.tree.J$VariableDeclarations") {
1152
+ return new Java.VariableDeclarations(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveSpace), ctx.receiveNodes(null, leftPaddedNodeReceiver(java_1.Space)), ctx.receiveNodes(null, receiveRightPaddedTree));
1153
+ }
1154
+ if (type === "org.openrewrite.java.tree.J$VariableDeclarations$NamedVariable") {
1155
+ return new Java.VariableDeclarations.NamedVariable(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNodes(null, leftPaddedNodeReceiver(java_1.Space)), ctx.receiveNode(null, receiveLeftPaddedTree), ctx.receiveValue(null, 5));
1156
+ }
1157
+ if (type === "org.openrewrite.java.tree.J$WhileLoop") {
1158
+ return new Java.WhileLoop(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveRightPaddedTree));
1159
+ }
1160
+ if (type === "org.openrewrite.java.tree.J$Wildcard") {
1161
+ return new Java.Wildcard(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, leftPaddedValueReceiver(3)), ctx.receiveNode(null, ctx.receiveTree));
1162
+ }
1163
+ if (type === "org.openrewrite.java.tree.J$Yield") {
1164
+ return new Java.Yield(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveValue(null, 1), ctx.receiveNode(null, ctx.receiveTree));
1165
+ }
1166
+ if (type === "org.openrewrite.java.tree.J$Unknown") {
1167
+ return new Java.Unknown(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree));
1168
+ }
1169
+ if (type === "org.openrewrite.java.tree.J$Unknown$Source") {
1170
+ return new Java.Unknown.Source(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveValue(null, 1));
1171
+ }
1172
+ throw new Error("No factory method for type: " + type);
1173
+ }
1174
+ }
1175
+ function receiveMethodIdentifierWithAnnotations(before, type, ctx) {
1176
+ if (before !== null) {
1177
+ before = before.withIdentifier(ctx.receiveNode(before.identifier, ctx.receiveTree));
1178
+ before = before.withAnnotations(ctx.receiveNodes(before.annotations, ctx.receiveTree));
1179
+ }
1180
+ else {
1181
+ before = new Java.MethodDeclaration.IdentifierWithAnnotations(ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNodes(null, ctx.receiveTree));
1182
+ }
1183
+ return before;
1184
+ }
1185
+ function receiveContainer(container, type, ctx) {
1186
+ return extensions.receiveContainer(container, type, ctx);
1187
+ }
1188
+ function leftPaddedValueReceiver(type) {
1189
+ return extensions.leftPaddedValueReceiver(type);
1190
+ }
1191
+ function leftPaddedNodeReceiver(type) {
1192
+ return extensions.leftPaddedNodeReceiver(type);
1193
+ }
1194
+ function receiveLeftPaddedTree(leftPadded, type, ctx) {
1195
+ return extensions.receiveLeftPaddedTree(leftPadded, type, ctx);
1196
+ }
1197
+ function rightPaddedValueReceiver(type) {
1198
+ return extensions.rightPaddedValueReceiver(type);
1199
+ }
1200
+ function rightPaddedNodeReceiver(type) {
1201
+ return extensions.rightPaddedNodeReceiver(type);
1202
+ }
1203
+ function receiveRightPaddedTree(rightPadded, type, ctx) {
1204
+ return extensions.receiveRightPaddedTree(rightPadded, type, ctx);
1205
+ }
1206
+ function receiveSpace(space, type, ctx) {
1207
+ return extensions.receiveSpace(space, type, ctx);
1208
+ }
1209
+ //# sourceMappingURL=receiver.js.map