1313public interface JName extends Expression , IRKind .Primitive {
1414 String name ();
1515
16- /** Checks whether a name is a call-site method name.
16+ /**
17+ * Checks whether a name is a call-site method name.
1718 *
1819 * @return `true` if the name was created through a method call
1920 */
@@ -28,10 +29,12 @@ default boolean isMethod() {
2829 JName setLocation (Option <IdentifiedLocation > location );
2930
3031 @ Override
31- JName duplicate (boolean keepLocations , boolean keepMetadata , boolean keepDiagnostics ,
32+ JName duplicate (
33+ boolean keepLocations ,
34+ boolean keepMetadata ,
35+ boolean keepDiagnostics ,
3236 boolean keepIdentifiers );
3337
34-
3538 @ GenerateIR (interfaces = {JName .class , IRKind .Sugar .class })
3639 final class MethodReference extends NameMethodReferenceGen {
3740 @ GenerateFields
@@ -40,15 +43,13 @@ public MethodReference(
4043 @ IRChild JName methodName ,
4144 IdentifiedLocation identifiedLocation ,
4245 MetadataStorage passData ,
43- DiagnosticStorage diagnostics
44- ) {
46+ DiagnosticStorage diagnostics ) {
4547 super (typePointer , methodName , identifiedLocation , passData , diagnostics );
4648 }
4749
4850 @ Override
4951 public String showCode (int indent ) {
50- var tPointer = typePointer ().map (tp -> tp .showCode (indent ) + "." )
51- .getOrElse (() -> "" );
52+ var tPointer = typePointer ().map (tp -> tp .showCode (indent ) + "." ).getOrElse (() -> "" );
5253 return tPointer + methodName ().showCode (indent );
5354 }
5455
@@ -67,9 +68,7 @@ public boolean isSameReferenceAs(MethodReference that) {
6768 }
6869 }
6970
70- /**
71- * A representation of a qualified (multi-part) name.
72- */
71+ /** A representation of a qualified (multi-part) name. */
7372 @ GenerateIR (interfaces = {JName .class , IRKind .Primitive .class })
7473 final class Qualified extends NameQualifiedGen {
7574
@@ -83,8 +82,7 @@ public Qualified(
8382 @ IRChild List <JName > parts ,
8483 IdentifiedLocation identifiedLocation ,
8584 MetadataStorage passData ,
86- DiagnosticStorage diagnostics
87- ) {
85+ DiagnosticStorage diagnostics ) {
8886 super (parts , identifiedLocation , passData , diagnostics );
8987 }
9088
@@ -99,17 +97,14 @@ public String showCode(int indent) {
9997 }
10098 }
10199
102- /**
103- * Represents occurrences of blank (`_`) expressions.
104- */
100+ /** Represents occurrences of blank (`_`) expressions. */
105101 @ GenerateIR (interfaces = {JName .class , IRKind .Sugar .class })
106102 final class Blank extends NameBlankGen {
107103 @ GenerateFields
108104 public Blank (
109105 IdentifiedLocation identifiedLocation ,
110106 MetadataStorage passData ,
111- DiagnosticStorage diagnostics
112- ) {
107+ DiagnosticStorage diagnostics ) {
113108 super (identifiedLocation , passData , diagnostics );
114109 }
115110
@@ -138,8 +133,7 @@ enum Ident {
138133 public Special (
139134 @ IRField Ident specialName ,
140135 IdentifiedLocation identifiedLocation ,
141- MetadataStorage passData
142- ) {
136+ MetadataStorage passData ) {
143137 super (specialName , identifiedLocation , passData );
144138 }
145139
@@ -163,8 +157,7 @@ public Literal(
163157 @ IRField JName origName ,
164158 IdentifiedLocation identifiedLocation ,
165159 MetadataStorage passData ,
166- DiagnosticStorage diagnosticStorage
167- ) {
160+ DiagnosticStorage diagnosticStorage ) {
168161 super (name , isMethod , origName , identifiedLocation , passData , diagnosticStorage );
169162 }
170163
@@ -182,7 +175,10 @@ interface Annotation extends JName, Definition {
182175 Annotation setLocation (Option <IdentifiedLocation > location );
183176
184177 @ Override
185- Annotation duplicate (boolean keepLocations , boolean keepMetadata , boolean keepDiagnostics ,
178+ Annotation duplicate (
179+ boolean keepLocations ,
180+ boolean keepMetadata ,
181+ boolean keepDiagnostics ,
186182 boolean keepIdentifiers );
187183
188184 /**
@@ -213,10 +209,7 @@ Annotation duplicate(boolean keepLocations, boolean keepMetadata, boolean keepDi
213209 final class BuiltinAnnotation extends NameBuiltinAnnotationGen {
214210 @ GenerateFields
215211 public BuiltinAnnotation (
216- @ IRField String name ,
217- IdentifiedLocation identifiedLocation ,
218- MetadataStorage passData
219- ) {
212+ @ IRField String name , IdentifiedLocation identifiedLocation , MetadataStorage passData ) {
220213 super (name , identifiedLocation , passData );
221214 }
222215
@@ -226,9 +219,7 @@ public String showCode(int indent) {
226219 }
227220 }
228221
229- /**
230- * Common annotations of form {@code @name expression}
231- */
222+ /** Common annotations of form {@code @name expression} */
232223 @ GenerateIR (interfaces = {Annotation .class })
233224 final class GenericAnnotation extends NameGenericAnnotationGen {
234225
@@ -241,8 +232,7 @@ public GenericAnnotation(
241232 @ IRField String name ,
242233 @ IRChild Expression expression ,
243234 IdentifiedLocation identifiedLocation ,
244- MetadataStorage passData
245- ) {
235+ MetadataStorage passData ) {
246236 super (name , expression , identifiedLocation , passData );
247237 }
248238
@@ -258,8 +248,7 @@ final class Self extends NameSelfGen {
258248 public Self (
259249 @ IRField boolean synthetic ,
260250 IdentifiedLocation identifiedLocation ,
261- MetadataStorage passData
262- ) {
251+ MetadataStorage passData ) {
263252 super (synthetic , identifiedLocation , passData );
264253 }
265254
@@ -274,16 +263,11 @@ public String showCode(int indent) {
274263 }
275264 }
276265
277- /**
278- * A representation of the name `Self`, used to refer to the current type.
279- */
266+ /** A representation of the name `Self`, used to refer to the current type. */
280267 @ GenerateIR (interfaces = {JName .class })
281268 final class SelfType extends NameSelfTypeGen {
282269 @ GenerateFields
283- public SelfType (
284- IdentifiedLocation identifiedLocation ,
285- MetadataStorage passData
286- ) {
270+ public SelfType (IdentifiedLocation identifiedLocation , MetadataStorage passData ) {
287271 super (identifiedLocation , passData );
288272 }
289273
0 commit comments