File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ object SymDenotations {
325
325
isClass && (initial.asSymDenotation.name startsWith tpnme.ANON_CLASS )
326
326
327
327
final def isAnonymousFunction (implicit ctx : Context ) =
328
- this .isInstanceOf [ SymDenotation ] && (flags is Synthetic ) && (initial.asSymDenotation.name startsWith tpnme .ANON_FUN )
328
+ this .symbol.is( Method ) && (initial.asSymDenotation.name startsWith nme .ANON_FUN )
329
329
330
330
/** Is symbol a primitive value class? */
331
331
def isPrimitiveValueClass (implicit ctx : Context ) = defn.ScalaValueClasses contains symbol
Original file line number Diff line number Diff line change @@ -53,9 +53,6 @@ class SymUtils(val self: Symbol) extends AnyVal {
53
53
final def skipConstructor (implicit ctx : Context ): Symbol =
54
54
if (self.isConstructor) self.owner else self
55
55
56
- final def isAnonymousFunction (implicit ctx : Context ): Boolean =
57
- self.is(Method ) && (self.denot.initial.asSymDenotation.name startsWith nme.ANON_FUN )
58
-
59
56
/** The logically enclosing method or class for this symbol.
60
57
* Instead of constructors one always picks the enclosing class.
61
58
*/
You can’t perform that action at this time.
0 commit comments