@@ -90,17 +90,27 @@ object Symbols {
90
90
@ targetName(" invalidSymbol" )
91
91
def symbol (implicit ev : DontUseSymbolOnSymbol ): Nothing
92
92
93
+ @ targetName(" Symbol_isTerm" )
93
94
def isTerm (using Context ): Boolean
95
+
96
+ @ targetName(" Symbol_isType" )
94
97
def isType (using Context ): Boolean
95
98
def asTerm (using Context ): TermSymbol
96
99
def asType (using Context ): TypeSymbol
100
+
101
+ @ targetName(" Symbol_isClass" )
97
102
def isClass : Boolean
103
+
104
+ @ targetName(" Symbol_asClass" )
98
105
def asClass : ClassSymbol
99
106
100
107
def isPrivate (using Context ): Boolean
101
108
def isPatternBound (using Context ): Boolean
109
+
110
+ @ targetName(" Symbol_isStatic" )
102
111
def isStatic (using Context ): Boolean
103
112
113
+ @ targetName(" Symbol_name" )
104
114
def name (using Context ): ThisName
105
115
def signature (using Context ): Signature
106
116
@@ -274,10 +284,14 @@ object Symbols {
274
284
// periods check out OK. But once a package member is overridden it is not longer
275
285
// valid. If the option would be removed, the check would be no longer needed.
276
286
287
+ @ targetName(" Symbol_isTerm" )
277
288
final def isTerm (using Context ): Boolean =
278
289
(if (defRunId == ctx.runId) lastDenot else denot).isTerm
290
+
291
+ @ targetName(" Symbol_isType" )
279
292
final def isType (using Context ): Boolean =
280
293
(if (defRunId == ctx.runId) lastDenot else denot).isType
294
+
281
295
final def asTerm (using Context ): TermSymbol = {
282
296
assert(isTerm, s " asTerm called on not-a-Term $this" );
283
297
asInstanceOf [TermSymbol ]
@@ -287,7 +301,10 @@ object Symbols {
287
301
asInstanceOf [TypeSymbol ]
288
302
}
289
303
304
+ @ targetName(" Symbol_isClass" )
290
305
final def isClass : Boolean = isInstanceOf [ClassSymbol ]
306
+
307
+ @ targetName(" Symbol_asClass" )
291
308
final def asClass : ClassSymbol = asInstanceOf [ClassSymbol ]
292
309
293
310
/** Test whether symbol is private. This
@@ -312,6 +329,7 @@ object Symbols {
312
329
Signature .NotAMethod
313
330
314
331
/** Special cased here, because it may be used on naked symbols in substituters */
332
+ @ targetName(" Symbol_isStatic" )
315
333
final def isStatic (using Context ): Boolean =
316
334
lastDenot != null && lastDenot.initial.isStatic
317
335
@@ -368,6 +386,7 @@ object Symbols {
368
386
def filter (p : Symbol => Boolean ): Symbol = if (p(this )) this else NoSymbol
369
387
370
388
/** The current name of this symbol */
389
+ @ targetName(" Symbol_name" )
371
390
final def name (using Context ): ThisName = denot.name.asInstanceOf [ThisName ]
372
391
373
392
/** The source or class file from which this class or
0 commit comments