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 661068a commit d5df72aCopy full SHA for d5df72a
src/dotty/tools/dotc/core/SymDenotations.scala
@@ -1049,6 +1049,13 @@ object SymDenotations {
1049
*/
1050
override def transformAfter(phase: DenotTransformer, f: SymDenotation => SymDenotation)(implicit ctx: Context): Unit =
1051
super.transformAfter(phase, f)
1052
+
1053
+ def ensureNotPrivate(implicit ctx: Context) =
1054
+ if (is(Private))
1055
+ copySymDenotation(
1056
+ name = if (is(ExpandedName) || isConstructor) this.name else this.name.expandedName(owner),
1057
+ initFlags = this.flags &~ Private | ExpandedName)
1058
+ else this
1059
}
1060
1061
/** The contents of a class definition during a period
0 commit comments