Skip to content

Commit 7f57ff3

Browse files
committed
Document LocalName
1 parent a2a445f commit 7f57ff3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/src/dotty/tools/dotc/core/Designators.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ object Designators {
4444
type TermDesignator = Designator { type ThisName = TermName }
4545
type TypeDesignator = Designator { type ThisName = TypeName }
4646

47+
/** Names that come with the namespace where they are defined.
48+
* Used to give a stable reference to private names, and also to
49+
* Scala 2x inner classes.
50+
*/
4751
case class LocalName[N <: Name](name: N, nameSpace: TypeRef) extends Designator {
4852
type ThisName = N
4953

0 commit comments

Comments
 (0)