aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/core/NameInfos.scala
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/NameInfos.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/core/NameInfos.scala16
1 files changed, 16 insertions, 0 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/NameInfos.scala b/compiler/src/dotty/tools/dotc/core/NameInfos.scala
index f6d9e84c0..23a161756 100644
--- a/compiler/src/dotty/tools/dotc/core/NameInfos.scala
+++ b/compiler/src/dotty/tools/dotc/core/NameInfos.scala
@@ -22,6 +22,8 @@ object NameInfo {
val QualifiedKind = 1
val DefaultGetterKind = 3
val VariantKind = 4
+ val SuperAccessorKind = 5
+ val InitializerKind = 6
val ModuleClassKind = 10
val qualifier: Map[String, SimpleTermName => Qualified] =
@@ -87,6 +89,20 @@ object NameInfo {
def mkString(underlying: TermName) = varianceToPrefix(num).toString + underlying
}
+ val SuperAccessor = new NameInfo {
+ def kind = SuperAccessorKind
+ def mkString(underlying: TermName) =
+ underlying.mapLast(n => (nme.SUPER_PREFIX ++ n).asSimpleName).toString
+ override def toString = "SuperAccessor"
+ }
+
+ val Initializer = new NameInfo {
+ def kind = InitializerKind
+ def mkString(underlying: TermName) =
+ underlying.mapLast(n => (nme.INITIALIZER_PREFIX ++ n).asSimpleName).toString
+ override def toString = "Initializer"
+ }
+
val ModuleClass = new NameInfo {
def kind = ModuleClassKind
def mkString(underlying: TermName) = underlying + "$"