We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 215b6ac commit 74961b6Copy full SHA for 74961b6
src/dotty/tools/dotc/core/SymDenotations.scala
@@ -354,6 +354,9 @@ object SymDenotations {
354
final def isAnonymousFunction(implicit ctx: Context) =
355
this.symbol.is(Method) && (initial.asSymDenotation.name startsWith nme.ANON_FUN)
356
357
+ final def isAnonymousModuleVal(implicit ctx: Context) =
358
+ this.symbol.is(ModuleVal) && (initial.asSymDenotation.name startsWith nme.ANON_CLASS)
359
+
360
/** Is symbol a primitive value class? */
361
def isPrimitiveValueClass(implicit ctx: Context) = defn.ScalaValueClasses contains symbol
362
0 commit comments