diff options
author | Martin Odersky <odersky@gmail.com> | 2017-03-29 16:58:41 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-04-11 09:33:11 +0200 |
commit | a5d94d23341b2f30f677f1420f1ce088a0f1ed5b (patch) | |
tree | 8d1ce019cf60853b3f9b8ed918f122d7c3f6ac82 /compiler/src/dotty/tools/dotc/typer | |
parent | d5c1e6dc677ef9ef49f02075747b2301ba45fd74 (diff) | |
download | dotty-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/typer')
-rw-r--r-- | compiler/src/dotty/tools/dotc/typer/Applications.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/typer/Applications.scala b/compiler/src/dotty/tools/dotc/typer/Applications.scala index 1fcebf4f0..db1e0bcfb 100644 --- a/compiler/src/dotty/tools/dotc/typer/Applications.scala +++ b/compiler/src/dotty/tools/dotc/typer/Applications.scala @@ -20,6 +20,7 @@ import Trees._ import config.Config import Names._ import StdNames._ +import NameKinds.DefaultGetterName import ProtoTypes._ import EtaExpansion._ import Inferencing._ @@ -345,7 +346,7 @@ trait Applications extends Compatibility { self: Typer with Dynamic => } val getterPrefix = if ((meth is Synthetic) && meth.name == nme.apply) nme.CONSTRUCTOR else meth.name - def getterName = getterPrefix.defaultGetterName(n) + def getterName = DefaultGetterName(getterPrefix, n) if (!meth.hasDefaultParams) EmptyTree else if (receiver.isEmpty) { |