@openrewrite/rewrite 0.18.3 → 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 (80) 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 +6 -6
  25. package/dist/src/javascript/parser.d.ts.map +1 -1
  26. package/dist/src/javascript/parser.js +59 -31
  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/javascript/tree/support_types.d.ts +15 -13
  49. package/dist/src/javascript/tree/support_types.d.ts.map +1 -1
  50. package/dist/src/javascript/tree/support_types.js +15 -13
  51. package/dist/src/javascript/tree/support_types.js.map +1 -1
  52. package/dist/src/javascript/tree/tree.d.ts +53 -0
  53. package/dist/src/javascript/tree/tree.d.ts.map +1 -1
  54. package/dist/src/javascript/tree/tree.js +68 -2
  55. package/dist/src/javascript/tree/tree.js.map +1 -1
  56. package/dist/src/javascript/visitor.d.ts +2 -1
  57. package/dist/src/javascript/visitor.d.ts.map +1 -1
  58. package/dist/src/javascript/visitor.js +11 -0
  59. package/dist/src/javascript/visitor.js.map +1 -1
  60. package/dist/src/yaml/remote/index.d.ts +4 -0
  61. package/dist/src/yaml/remote/index.d.ts.map +1 -0
  62. package/dist/src/yaml/remote/index.js +20 -0
  63. package/dist/src/yaml/remote/index.js.map +1 -0
  64. package/dist/src/yaml/remote/receiver.d.ts +8 -0
  65. package/dist/src/yaml/remote/receiver.d.ts.map +1 -0
  66. package/dist/src/yaml/remote/receiver.js +147 -0
  67. package/dist/src/yaml/remote/receiver.js.map +1 -0
  68. package/dist/src/yaml/remote/register.d.ts +2 -0
  69. package/dist/src/yaml/remote/register.d.ts.map +1 -0
  70. package/dist/src/yaml/remote/register.js +11 -0
  71. package/dist/src/yaml/remote/register.js.map +1 -0
  72. package/dist/src/yaml/remote/remote_extensions.d.ts +2 -0
  73. package/dist/src/yaml/remote/remote_extensions.d.ts.map +1 -0
  74. package/dist/src/yaml/remote/remote_extensions.js +3 -0
  75. package/dist/src/yaml/remote/remote_extensions.js.map +1 -0
  76. package/dist/src/yaml/remote/sender.d.ts +6 -0
  77. package/dist/src/yaml/remote/sender.d.ts.map +1 -0
  78. package/dist/src/yaml/remote/sender.js +108 -0
  79. package/dist/src/yaml/remote/sender.js.map +1 -0
  80. package/package.json +13 -2
