Make private term members that are accessed from another class non-private by resetting the Private flag and expanding their name.
Make private accessor in value class not-private. Ihis is necessary to unbox the value class when accessing it from separate compilation units
Also, make non-private any private parameter forwarders that forward to an inherited public or protected parameter accessor with the same name as the forwarder. This is necessary since private methods are not allowed to have the same name as inherited public ones.
See discussion in https://github.com/lampepfl/dotty/pull/784 and https://github.com/lampepfl/dotty/issues/783
Constructors
Members
Check what the phase achieves, to be called at any point after it is finished.
Check what the phase achieves, to be called at any point after it is finished.
Make private terms accessed from different classes non-private. Note: this happens also for accesses between class and linked module class. If we change...
Make private terms accessed from different classes non-private. Note: this happens also for accesses between class and linked module class. If we change the scheme at one point to make static module class computations static members of the companion class, we should tighten the condition below.
A name given to the Phase
that can be used to debug the compiler. For
instance, it is possible to print trees after a given phase using:
A name given to the Phase
that can be used to debug the compiler. For
instance, it is possible to print trees after a given phase using:
$ ./bin/dotc -Xprint:<phaseNameHere> sourceFile.scala
List of names of phases that should precede this phase
List of names of phases that should precede this phase