diff options
author | Martin Odersky <odersky@gmail.com> | 2017-04-01 18:51:11 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-04-11 09:33:12 +0200 |
commit | 2bfb2ca70c4588de00c12feba79ef7c0d68361a5 (patch) | |
tree | 541a5cfc4fb13e6811fe2d85a84d2a3bea501a88 /compiler/src/dotty/tools/dotc/core/Scopes.scala | |
parent | e4780e574f9613346e6908f7947f40a58327e376 (diff) | |
download | dotty-2bfb2ca70c4588de00c12feba79ef7c0d68361a5.tar.gz dotty-2bfb2ca70c4588de00c12feba79ef7c0d68361a5.tar.bz2 dotty-2bfb2ca70c4588de00c12feba79ef7c0d68361a5.zip |
Introduce mangled method
Mangled is like toSimpleName, except that it keeps the term/type distinction.
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/Scopes.scala')
-rw-r--r-- | compiler/src/dotty/tools/dotc/core/Scopes.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/Scopes.scala b/compiler/src/dotty/tools/dotc/core/Scopes.scala index 032442421..023fe35c5 100644 --- a/compiler/src/dotty/tools/dotc/core/Scopes.scala +++ b/compiler/src/dotty/tools/dotc/core/Scopes.scala @@ -396,10 +396,10 @@ object Scopes { class PackageScope extends MutableScope { override final def newScopeEntry(name: Name, sym: Symbol)(implicit ctx: Context): ScopeEntry = - super.newScopeEntry(name.toSimpleName, sym) + super.newScopeEntry(name.mangled, sym) override final def lookupEntry(name: Name)(implicit ctx: Context): ScopeEntry = - super.lookupEntry(name.toSimpleName) + super.lookupEntry(name.mangled) } /** Create a new scope */ |