@@ -0,0 +1,909 @@
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.JavaReceiver = void 0;
27
+ const extensions = __importStar(require("./remote_extensions"));
28
+ const core_1 = require("../../core");
29
+ const visitor_1 = require("../visitor");
30
+ const tree_1 = require("../tree");
31
+ const Java = __importStar(require("../tree"));
32
+ class JavaReceiver {
33
+ fork(ctx) {
34
+ return ctx.fork(new Visitor(), new Factory());
35
+ }
36
+ receive(before, ctx) {
37
+ let forked = this.fork(ctx);
38
+ return forked.visitor.visit(before, forked);
39
+ }
40
+ }
41
+ exports.JavaReceiver = JavaReceiver;
42
+ class Visitor extends visitor_1.JavaVisitor {
43
+ visit(tree, ctx) {
44
+ this.cursor = new core_1.Cursor(this.cursor, tree);
45
+ tree = ctx.receiveNode(tree, ctx.receiveTree);
46
+ this.cursor = this.cursor.parent;
47
+ return tree;
48
+ }
49
+ visitAnnotatedType(annotatedType, ctx) {
50
+ annotatedType = annotatedType.withId(ctx.receiveValue(annotatedType.id, 0));
51
+ annotatedType = annotatedType.withPrefix(ctx.receiveNode(annotatedType.prefix, receiveSpace));
52
+ annotatedType = annotatedType.withMarkers(ctx.receiveNode(annotatedType.markers, ctx.receiveMarkers));
53
+ annotatedType = annotatedType.withAnnotations(ctx.receiveNodes(annotatedType.annotations, ctx.receiveTree));
54
+ annotatedType = annotatedType.withTypeExpression(ctx.receiveNode(annotatedType.typeExpression, ctx.receiveTree));
55
+ return annotatedType;
56
+ }
57
+ visitAnnotation(annotation, ctx) {
58
+ annotation = annotation.withId(ctx.receiveValue(annotation.id, 0));
59
+ annotation = annotation.withPrefix(ctx.receiveNode(annotation.prefix, receiveSpace));
60
+ annotation = annotation.withMarkers(ctx.receiveNode(annotation.markers, ctx.receiveMarkers));
61
+ annotation = annotation.withAnnotationType(ctx.receiveNode(annotation.annotationType, ctx.receiveTree));
62
+ annotation = annotation.padding.withArguments(ctx.receiveNode(annotation.padding.arguments, receiveContainer));
63
+ return annotation;
64
+ }
65
+ visitArrayAccess(arrayAccess, ctx) {
66
+ arrayAccess = arrayAccess.withId(ctx.receiveValue(arrayAccess.id, 0));
67
+ arrayAccess = arrayAccess.withPrefix(ctx.receiveNode(arrayAccess.prefix, receiveSpace));
68
+ arrayAccess = arrayAccess.withMarkers(ctx.receiveNode(arrayAccess.markers, ctx.receiveMarkers));
69
+ arrayAccess = arrayAccess.withIndexed(ctx.receiveNode(arrayAccess.indexed, ctx.receiveTree));
70
+ arrayAccess = arrayAccess.withDimension(ctx.receiveNode(arrayAccess.dimension, ctx.receiveTree));
71
+ arrayAccess = arrayAccess.withType(ctx.receiveValue(arrayAccess.type, 5));
72
+ return arrayAccess;
73
+ }
74
+ visitArrayType(arrayType, ctx) {
75
+ arrayType = arrayType.withId(ctx.receiveValue(arrayType.id, 0));
76
+ arrayType = arrayType.withPrefix(ctx.receiveNode(arrayType.prefix, receiveSpace));
77
+ arrayType = arrayType.withMarkers(ctx.receiveNode(arrayType.markers, ctx.receiveMarkers));
78
+ arrayType = arrayType.withElementType(ctx.receiveNode(arrayType.elementType, ctx.receiveTree));
79
+ arrayType = arrayType.withAnnotations(ctx.receiveNodes(arrayType.annotations, ctx.receiveTree));
80
+ arrayType = arrayType.withDimension(ctx.receiveNode(arrayType.dimension, leftPaddedNodeReceiver(tree_1.Space)));
81
+ arrayType = arrayType.withType(ctx.receiveValue(arrayType.type, 5));
82
+ return arrayType;
83
+ }
84
+ visitAssert(assert, ctx) {
85
+ assert = assert.withId(ctx.receiveValue(assert.id, 0));
86
+ assert = assert.withPrefix(ctx.receiveNode(assert.prefix, receiveSpace));
87
+ assert = assert.withMarkers(ctx.receiveNode(assert.markers, ctx.receiveMarkers));
88
+ assert = assert.withCondition(ctx.receiveNode(assert.condition, ctx.receiveTree));
89
+ assert = assert.withDetail(ctx.receiveNode(assert.detail, receiveLeftPaddedTree));
90
+ return assert;
91
+ }
92
+ visitAssignment(assignment, ctx) {
93
+ assignment = assignment.withId(ctx.receiveValue(assignment.id, 0));
94
+ assignment = assignment.withPrefix(ctx.receiveNode(assignment.prefix, receiveSpace));
95
+ assignment = assignment.withMarkers(ctx.receiveNode(assignment.markers, ctx.receiveMarkers));
96
+ assignment = assignment.withVariable(ctx.receiveNode(assignment.variable, ctx.receiveTree));
97
+ assignment = assignment.padding.withAssignment(ctx.receiveNode(assignment.padding.assignment, receiveLeftPaddedTree));
98
+ assignment = assignment.withType(ctx.receiveValue(assignment.type, 5));
99
+ return assignment;
100
+ }
101
+ visitAssignmentOperation(assignmentOperation, ctx) {
102
+ assignmentOperation = assignmentOperation.withId(ctx.receiveValue(assignmentOperation.id, 0));
103
+ assignmentOperation = assignmentOperation.withPrefix(ctx.receiveNode(assignmentOperation.prefix, receiveSpace));
104
+ assignmentOperation = assignmentOperation.withMarkers(ctx.receiveNode(assignmentOperation.markers, ctx.receiveMarkers));
105
+ assignmentOperation = assignmentOperation.withVariable(ctx.receiveNode(assignmentOperation.variable, ctx.receiveTree));
106
+ assignmentOperation = assignmentOperation.padding.withOperator(ctx.receiveNode(assignmentOperation.padding.operator, leftPaddedValueReceiver(3)));
107
+ assignmentOperation = assignmentOperation.withAssignment(ctx.receiveNode(assignmentOperation.assignment, ctx.receiveTree));
108
+ assignmentOperation = assignmentOperation.withType(ctx.receiveValue(assignmentOperation.type, 5));
109
+ return assignmentOperation;
110
+ }
111
+ visitBinary(binary, ctx) {
112
+ binary = binary.withId(ctx.receiveValue(binary.id, 0));
113
+ binary = binary.withPrefix(ctx.receiveNode(binary.prefix, receiveSpace));
114
+ binary = binary.withMarkers(ctx.receiveNode(binary.markers, ctx.receiveMarkers));
115
+ binary = binary.withLeft(ctx.receiveNode(binary.left, ctx.receiveTree));
116
+ binary = binary.padding.withOperator(ctx.receiveNode(binary.padding.operator, leftPaddedValueReceiver(3)));
117
+ binary = binary.withRight(ctx.receiveNode(binary.right, ctx.receiveTree));
118
+ binary = binary.withType(ctx.receiveValue(binary.type, 5));
119
+ return binary;
120
+ }
121
+ visitBlock(block, ctx) {
122
+ block = block.withId(ctx.receiveValue(block.id, 0));
123
+ block = block.withPrefix(ctx.receiveNode(block.prefix, receiveSpace));
124
+ block = block.withMarkers(ctx.receiveNode(block.markers, ctx.receiveMarkers));
125
+ block = block.padding.withStatic(ctx.receiveNode(block.padding.static, rightPaddedValueReceiver(1)));
126
+ block = block.padding.withStatements(ctx.receiveNodes(block.padding.statements, receiveRightPaddedTree));
127
+ block = block.withEnd(ctx.receiveNode(block.end, receiveSpace));
128
+ return block;
129
+ }
130
+ visitBreak(_break, ctx) {
131
+ _break = _break.withId(ctx.receiveValue(_break.id, 0));
132
+ _break = _break.withPrefix(ctx.receiveNode(_break.prefix, receiveSpace));
133
+ _break = _break.withMarkers(ctx.receiveNode(_break.markers, ctx.receiveMarkers));
134
+ _break = _break.withLabel(ctx.receiveNode(_break.label, ctx.receiveTree));
135
+ return _break;
136
+ }
137
+ visitCase(_case, ctx) {
138
+ _case = _case.withId(ctx.receiveValue(_case.id, 0));
139
+ _case = _case.withPrefix(ctx.receiveNode(_case.prefix, receiveSpace));
140
+ _case = _case.withMarkers(ctx.receiveNode(_case.markers, ctx.receiveMarkers));
141
+ _case = _case.withType(ctx.receiveValue(_case.type, 3));
142
+ _case = _case.padding.withExpressions(ctx.receiveNode(_case.padding.expressions, receiveContainer));
143
+ _case = _case.padding.withStatements(ctx.receiveNode(_case.padding.statements, receiveContainer));
144
+ _case = _case.padding.withBody(ctx.receiveNode(_case.padding.body, receiveRightPaddedTree));
145
+ return _case;
146
+ }
147
+ visitClassDeclaration(classDeclaration, ctx) {
148
+ classDeclaration = classDeclaration.withId(ctx.receiveValue(classDeclaration.id, 0));
149
+ classDeclaration = classDeclaration.withPrefix(ctx.receiveNode(classDeclaration.prefix, receiveSpace));
150
+ classDeclaration = classDeclaration.withMarkers(ctx.receiveNode(classDeclaration.markers, ctx.receiveMarkers));
151
+ classDeclaration = classDeclaration.withLeadingAnnotations(ctx.receiveNodes(classDeclaration.leadingAnnotations, ctx.receiveTree));
152
+ classDeclaration = classDeclaration.withModifiers(ctx.receiveNodes(classDeclaration.modifiers, ctx.receiveTree));
153
+ classDeclaration = classDeclaration.padding.withKind(ctx.receiveNode(classDeclaration.padding.kind, ctx.receiveTree));
154
+ classDeclaration = classDeclaration.withName(ctx.receiveNode(classDeclaration.name, ctx.receiveTree));
155
+ classDeclaration = classDeclaration.padding.withTypeParameters(ctx.receiveNode(classDeclaration.padding.typeParameters, receiveContainer));
156
+ classDeclaration = classDeclaration.padding.withPrimaryConstructor(ctx.receiveNode(classDeclaration.padding.primaryConstructor, receiveContainer));
157
+ classDeclaration = classDeclaration.padding.withExtends(ctx.receiveNode(classDeclaration.padding.extends, receiveLeftPaddedTree));
158
+ classDeclaration = classDeclaration.padding.withImplements(ctx.receiveNode(classDeclaration.padding.implements, receiveContainer));
159
+ classDeclaration = classDeclaration.padding.withPermits(ctx.receiveNode(classDeclaration.padding.permits, receiveContainer));
160
+ classDeclaration = classDeclaration.withBody(ctx.receiveNode(classDeclaration.body, ctx.receiveTree));
161
+ classDeclaration = classDeclaration.withType(ctx.receiveValue(classDeclaration.type, 5));
162
+ return classDeclaration;
163
+ }
164
+ visitClassDeclarationKind(kind, ctx) {
165
+ kind = kind.withId(ctx.receiveValue(kind.id, 0));
166
+ kind = kind.withPrefix(ctx.receiveNode(kind.prefix, receiveSpace));
167
+ kind = kind.withMarkers(ctx.receiveNode(kind.markers, ctx.receiveMarkers));
168
+ kind = kind.withAnnotations(ctx.receiveNodes(kind.annotations, ctx.receiveTree));
169
+ kind = kind.withType(ctx.receiveValue(kind.type, 3));
170
+ return kind;
171
+ }
172
+ visitCompilationUnit(compilationUnit, ctx) {
173
+ compilationUnit = compilationUnit.withId(ctx.receiveValue(compilationUnit.id, 0));
174
+ compilationUnit = compilationUnit.withPrefix(ctx.receiveNode(compilationUnit.prefix, receiveSpace));
175
+ compilationUnit = compilationUnit.withMarkers(ctx.receiveNode(compilationUnit.markers, ctx.receiveMarkers));
176
+ compilationUnit = compilationUnit.withSourcePath(ctx.receiveValue(compilationUnit.sourcePath, 1));
177
+ compilationUnit = compilationUnit.withFileAttributes(ctx.receiveValue(compilationUnit.fileAttributes, 5));
178
+ compilationUnit = compilationUnit.withCharsetName(ctx.receiveValue(compilationUnit.charsetName, 1));
179
+ compilationUnit = compilationUnit.withCharsetBomMarked(ctx.receiveValue(compilationUnit.charsetBomMarked, 1));
180
+ compilationUnit = compilationUnit.withChecksum(ctx.receiveValue(compilationUnit.checksum, 5));
181
+ compilationUnit = compilationUnit.padding.withPackageDeclaration(ctx.receiveNode(compilationUnit.padding.packageDeclaration, receiveRightPaddedTree));
182
+ compilationUnit = compilationUnit.padding.withImports(ctx.receiveNodes(compilationUnit.padding.imports, receiveRightPaddedTree));
183
+ compilationUnit = compilationUnit.withClasses(ctx.receiveNodes(compilationUnit.classes, ctx.receiveTree));
184
+ compilationUnit = compilationUnit.withEof(ctx.receiveNode(compilationUnit.eof, receiveSpace));
185
+ return compilationUnit;
186
+ }
187
+ visitContinue(_continue, ctx) {
188
+ _continue = _continue.withId(ctx.receiveValue(_continue.id, 0));
189
+ _continue = _continue.withPrefix(ctx.receiveNode(_continue.prefix, receiveSpace));
190
+ _continue = _continue.withMarkers(ctx.receiveNode(_continue.markers, ctx.receiveMarkers));
191
+ _continue = _continue.withLabel(ctx.receiveNode(_continue.label, ctx.receiveTree));
192
+ return _continue;
193
+ }
194
+ visitDoWhileLoop(doWhileLoop, ctx) {
195
+ doWhileLoop = doWhileLoop.withId(ctx.receiveValue(doWhileLoop.id, 0));
196
+ doWhileLoop = doWhileLoop.withPrefix(ctx.receiveNode(doWhileLoop.prefix, receiveSpace));
197
+ doWhileLoop = doWhileLoop.withMarkers(ctx.receiveNode(doWhileLoop.markers, ctx.receiveMarkers));
198
+ doWhileLoop = doWhileLoop.padding.withBody(ctx.receiveNode(doWhileLoop.padding.body, receiveRightPaddedTree));
199
+ doWhileLoop = doWhileLoop.padding.withWhileCondition(ctx.receiveNode(doWhileLoop.padding.whileCondition, receiveLeftPaddedTree));
200
+ return doWhileLoop;
201
+ }
202
+ visitEmpty(empty, ctx) {
203
+ empty = empty.withId(ctx.receiveValue(empty.id, 0));
204
+ empty = empty.withPrefix(ctx.receiveNode(empty.prefix, receiveSpace));
205
+ empty = empty.withMarkers(ctx.receiveNode(empty.markers, ctx.receiveMarkers));
206
+ return empty;
207
+ }
208
+ visitEnumValue(enumValue, ctx) {
209
+ enumValue = enumValue.withId(ctx.receiveValue(enumValue.id, 0));
210
+ enumValue = enumValue.withPrefix(ctx.receiveNode(enumValue.prefix, receiveSpace));
211
+ enumValue = enumValue.withMarkers(ctx.receiveNode(enumValue.markers, ctx.receiveMarkers));
212
+ enumValue = enumValue.withAnnotations(ctx.receiveNodes(enumValue.annotations, ctx.receiveTree));
213
+ enumValue = enumValue.withName(ctx.receiveNode(enumValue.name, ctx.receiveTree));
214
+ enumValue = enumValue.withInitializer(ctx.receiveNode(enumValue.initializer, ctx.receiveTree));
215
+ return enumValue;
216
+ }
217
+ visitEnumValueSet(enumValueSet, ctx) {
218
+ enumValueSet = enumValueSet.withId(ctx.receiveValue(enumValueSet.id, 0));
219
+ enumValueSet = enumValueSet.withPrefix(ctx.receiveNode(enumValueSet.prefix, receiveSpace));
220
+ enumValueSet = enumValueSet.withMarkers(ctx.receiveNode(enumValueSet.markers, ctx.receiveMarkers));
221
+ enumValueSet = enumValueSet.padding.withEnums(ctx.receiveNodes(enumValueSet.padding.enums, receiveRightPaddedTree));
222
+ enumValueSet = enumValueSet.withTerminatedWithSemicolon(ctx.receiveValue(enumValueSet.terminatedWithSemicolon, 1));
223
+ return enumValueSet;
224
+ }
225
+ visitFieldAccess(fieldAccess, ctx) {
226
+ fieldAccess = fieldAccess.withId(ctx.receiveValue(fieldAccess.id, 0));
227
+ fieldAccess = fieldAccess.withPrefix(ctx.receiveNode(fieldAccess.prefix, receiveSpace));
228
+ fieldAccess = fieldAccess.withMarkers(ctx.receiveNode(fieldAccess.markers, ctx.receiveMarkers));
229
+ fieldAccess = fieldAccess.withTarget(ctx.receiveNode(fieldAccess.target, ctx.receiveTree));
230
+ fieldAccess = fieldAccess.padding.withName(ctx.receiveNode(fieldAccess.padding.name, receiveLeftPaddedTree));
231
+ fieldAccess = fieldAccess.withType(ctx.receiveValue(fieldAccess.type, 5));
232
+ return fieldAccess;
233
+ }
234
+ visitForEachLoop(forEachLoop, ctx) {
235
+ forEachLoop = forEachLoop.withId(ctx.receiveValue(forEachLoop.id, 0));
236
+ forEachLoop = forEachLoop.withPrefix(ctx.receiveNode(forEachLoop.prefix, receiveSpace));
237
+ forEachLoop = forEachLoop.withMarkers(ctx.receiveNode(forEachLoop.markers, ctx.receiveMarkers));
238
+ forEachLoop = forEachLoop.withControl(ctx.receiveNode(forEachLoop.control, ctx.receiveTree));
239
+ forEachLoop = forEachLoop.padding.withBody(ctx.receiveNode(forEachLoop.padding.body, receiveRightPaddedTree));
240
+ return forEachLoop;
241
+ }
242
+ visitForEachControl(control, ctx) {
243
+ control = control.withId(ctx.receiveValue(control.id, 0));
244
+ control = control.withPrefix(ctx.receiveNode(control.prefix, receiveSpace));
245
+ control = control.withMarkers(ctx.receiveNode(control.markers, ctx.receiveMarkers));
246
+ control = control.padding.withVariable(ctx.receiveNode(control.padding.variable, receiveRightPaddedTree));
247
+ control = control.padding.withIterable(ctx.receiveNode(control.padding.iterable, receiveRightPaddedTree));
248
+ return control;
249
+ }
250
+ visitForLoop(forLoop, ctx) {
251
+ forLoop = forLoop.withId(ctx.receiveValue(forLoop.id, 0));
252
+ forLoop = forLoop.withPrefix(ctx.receiveNode(forLoop.prefix, receiveSpace));
253
+ forLoop = forLoop.withMarkers(ctx.receiveNode(forLoop.markers, ctx.receiveMarkers));
254
+ forLoop = forLoop.withControl(ctx.receiveNode(forLoop.control, ctx.receiveTree));
255
+ forLoop = forLoop.padding.withBody(ctx.receiveNode(forLoop.padding.body, receiveRightPaddedTree));
256
+ return forLoop;
257
+ }
258
+ visitForControl(control, ctx) {
259
+ control = control.withId(ctx.receiveValue(control.id, 0));
260
+ control = control.withPrefix(ctx.receiveNode(control.prefix, receiveSpace));
261
+ control = control.withMarkers(ctx.receiveNode(control.markers, ctx.receiveMarkers));
262
+ control = control.padding.withInit(ctx.receiveNodes(control.padding.init, receiveRightPaddedTree));
263
+ control = control.padding.withCondition(ctx.receiveNode(control.padding.condition, receiveRightPaddedTree));
264
+ control = control.padding.withUpdate(ctx.receiveNodes(control.padding.update, receiveRightPaddedTree));
265
+ return control;
266
+ }
267
+ visitParenthesizedTypeTree(parenthesizedTypeTree, ctx) {
268
+ parenthesizedTypeTree = parenthesizedTypeTree.withId(ctx.receiveValue(parenthesizedTypeTree.id, 0));
269
+ parenthesizedTypeTree = parenthesizedTypeTree.withPrefix(ctx.receiveNode(parenthesizedTypeTree.prefix, receiveSpace));
270
+ parenthesizedTypeTree = parenthesizedTypeTree.withMarkers(ctx.receiveNode(parenthesizedTypeTree.markers, ctx.receiveMarkers));
271
+ parenthesizedTypeTree = parenthesizedTypeTree.withAnnotations(ctx.receiveNodes(parenthesizedTypeTree.annotations, ctx.receiveTree));
272
+ parenthesizedTypeTree = parenthesizedTypeTree.withParenthesizedType(ctx.receiveNode(parenthesizedTypeTree.parenthesizedType, ctx.receiveTree));
273
+ return parenthesizedTypeTree;
274
+ }
275
+ visitIdentifier(identifier, ctx) {
276
+ identifier = identifier.withId(ctx.receiveValue(identifier.id, 0));
277
+ identifier = identifier.withPrefix(ctx.receiveNode(identifier.prefix, receiveSpace));
278
+ identifier = identifier.withMarkers(ctx.receiveNode(identifier.markers, ctx.receiveMarkers));
279
+ identifier = identifier.withAnnotations(ctx.receiveNodes(identifier.annotations, ctx.receiveTree));
280
+ identifier = identifier.withSimpleName(ctx.receiveValue(identifier.simpleName, 1));
281
+ identifier = identifier.withType(ctx.receiveValue(identifier.type, 5));
282
+ identifier = identifier.withFieldType(ctx.receiveValue(identifier.fieldType, 5));
283
+ return identifier;
284
+ }
285
+ visitIf(_if, ctx) {
286
+ _if = _if.withId(ctx.receiveValue(_if.id, 0));
287
+ _if = _if.withPrefix(ctx.receiveNode(_if.prefix, receiveSpace));
288
+ _if = _if.withMarkers(ctx.receiveNode(_if.markers, ctx.receiveMarkers));
289
+ _if = _if.withIfCondition(ctx.receiveNode(_if.ifCondition, ctx.receiveTree));
290
+ _if = _if.padding.withThenPart(ctx.receiveNode(_if.padding.thenPart, receiveRightPaddedTree));
291
+ _if = _if.withElsePart(ctx.receiveNode(_if.elsePart, ctx.receiveTree));
292
+ return _if;
293
+ }
294
+ visitElse(_else, ctx) {
295
+ _else = _else.withId(ctx.receiveValue(_else.id, 0));
296
+ _else = _else.withPrefix(ctx.receiveNode(_else.prefix, receiveSpace));
297
+ _else = _else.withMarkers(ctx.receiveNode(_else.markers, ctx.receiveMarkers));
298
+ _else = _else.padding.withBody(ctx.receiveNode(_else.padding.body, receiveRightPaddedTree));
299
+ return _else;
300
+ }
301
+ visitImport(_import, ctx) {
302
+ _import = _import.withId(ctx.receiveValue(_import.id, 0));
303
+ _import = _import.withPrefix(ctx.receiveNode(_import.prefix, receiveSpace));
304
+ _import = _import.withMarkers(ctx.receiveNode(_import.markers, ctx.receiveMarkers));
305
+ _import = _import.padding.withStatic(ctx.receiveNode(_import.padding.static, leftPaddedValueReceiver(1)));
306
+ _import = _import.withQualid(ctx.receiveNode(_import.qualid, ctx.receiveTree));
307
+ _import = _import.padding.withAlias(ctx.receiveNode(_import.padding.alias, receiveLeftPaddedTree));
308
+ return _import;
309
+ }
310
+ visitInstanceOf(instanceOf, ctx) {
311
+ instanceOf = instanceOf.withId(ctx.receiveValue(instanceOf.id, 0));
312
+ instanceOf = instanceOf.withPrefix(ctx.receiveNode(instanceOf.prefix, receiveSpace));
313
+ instanceOf = instanceOf.withMarkers(ctx.receiveNode(instanceOf.markers, ctx.receiveMarkers));
314
+ instanceOf = instanceOf.padding.withExpression(ctx.receiveNode(instanceOf.padding.expression, receiveRightPaddedTree));
315
+ instanceOf = instanceOf.withClazz(ctx.receiveNode(instanceOf.clazz, ctx.receiveTree));
316
+ instanceOf = instanceOf.withPattern(ctx.receiveNode(instanceOf.pattern, ctx.receiveTree));
317
+ instanceOf = instanceOf.withType(ctx.receiveValue(instanceOf.type, 5));
318
+ return instanceOf;
319
+ }
320
+ visitIntersectionType(intersectionType, ctx) {
321
+ intersectionType = intersectionType.withId(ctx.receiveValue(intersectionType.id, 0));
322
+ intersectionType = intersectionType.withPrefix(ctx.receiveNode(intersectionType.prefix, receiveSpace));
323
+ intersectionType = intersectionType.withMarkers(ctx.receiveNode(intersectionType.markers, ctx.receiveMarkers));
324
+ intersectionType = intersectionType.padding.withBounds(ctx.receiveNode(intersectionType.padding.bounds, receiveContainer));
325
+ return intersectionType;
326
+ }
327
+ visitLabel(label, ctx) {
328
+ label = label.withId(ctx.receiveValue(label.id, 0));
329
+ label = label.withPrefix(ctx.receiveNode(label.prefix, receiveSpace));
330
+ label = label.withMarkers(ctx.receiveNode(label.markers, ctx.receiveMarkers));
331
+ label = label.padding.withLabel(ctx.receiveNode(label.padding.label, receiveRightPaddedTree));
332
+ label = label.withStatement(ctx.receiveNode(label.statement, ctx.receiveTree));
333
+ return label;
334
+ }
335
+ visitLambda(lambda, ctx) {
336
+ lambda = lambda.withId(ctx.receiveValue(lambda.id, 0));
337
+ lambda = lambda.withPrefix(ctx.receiveNode(lambda.prefix, receiveSpace));
338
+ lambda = lambda.withMarkers(ctx.receiveNode(lambda.markers, ctx.receiveMarkers));
339
+ lambda = lambda.withParameters(ctx.receiveNode(lambda.parameters, ctx.receiveTree));
340
+ lambda = lambda.withArrow(ctx.receiveNode(lambda.arrow, receiveSpace));
341
+ lambda = lambda.withBody(ctx.receiveNode(lambda.body, ctx.receiveTree));
342
+ lambda = lambda.withType(ctx.receiveValue(lambda.type, 5));
343
+ return lambda;
344
+ }
345
+ visitLambdaParameters(parameters, ctx) {
346
+ parameters = parameters.withId(ctx.receiveValue(parameters.id, 0));
347
+ parameters = parameters.withPrefix(ctx.receiveNode(parameters.prefix, receiveSpace));
348
+ parameters = parameters.withMarkers(ctx.receiveNode(parameters.markers, ctx.receiveMarkers));
349
+ parameters = parameters.withParenthesized(ctx.receiveValue(parameters.parenthesized, 1));
350
+ parameters = parameters.padding.withParameters(ctx.receiveNodes(parameters.padding.parameters, receiveRightPaddedTree));
351
+ return parameters;
352
+ }
353
+ visitLiteral(literal, ctx) {
354
+ literal = literal.withId(ctx.receiveValue(literal.id, 0));
355
+ literal = literal.withPrefix(ctx.receiveNode(literal.prefix, receiveSpace));
356
+ literal = literal.withMarkers(ctx.receiveNode(literal.markers, ctx.receiveMarkers));
357
+ literal = literal.withValue(ctx.receiveValue(literal.value, 5));
358
+ literal = literal.withValueSource(ctx.receiveValue(literal.valueSource, 1));
359
+ literal = literal.withUnicodeEscapes(ctx.receiveValues(literal.unicodeEscapes, 5));
360
+ literal = literal.withType(ctx.receiveValue(literal.type, 3));
361
+ return literal;
362
+ }
363
+ visitMemberReference(memberReference, ctx) {
364
+ memberReference = memberReference.withId(ctx.receiveValue(memberReference.id, 0));
365
+ memberReference = memberReference.withPrefix(ctx.receiveNode(memberReference.prefix, receiveSpace));
366
+ memberReference = memberReference.withMarkers(ctx.receiveNode(memberReference.markers, ctx.receiveMarkers));
367
+ memberReference = memberReference.padding.withContaining(ctx.receiveNode(memberReference.padding.containing, receiveRightPaddedTree));
368
+ memberReference = memberReference.padding.withTypeParameters(ctx.receiveNode(memberReference.padding.typeParameters, receiveContainer));
369
+ memberReference = memberReference.padding.withReference(ctx.receiveNode(memberReference.padding.reference, receiveLeftPaddedTree));
370
+ memberReference = memberReference.withType(ctx.receiveValue(memberReference.type, 5));
371
+ memberReference = memberReference.withMethodType(ctx.receiveValue(memberReference.methodType, 5));
372
+ memberReference = memberReference.withVariableType(ctx.receiveValue(memberReference.variableType, 5));
373
+ return memberReference;
374
+ }
375
+ visitMethodDeclaration(methodDeclaration, ctx) {
376
+ methodDeclaration = methodDeclaration.withId(ctx.receiveValue(methodDeclaration.id, 0));
377
+ methodDeclaration = methodDeclaration.withPrefix(ctx.receiveNode(methodDeclaration.prefix, receiveSpace));
378
+ methodDeclaration = methodDeclaration.withMarkers(ctx.receiveNode(methodDeclaration.markers, ctx.receiveMarkers));
379
+ methodDeclaration = methodDeclaration.withLeadingAnnotations(ctx.receiveNodes(methodDeclaration.leadingAnnotations, ctx.receiveTree));
380
+ methodDeclaration = methodDeclaration.withModifiers(ctx.receiveNodes(methodDeclaration.modifiers, ctx.receiveTree));
381
+ methodDeclaration = methodDeclaration.annotations.withTypeParameters(ctx.receiveNode(methodDeclaration.annotations.typeParameters, ctx.receiveTree));
382
+ methodDeclaration = methodDeclaration.withReturnTypeExpression(ctx.receiveNode(methodDeclaration.returnTypeExpression, ctx.receiveTree));
383
+ methodDeclaration = methodDeclaration.annotations.withName(ctx.receiveNode(methodDeclaration.annotations.name, receiveMethodIdentifierWithAnnotations));
384
+ methodDeclaration = methodDeclaration.padding.withParameters(ctx.receiveNode(methodDeclaration.padding.parameters, receiveContainer));
385
+ methodDeclaration = methodDeclaration.padding.withThrows(ctx.receiveNode(methodDeclaration.padding.throws, receiveContainer));
386
+ methodDeclaration = methodDeclaration.withBody(ctx.receiveNode(methodDeclaration.body, ctx.receiveTree));
387
+ methodDeclaration = methodDeclaration.padding.withDefaultValue(ctx.receiveNode(methodDeclaration.padding.defaultValue, receiveLeftPaddedTree));
388
+ methodDeclaration = methodDeclaration.withMethodType(ctx.receiveValue(methodDeclaration.methodType, 5));
389
+ return methodDeclaration;
390
+ }
391
+ visitMethodInvocation(methodInvocation, ctx) {
392
+ methodInvocation = methodInvocation.withId(ctx.receiveValue(methodInvocation.id, 0));
393
+ methodInvocation = methodInvocation.withPrefix(ctx.receiveNode(methodInvocation.prefix, receiveSpace));
394
+ methodInvocation = methodInvocation.withMarkers(ctx.receiveNode(methodInvocation.markers, ctx.receiveMarkers));
395
+ methodInvocation = methodInvocation.padding.withSelect(ctx.receiveNode(methodInvocation.padding.select, receiveRightPaddedTree));
396
+ methodInvocation = methodInvocation.padding.withTypeParameters(ctx.receiveNode(methodInvocation.padding.typeParameters, receiveContainer));
397
+ methodInvocation = methodInvocation.withName(ctx.receiveNode(methodInvocation.name, ctx.receiveTree));
398
+ methodInvocation = methodInvocation.padding.withArguments(ctx.receiveNode(methodInvocation.padding.arguments, receiveContainer));
399
+ methodInvocation = methodInvocation.withMethodType(ctx.receiveValue(methodInvocation.methodType, 5));
400
+ return methodInvocation;
401
+ }
402
+ visitModifier(modifier, ctx) {
403
+ modifier = modifier.withId(ctx.receiveValue(modifier.id, 0));
404
+ modifier = modifier.withPrefix(ctx.receiveNode(modifier.prefix, receiveSpace));
405
+ modifier = modifier.withMarkers(ctx.receiveNode(modifier.markers, ctx.receiveMarkers));
406
+ modifier = modifier.withKeyword(ctx.receiveValue(modifier.keyword, 1));
407
+ modifier = modifier.withType(ctx.receiveValue(modifier.type, 3));
408
+ modifier = modifier.withAnnotations(ctx.receiveNodes(modifier.annotations, ctx.receiveTree));
409
+ return modifier;
410
+ }
411
+ visitMultiCatch(multiCatch, ctx) {
412
+ multiCatch = multiCatch.withId(ctx.receiveValue(multiCatch.id, 0));
413
+ multiCatch = multiCatch.withPrefix(ctx.receiveNode(multiCatch.prefix, receiveSpace));
414
+ multiCatch = multiCatch.withMarkers(ctx.receiveNode(multiCatch.markers, ctx.receiveMarkers));
415
+ multiCatch = multiCatch.padding.withAlternatives(ctx.receiveNodes(multiCatch.padding.alternatives, receiveRightPaddedTree));
416
+ return multiCatch;
417
+ }
418
+ visitNewArray(newArray, ctx) {
419
+ newArray = newArray.withId(ctx.receiveValue(newArray.id, 0));
420
+ newArray = newArray.withPrefix(ctx.receiveNode(newArray.prefix, receiveSpace));
421
+ newArray = newArray.withMarkers(ctx.receiveNode(newArray.markers, ctx.receiveMarkers));
422
+ newArray = newArray.withTypeExpression(ctx.receiveNode(newArray.typeExpression, ctx.receiveTree));
423
+ newArray = newArray.withDimensions(ctx.receiveNodes(newArray.dimensions, ctx.receiveTree));
424
+ newArray = newArray.padding.withInitializer(ctx.receiveNode(newArray.padding.initializer, receiveContainer));
425
+ newArray = newArray.withType(ctx.receiveValue(newArray.type, 5));
426
+ return newArray;
427
+ }
428
+ visitArrayDimension(arrayDimension, ctx) {
429
+ arrayDimension = arrayDimension.withId(ctx.receiveValue(arrayDimension.id, 0));
430
+ arrayDimension = arrayDimension.withPrefix(ctx.receiveNode(arrayDimension.prefix, receiveSpace));
431
+ arrayDimension = arrayDimension.withMarkers(ctx.receiveNode(arrayDimension.markers, ctx.receiveMarkers));
432
+ arrayDimension = arrayDimension.padding.withIndex(ctx.receiveNode(arrayDimension.padding.index, receiveRightPaddedTree));
433
+ return arrayDimension;
434
+ }
435
+ visitNewClass(newClass, ctx) {
436
+ newClass = newClass.withId(ctx.receiveValue(newClass.id, 0));
437
+ newClass = newClass.withPrefix(ctx.receiveNode(newClass.prefix, receiveSpace));
438
+ newClass = newClass.withMarkers(ctx.receiveNode(newClass.markers, ctx.receiveMarkers));
439
+ newClass = newClass.padding.withEnclosing(ctx.receiveNode(newClass.padding.enclosing, receiveRightPaddedTree));
440
+ newClass = newClass.withNew(ctx.receiveNode(newClass.new, receiveSpace));
441
+ newClass = newClass.withClazz(ctx.receiveNode(newClass.clazz, ctx.receiveTree));
442
+ newClass = newClass.padding.withArguments(ctx.receiveNode(newClass.padding.arguments, receiveContainer));
443
+ newClass = newClass.withBody(ctx.receiveNode(newClass.body, ctx.receiveTree));
444
+ newClass = newClass.withConstructorType(ctx.receiveValue(newClass.constructorType, 5));
445
+ return newClass;
446
+ }
447
+ visitNullableType(nullableType, ctx) {
448
+ nullableType = nullableType.withId(ctx.receiveValue(nullableType.id, 0));
449
+ nullableType = nullableType.withPrefix(ctx.receiveNode(nullableType.prefix, receiveSpace));
450
+ nullableType = nullableType.withMarkers(ctx.receiveNode(nullableType.markers, ctx.receiveMarkers));
451
+ nullableType = nullableType.withAnnotations(ctx.receiveNodes(nullableType.annotations, ctx.receiveTree));
452
+ nullableType = nullableType.padding.withTypeTree(ctx.receiveNode(nullableType.padding.typeTree, receiveRightPaddedTree));
453
+ return nullableType;
454
+ }
455
+ visitPackage(_package, ctx) {
456
+ _package = _package.withId(ctx.receiveValue(_package.id, 0));
457
+ _package = _package.withPrefix(ctx.receiveNode(_package.prefix, receiveSpace));
458
+ _package = _package.withMarkers(ctx.receiveNode(_package.markers, ctx.receiveMarkers));
459
+ _package = _package.withExpression(ctx.receiveNode(_package.expression, ctx.receiveTree));
460
+ _package = _package.withAnnotations(ctx.receiveNodes(_package.annotations, ctx.receiveTree));
461
+ return _package;
462
+ }
463
+ visitParameterizedType(parameterizedType, ctx) {
464
+ parameterizedType = parameterizedType.withId(ctx.receiveValue(parameterizedType.id, 0));
465
+ parameterizedType = parameterizedType.withPrefix(ctx.receiveNode(parameterizedType.prefix, receiveSpace));
466
+ parameterizedType = parameterizedType.withMarkers(ctx.receiveNode(parameterizedType.markers, ctx.receiveMarkers));
467
+ parameterizedType = parameterizedType.withClazz(ctx.receiveNode(parameterizedType.clazz, ctx.receiveTree));
468
+ parameterizedType = parameterizedType.padding.withTypeParameters(ctx.receiveNode(parameterizedType.padding.typeParameters, receiveContainer));
469
+ parameterizedType = parameterizedType.withType(ctx.receiveValue(parameterizedType.type, 5));
470
+ return parameterizedType;
471
+ }
472
+ visitParentheses(parentheses, ctx) {
473
+ parentheses = parentheses.withId(ctx.receiveValue(parentheses.id, 0));
474
+ parentheses = parentheses.withPrefix(ctx.receiveNode(parentheses.prefix, receiveSpace));
475
+ parentheses = parentheses.withMarkers(ctx.receiveNode(parentheses.markers, ctx.receiveMarkers));
476
+ parentheses = parentheses.padding.withTree(ctx.receiveNode(parentheses.padding.tree, receiveRightPaddedTree));
477
+ return parentheses;
478
+ }
479
+ visitControlParentheses(controlParentheses, ctx) {
480
+ controlParentheses = controlParentheses.withId(ctx.receiveValue(controlParentheses.id, 0));
481
+ controlParentheses = controlParentheses.withPrefix(ctx.receiveNode(controlParentheses.prefix, receiveSpace));
482
+ controlParentheses = controlParentheses.withMarkers(ctx.receiveNode(controlParentheses.markers, ctx.receiveMarkers));
483
+ controlParentheses = controlParentheses.padding.withTree(ctx.receiveNode(controlParentheses.padding.tree, receiveRightPaddedTree));
484
+ return controlParentheses;
485
+ }
486
+ visitPrimitive(primitive, ctx) {
487
+ primitive = primitive.withId(ctx.receiveValue(primitive.id, 0));
488
+ primitive = primitive.withPrefix(ctx.receiveNode(primitive.prefix, receiveSpace));
489
+ primitive = primitive.withMarkers(ctx.receiveNode(primitive.markers, ctx.receiveMarkers));
490
+ primitive = primitive.withType(ctx.receiveValue(primitive.type, 3));
491
+ return primitive;
492
+ }
493
+ visitReturn(_return, ctx) {
494
+ _return = _return.withId(ctx.receiveValue(_return.id, 0));
495
+ _return = _return.withPrefix(ctx.receiveNode(_return.prefix, receiveSpace));
496
+ _return = _return.withMarkers(ctx.receiveNode(_return.markers, ctx.receiveMarkers));
497
+ _return = _return.withExpression(ctx.receiveNode(_return.expression, ctx.receiveTree));
498
+ return _return;
499
+ }
500
+ visitSwitch(_switch, ctx) {
501
+ _switch = _switch.withId(ctx.receiveValue(_switch.id, 0));
502
+ _switch = _switch.withPrefix(ctx.receiveNode(_switch.prefix, receiveSpace));
503
+ _switch = _switch.withMarkers(ctx.receiveNode(_switch.markers, ctx.receiveMarkers));
504
+ _switch = _switch.withSelector(ctx.receiveNode(_switch.selector, ctx.receiveTree));
505
+ _switch = _switch.withCases(ctx.receiveNode(_switch.cases, ctx.receiveTree));
506
+ return _switch;
507
+ }
508
+ visitSwitchExpression(switchExpression, ctx) {
509
+ switchExpression = switchExpression.withId(ctx.receiveValue(switchExpression.id, 0));
510
+ switchExpression = switchExpression.withPrefix(ctx.receiveNode(switchExpression.prefix, receiveSpace));
511
+ switchExpression = switchExpression.withMarkers(ctx.receiveNode(switchExpression.markers, ctx.receiveMarkers));
512
+ switchExpression = switchExpression.withSelector(ctx.receiveNode(switchExpression.selector, ctx.receiveTree));
513
+ switchExpression = switchExpression.withCases(ctx.receiveNode(switchExpression.cases, ctx.receiveTree));
514
+ return switchExpression;
515
+ }
516
+ visitSynchronized(synchronized, ctx) {
517
+ synchronized = synchronized.withId(ctx.receiveValue(synchronized.id, 0));
518
+ synchronized = synchronized.withPrefix(ctx.receiveNode(synchronized.prefix, receiveSpace));
519
+ synchronized = synchronized.withMarkers(ctx.receiveNode(synchronized.markers, ctx.receiveMarkers));
520
+ synchronized = synchronized.withLock(ctx.receiveNode(synchronized.lock, ctx.receiveTree));
521
+ synchronized = synchronized.withBody(ctx.receiveNode(synchronized.body, ctx.receiveTree));
522
+ return synchronized;
523
+ }
524
+ visitTernary(ternary, ctx) {
525
+ ternary = ternary.withId(ctx.receiveValue(ternary.id, 0));
526
+ ternary = ternary.withPrefix(ctx.receiveNode(ternary.prefix, receiveSpace));
527
+ ternary = ternary.withMarkers(ctx.receiveNode(ternary.markers, ctx.receiveMarkers));
528
+ ternary = ternary.withCondition(ctx.receiveNode(ternary.condition, ctx.receiveTree));
529
+ ternary = ternary.padding.withTruePart(ctx.receiveNode(ternary.padding.truePart, receiveLeftPaddedTree));
530
+ ternary = ternary.padding.withFalsePart(ctx.receiveNode(ternary.padding.falsePart, receiveLeftPaddedTree));
531
+ ternary = ternary.withType(ctx.receiveValue(ternary.type, 5));
532
+ return ternary;
533
+ }
534
+ visitThrow(_throw, ctx) {
535
+ _throw = _throw.withId(ctx.receiveValue(_throw.id, 0));
536
+ _throw = _throw.withPrefix(ctx.receiveNode(_throw.prefix, receiveSpace));
537
+ _throw = _throw.withMarkers(ctx.receiveNode(_throw.markers, ctx.receiveMarkers));
538
+ _throw = _throw.withException(ctx.receiveNode(_throw.exception, ctx.receiveTree));
539
+ return _throw;
540
+ }
541
+ visitTry(_try, ctx) {
542
+ _try = _try.withId(ctx.receiveValue(_try.id, 0));
543
+ _try = _try.withPrefix(ctx.receiveNode(_try.prefix, receiveSpace));
544
+ _try = _try.withMarkers(ctx.receiveNode(_try.markers, ctx.receiveMarkers));
545
+ _try = _try.padding.withResources(ctx.receiveNode(_try.padding.resources, receiveContainer));
546
+ _try = _try.withBody(ctx.receiveNode(_try.body, ctx.receiveTree));
547
+ _try = _try.withCatches(ctx.receiveNodes(_try.catches, ctx.receiveTree));
548
+ _try = _try.padding.withFinally(ctx.receiveNode(_try.padding.finally, receiveLeftPaddedTree));
549
+ return _try;
550
+ }
551
+ visitTryResource(resource, ctx) {
552
+ resource = resource.withId(ctx.receiveValue(resource.id, 0));
553
+ resource = resource.withPrefix(ctx.receiveNode(resource.prefix, receiveSpace));
554
+ resource = resource.withMarkers(ctx.receiveNode(resource.markers, ctx.receiveMarkers));
555
+ resource = resource.withVariableDeclarations(ctx.receiveNode(resource.variableDeclarations, ctx.receiveTree));
556
+ resource = resource.withTerminatedWithSemicolon(ctx.receiveValue(resource.terminatedWithSemicolon, 1));
557
+ return resource;
558
+ }
559
+ visitCatch(_catch, ctx) {
560
+ _catch = _catch.withId(ctx.receiveValue(_catch.id, 0));
561
+ _catch = _catch.withPrefix(ctx.receiveNode(_catch.prefix, receiveSpace));
562
+ _catch = _catch.withMarkers(ctx.receiveNode(_catch.markers, ctx.receiveMarkers));
563
+ _catch = _catch.withParameter(ctx.receiveNode(_catch.parameter, ctx.receiveTree));
564
+ _catch = _catch.withBody(ctx.receiveNode(_catch.body, ctx.receiveTree));
565
+ return _catch;
566
+ }
567
+ visitTypeCast(typeCast, ctx) {
568
+ typeCast = typeCast.withId(ctx.receiveValue(typeCast.id, 0));
569
+ typeCast = typeCast.withPrefix(ctx.receiveNode(typeCast.prefix, receiveSpace));
570
+ typeCast = typeCast.withMarkers(ctx.receiveNode(typeCast.markers, ctx.receiveMarkers));
571
+ typeCast = typeCast.withClazz(ctx.receiveNode(typeCast.clazz, ctx.receiveTree));
572
+ typeCast = typeCast.withExpression(ctx.receiveNode(typeCast.expression, ctx.receiveTree));
573
+ return typeCast;
574
+ }
575
+ visitTypeParameter(typeParameter, ctx) {
576
+ typeParameter = typeParameter.withId(ctx.receiveValue(typeParameter.id, 0));
577
+ typeParameter = typeParameter.withPrefix(ctx.receiveNode(typeParameter.prefix, receiveSpace));
578
+ typeParameter = typeParameter.withMarkers(ctx.receiveNode(typeParameter.markers, ctx.receiveMarkers));
579
+ typeParameter = typeParameter.withAnnotations(ctx.receiveNodes(typeParameter.annotations, ctx.receiveTree));
580
+ typeParameter = typeParameter.withModifiers(ctx.receiveNodes(typeParameter.modifiers, ctx.receiveTree));
581
+ typeParameter = typeParameter.withName(ctx.receiveNode(typeParameter.name, ctx.receiveTree));
582
+ typeParameter = typeParameter.padding.withBounds(ctx.receiveNode(typeParameter.padding.bounds, receiveContainer));
583
+ return typeParameter;
584
+ }
585
+ visitTypeParameters(typeParameters, ctx) {
586
+ typeParameters = typeParameters.withId(ctx.receiveValue(typeParameters.id, 0));
587
+ typeParameters = typeParameters.withPrefix(ctx.receiveNode(typeParameters.prefix, receiveSpace));
588
+ typeParameters = typeParameters.withMarkers(ctx.receiveNode(typeParameters.markers, ctx.receiveMarkers));
589
+ typeParameters = typeParameters.withAnnotations(ctx.receiveNodes(typeParameters.annotations, ctx.receiveTree));
590
+ typeParameters = typeParameters.padding.withTypeParameters(ctx.receiveNodes(typeParameters.padding.typeParameters, receiveRightPaddedTree));
591
+ return typeParameters;
592
+ }
593
+ visitUnary(unary, ctx) {
594
+ unary = unary.withId(ctx.receiveValue(unary.id, 0));
595
+ unary = unary.withPrefix(ctx.receiveNode(unary.prefix, receiveSpace));
596
+ unary = unary.withMarkers(ctx.receiveNode(unary.markers, ctx.receiveMarkers));
597
+ unary = unary.padding.withOperator(ctx.receiveNode(unary.padding.operator, leftPaddedValueReceiver(3)));
598
+ unary = unary.withExpression(ctx.receiveNode(unary.expression, ctx.receiveTree));
599
+ unary = unary.withType(ctx.receiveValue(unary.type, 5));
600
+ return unary;
601
+ }
602
+ visitVariableDeclarations(variableDeclarations, ctx) {
603
+ variableDeclarations = variableDeclarations.withId(ctx.receiveValue(variableDeclarations.id, 0));
604
+ variableDeclarations = variableDeclarations.withPrefix(ctx.receiveNode(variableDeclarations.prefix, receiveSpace));
605
+ variableDeclarations = variableDeclarations.withMarkers(ctx.receiveNode(variableDeclarations.markers, ctx.receiveMarkers));
606
+ variableDeclarations = variableDeclarations.withLeadingAnnotations(ctx.receiveNodes(variableDeclarations.leadingAnnotations, ctx.receiveTree));
607
+ variableDeclarations = variableDeclarations.withModifiers(ctx.receiveNodes(variableDeclarations.modifiers, ctx.receiveTree));
608
+ variableDeclarations = variableDeclarations.withTypeExpression(ctx.receiveNode(variableDeclarations.typeExpression, ctx.receiveTree));
609
+ variableDeclarations = variableDeclarations.withVarargs(ctx.receiveNode(variableDeclarations.varargs, receiveSpace));
610
+ variableDeclarations = variableDeclarations.withDimensionsBeforeName(ctx.receiveNodes(variableDeclarations.dimensionsBeforeName, leftPaddedNodeReceiver(tree_1.Space)));
611
+ variableDeclarations = variableDeclarations.padding.withVariables(ctx.receiveNodes(variableDeclarations.padding.variables, receiveRightPaddedTree));
612
+ return variableDeclarations;
613
+ }
614
+ visitVariable(namedVariable, ctx) {
615
+ namedVariable = namedVariable.withId(ctx.receiveValue(namedVariable.id, 0));
616
+ namedVariable = namedVariable.withPrefix(ctx.receiveNode(namedVariable.prefix, receiveSpace));
617
+ namedVariable = namedVariable.withMarkers(ctx.receiveNode(namedVariable.markers, ctx.receiveMarkers));
618
+ namedVariable = namedVariable.withName(ctx.receiveNode(namedVariable.name, ctx.receiveTree));
619
+ namedVariable = namedVariable.withDimensionsAfterName(ctx.receiveNodes(namedVariable.dimensionsAfterName, leftPaddedNodeReceiver(tree_1.Space)));
620
+ namedVariable = namedVariable.padding.withInitializer(ctx.receiveNode(namedVariable.padding.initializer, receiveLeftPaddedTree));
621
+ namedVariable = namedVariable.withVariableType(ctx.receiveValue(namedVariable.variableType, 5));
622
+ return namedVariable;
623
+ }
624
+ visitWhileLoop(whileLoop, ctx) {
625
+ whileLoop = whileLoop.withId(ctx.receiveValue(whileLoop.id, 0));
626
+ whileLoop = whileLoop.withPrefix(ctx.receiveNode(whileLoop.prefix, receiveSpace));
627
+ whileLoop = whileLoop.withMarkers(ctx.receiveNode(whileLoop.markers, ctx.receiveMarkers));
628
+ whileLoop = whileLoop.withCondition(ctx.receiveNode(whileLoop.condition, ctx.receiveTree));
629
+ whileLoop = whileLoop.padding.withBody(ctx.receiveNode(whileLoop.padding.body, receiveRightPaddedTree));
630
+ return whileLoop;
631
+ }
632
+ visitWildcard(wildcard, ctx) {
633
+ wildcard = wildcard.withId(ctx.receiveValue(wildcard.id, 0));
634
+ wildcard = wildcard.withPrefix(ctx.receiveNode(wildcard.prefix, receiveSpace));
635
+ wildcard = wildcard.withMarkers(ctx.receiveNode(wildcard.markers, ctx.receiveMarkers));
636
+ wildcard = wildcard.padding.withBound(ctx.receiveNode(wildcard.padding.bound, leftPaddedValueReceiver(3)));
637
+ wildcard = wildcard.withBoundedType(ctx.receiveNode(wildcard.boundedType, ctx.receiveTree));
638
+ return wildcard;
639
+ }
640
+ visitYield(_yield, ctx) {
641
+ _yield = _yield.withId(ctx.receiveValue(_yield.id, 0));
642
+ _yield = _yield.withPrefix(ctx.receiveNode(_yield.prefix, receiveSpace));
643
+ _yield = _yield.withMarkers(ctx.receiveNode(_yield.markers, ctx.receiveMarkers));
644
+ _yield = _yield.withImplicit(ctx.receiveValue(_yield.implicit, 1));
645
+ _yield = _yield.withValue(ctx.receiveNode(_yield.value, ctx.receiveTree));
646
+ return _yield;
647
+ }
648
+ visitUnknown(unknown, ctx) {
649
+ unknown = unknown.withId(ctx.receiveValue(unknown.id, 0));
650
+ unknown = unknown.withPrefix(ctx.receiveNode(unknown.prefix, receiveSpace));
651
+ unknown = unknown.withMarkers(ctx.receiveNode(unknown.markers, ctx.receiveMarkers));
652
+ unknown = unknown.withSource(ctx.receiveNode(unknown.source, ctx.receiveTree));
653
+ return unknown;
654
+ }
655
+ visitUnknownSource(source, ctx) {
656
+ source = source.withId(ctx.receiveValue(source.id, 0));
657
+ source = source.withPrefix(ctx.receiveNode(source.prefix, receiveSpace));
658
+ source = source.withMarkers(ctx.receiveNode(source.markers, ctx.receiveMarkers));
659
+ source = source.withText(ctx.receiveValue(source.text, 1));
660
+ return source;
661
+ }
662
+ }
663
+ class Factory {
664
+ create(type, ctx) {
665
+ if (type === "org.openrewrite.java.tree.J$AnnotatedType") {
666
+ return new tree_1.AnnotatedType(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree));
667
+ }
668
+ if (type === "org.openrewrite.java.tree.J$Annotation") {
669
+ return new tree_1.Annotation(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveContainer));
670
+ }
671
+ if (type === "org.openrewrite.java.tree.J$ArrayAccess") {
672
+ return new tree_1.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));
673
+ }
674
+ if (type === "org.openrewrite.java.tree.J$ArrayType") {
675
+ return new tree_1.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(tree_1.Space)), ctx.receiveValue(null, 5));
676
+ }
677
+ if (type === "org.openrewrite.java.tree.J$Assert") {
678
+ return new tree_1.Assert(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveLeftPaddedTree));
679
+ }
680
+ if (type === "org.openrewrite.java.tree.J$Assignment") {
681
+ return new tree_1.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));
682
+ }
683
+ if (type === "org.openrewrite.java.tree.J$AssignmentOperation") {
684
+ return new tree_1.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));
685
+ }
686
+ if (type === "org.openrewrite.java.tree.J$Binary") {
687
+ return new tree_1.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));
688
+ }
689
+ if (type === "org.openrewrite.java.tree.J$Block") {
690
+ return new tree_1.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));
691
+ }
692
+ if (type === "org.openrewrite.java.tree.J$Break") {
693
+ return new tree_1.Break(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree));
694
+ }
695
+ if (type === "org.openrewrite.java.tree.J$Case") {
696
+ return new tree_1.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));
697
+ }
698
+ if (type === "org.openrewrite.java.tree.J$ClassDeclaration") {
699
+ return new tree_1.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));
700
+ }
701
+ if (type === "org.openrewrite.java.tree.J$ClassDeclaration$Kind") {
702
+ return new tree_1.ClassDeclaration.Kind(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveValue(null, 3));
703
+ }
704
+ if (type === "org.openrewrite.java.tree.J$CompilationUnit") {
705
+ 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.receiveNode(null, receiveRightPaddedTree), ctx.receiveNodes(null, receiveRightPaddedTree), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, receiveSpace));
706
+ }
707
+ if (type === "org.openrewrite.java.tree.J$Continue") {
708
+ return new tree_1.Continue(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree));
709
+ }
710
+ if (type === "org.openrewrite.java.tree.J$DoWhileLoop") {
711
+ return new tree_1.DoWhileLoop(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveNode(null, receiveLeftPaddedTree));
712
+ }
713
+ if (type === "org.openrewrite.java.tree.J$Empty") {
714
+ return new tree_1.Empty(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers));
715
+ }
716
+ if (type === "org.openrewrite.java.tree.J$EnumValue") {
717
+ return new tree_1.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));
718
+ }
719
+ if (type === "org.openrewrite.java.tree.J$EnumValueSet") {
720
+ return new tree_1.EnumValueSet(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, receiveRightPaddedTree), ctx.receiveValue(null, 1));
721
+ }
722
+ if (type === "org.openrewrite.java.tree.J$FieldAccess") {
723
+ return new tree_1.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));
724
+ }
725
+ if (type === "org.openrewrite.java.tree.J$ForEachLoop") {
726
+ return new tree_1.ForEachLoop(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveRightPaddedTree));
727
+ }
728
+ if (type === "org.openrewrite.java.tree.J$ForEachLoop$Control") {
729
+ return new tree_1.ForEachLoop.Control(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveNode(null, receiveRightPaddedTree));
730
+ }
731
+ if (type === "org.openrewrite.java.tree.J$ForLoop") {
732
+ return new tree_1.ForLoop(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveRightPaddedTree));
733
+ }
734
+ if (type === "org.openrewrite.java.tree.J$ForLoop$Control") {
735
+ return new tree_1.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));
736
+ }
737
+ if (type === "org.openrewrite.java.tree.J$ParenthesizedTypeTree") {
738
+ return new tree_1.ParenthesizedTypeTree(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree));
739
+ }
740
+ if (type === "org.openrewrite.java.tree.J$Identifier") {
741
+ return new tree_1.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));
742
+ }
743
+ if (type === "org.openrewrite.java.tree.J$If") {
744
+ return new tree_1.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));
745
+ }
746
+ if (type === "org.openrewrite.java.tree.J$If$Else") {
747
+ return new tree_1.If.Else(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree));
748
+ }
749
+ if (type === "org.openrewrite.java.tree.J$Import") {
750
+ return new tree_1.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));
751
+ }
752
+ if (type === "org.openrewrite.java.tree.J$InstanceOf") {
753
+ return new tree_1.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));
754
+ }
755
+ if (type === "org.openrewrite.java.tree.J$IntersectionType") {
756
+ return new tree_1.IntersectionType(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveContainer));
757
+ }
758
+ if (type === "org.openrewrite.java.tree.J$Label") {
759
+ return new tree_1.Label(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree), ctx.receiveNode(null, ctx.receiveTree));
760
+ }
761
+ if (type === "org.openrewrite.java.tree.J$Lambda") {
762
+ return new tree_1.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));
763
+ }
764
+ if (type === "org.openrewrite.java.tree.J$Lambda$Parameters") {
765
+ return new tree_1.Lambda.Parameters(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveValue(null, 1), ctx.receiveNodes(null, receiveRightPaddedTree));
766
+ }
767
+ if (type === "org.openrewrite.java.tree.J$Literal") {
768
+ return new tree_1.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));
769
+ }
770
+ if (type === "org.openrewrite.java.tree.J$MemberReference") {
771
+ return new tree_1.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));
772
+ }
773
+ if (type === "org.openrewrite.java.tree.J$MethodDeclaration") {
774
+ return new tree_1.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));
775
+ }
776
+ if (type === "org.openrewrite.java.tree.J$MethodInvocation") {
777
+ return new tree_1.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));
778
+ }
779
+ if (type === "org.openrewrite.java.tree.J$Modifier") {
780
+ return new tree_1.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));
781
+ }
782
+ if (type === "org.openrewrite.java.tree.J$MultiCatch") {
783
+ return new tree_1.MultiCatch(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, receiveRightPaddedTree));
784
+ }
785
+ if (type === "org.openrewrite.java.tree.J$NewArray") {
786
+ return new tree_1.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));
787
+ }
788
+ if (type === "org.openrewrite.java.tree.J$ArrayDimension") {
789
+ return new tree_1.ArrayDimension(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree));
790
+ }
791
+ if (type === "org.openrewrite.java.tree.J$NewClass") {
792
+ return new tree_1.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));
793
+ }
794
+ if (type === "org.openrewrite.java.tree.J$NullableType") {
795
+ return new tree_1.NullableType(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNode(null, receiveRightPaddedTree));
796
+ }
797
+ if (type === "org.openrewrite.java.tree.J$Package") {
798
+ return new tree_1.Package(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNodes(null, ctx.receiveTree));
799
+ }
800
+ if (type === "org.openrewrite.java.tree.J$ParameterizedType") {
801
+ return new tree_1.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));
802
+ }
803
+ if (type === "org.openrewrite.java.tree.J$Parentheses") {
804
+ return new tree_1.Parentheses(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree));
805
+ }
806
+ if (type === "org.openrewrite.java.tree.J$ControlParentheses") {
807
+ return new tree_1.ControlParentheses(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, receiveRightPaddedTree));
808
+ }
809
+ if (type === "org.openrewrite.java.tree.J$Primitive") {
810
+ return new tree_1.Primitive(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveValue(null, 3));
811
+ }
812
+ if (type === "org.openrewrite.java.tree.J$Return") {
813
+ return new tree_1.Return(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree));
814
+ }
815
+ if (type === "org.openrewrite.java.tree.J$Switch") {
816
+ return new tree_1.Switch(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree));
817
+ }
818
+ if (type === "org.openrewrite.java.tree.J$SwitchExpression") {
819
+ return new tree_1.SwitchExpression(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree));
820
+ }
821
+ if (type === "org.openrewrite.java.tree.J$Synchronized") {
822
+ return new tree_1.Synchronized(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree));
823
+ }
824
+ if (type === "org.openrewrite.java.tree.J$Ternary") {
825
+ return new tree_1.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));
826
+ }
827
+ if (type === "org.openrewrite.java.tree.J$Throw") {
828
+ return new tree_1.Throw(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree));
829
+ }
830
+ if (type === "org.openrewrite.java.tree.J$Try") {
831
+ return new tree_1.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));
832
+ }
833
+ if (type === "org.openrewrite.java.tree.J$Try$Resource") {
834
+ return new tree_1.Try.Resource(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveValue(null, 1));
835
+ }
836
+ if (type === "org.openrewrite.java.tree.J$Try$Catch") {
837
+ return new tree_1.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));
838
+ }
839
+ if (type === "org.openrewrite.java.tree.J$TypeCast") {
840
+ return new tree_1.TypeCast(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, ctx.receiveTree));
841
+ }
842
+ if (type === "org.openrewrite.java.tree.J$TypeParameter") {
843
+ return new tree_1.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));
844
+ }
845
+ if (type === "org.openrewrite.java.tree.J$TypeParameters") {
846
+ return new tree_1.TypeParameters(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNodes(null, ctx.receiveTree), ctx.receiveNodes(null, receiveRightPaddedTree));
847
+ }
848
+ if (type === "org.openrewrite.java.tree.J$Unary") {
849
+ 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));
850
+ }
851
+ if (type === "org.openrewrite.java.tree.J$VariableDeclarations") {
852
+ return new tree_1.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(tree_1.Space)), ctx.receiveNodes(null, receiveRightPaddedTree));
853
+ }
854
+ if (type === "org.openrewrite.java.tree.J$VariableDeclarations$NamedVariable") {
855
+ return new tree_1.VariableDeclarations.NamedVariable(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNodes(null, leftPaddedNodeReceiver(tree_1.Space)), ctx.receiveNode(null, receiveLeftPaddedTree), ctx.receiveValue(null, 5));
856
+ }
857
+ if (type === "org.openrewrite.java.tree.J$WhileLoop") {
858
+ return new tree_1.WhileLoop(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNode(null, receiveRightPaddedTree));
859
+ }
860
+ if (type === "org.openrewrite.java.tree.J$Wildcard") {
861
+ return new tree_1.Wildcard(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, leftPaddedValueReceiver(3)), ctx.receiveNode(null, ctx.receiveTree));
862
+ }
863
+ if (type === "org.openrewrite.java.tree.J$Yield") {
864
+ 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));
865
+ }
866
+ if (type === "org.openrewrite.java.tree.J$Unknown") {
867
+ return new tree_1.Unknown(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveNode(null, ctx.receiveTree));
868
+ }
869
+ if (type === "org.openrewrite.java.tree.J$Unknown$Source") {
870
+ return new tree_1.Unknown.Source(ctx.receiveValue(null, 0), ctx.receiveNode(null, receiveSpace), ctx.receiveNode(null, ctx.receiveMarkers), ctx.receiveValue(null, 1));
871
+ }
872
+ throw new Error("No factory method for type: " + type);
873
+ }
874
+ }
875
+ function receiveMethodIdentifierWithAnnotations(before, type, ctx) {
876
+ if (before !== null) {
877
+ before = before.withIdentifier(ctx.receiveNode(before.identifier, ctx.receiveTree));
878
+ before = before.withAnnotations(ctx.receiveNodes(before.annotations, ctx.receiveTree));
879
+ }
880
+ else {
881
+ before = new Java.MethodDeclaration.IdentifierWithAnnotations(ctx.receiveNode(null, ctx.receiveTree), ctx.receiveNodes(null, ctx.receiveTree));
882
+ }
883
+ return before;
884
+ }
885
+ function receiveContainer(container, type, ctx) {
886
+ return extensions.receiveContainer(container, type, ctx);
887
+ }
888
+ function leftPaddedValueReceiver(type) {
889
+ return extensions.leftPaddedValueReceiver(type);
890
+ }
891
+ function leftPaddedNodeReceiver(type) {
892
+ return extensions.leftPaddedNodeReceiver(type);
893
+ }
894
+ function receiveLeftPaddedTree(leftPadded, type, ctx) {
895
+ return extensions.receiveLeftPaddedTree(leftPadded, type, ctx);
896
+ }
897
+ function rightPaddedValueReceiver(type) {
898
+ return extensions.rightPaddedValueReceiver(type);
899
+ }
900
+ function rightPaddedNodeReceiver(type) {
901
+ return extensions.rightPaddedNodeReceiver(type);
902
+ }
903
+ function receiveRightPaddedTree(rightPadded, type, ctx) {
904
+ return extensions.receiveRightPaddedTree(rightPadded, type, ctx);
905
+ }
906
+ function receiveSpace(space, type, ctx) {
907
+ return extensions.receiveSpace(space, type, ctx);
908
+ }
909
+ //# sourceMappingURL=receiver.js.map