aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/sbt
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2017-03-29 16:58:41 +0200
committerMartin Odersky <odersky@gmail.com>2017-04-11 09:33:11 +0200
commita5d94d23341b2f30f677f1420f1ce088a0f1ed5b (patch)
tree8d1ce019cf60853b3f9b8ed918f122d7c3f6ac82 /compiler/src/dotty/tools/dotc/sbt
parentd5c1e6dc677ef9ef49f02075747b2301ba45fd74 (diff)
downloaddotty-a5d94d23341b2f30f677f1420f1ce088a0f1ed5b.tar.gz
dotty-a5d94d23341b2f30f677f1420f1ce088a0f1ed5b.tar.bz2
dotty-a5d94d23341b2f30f677f1420f1ce088a0f1ed5b.zip
Decentralize unmangling, add new nameKinds
Start scheme where unmangling is done by NameKinds instead of in NameOps. Also add namekinds for protected accessors.
Diffstat (limited to 'compiler/src/dotty/tools/dotc/sbt')
-rw-r--r--compiler/src/dotty/tools/dotc/sbt/ExtractAPI.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/sbt/ExtractAPI.scala b/compiler/src/dotty/tools/dotc/sbt/ExtractAPI.scala
index 324aecdf0..db19bf6b6 100644
--- a/compiler/src/dotty/tools/dotc/sbt/ExtractAPI.scala
+++ b/compiler/src/dotty/tools/dotc/sbt/ExtractAPI.scala
@@ -5,6 +5,7 @@ import ast.{Trees, tpd}
import core._, core.Decorators._
import Annotations._, Contexts._, Flags._, Phases._, Trees._, Types._, Symbols._
import Names._, NameOps._, StdNames._
+import NameKinds.DefaultGetterName
import typer.Inliner
import typer.ErrorReporting.cyclicErrorMsg
import transform.SymUtils._
@@ -300,7 +301,8 @@ private class ExtractAPICollector(implicit val ctx: Context) extends ThunkHolder
sym.owner.companionModule // default getters for class constructors are found in the companion object
else
sym.owner
- (0 until pnames.length).map(i => qual.info.member(sym.name.defaultGetterName(start + i)).exists)
+ (0 until pnames.length).map(i =>
+ qual.info.member(DefaultGetterName(sym.name, start + i)).exists)
} else
(0 until pnames.length).map(Function.const(false))
val params = (pnames, ptypes, defaults).zipped.map((pname, ptype, isDefault) =>