diff options
author | Martin Odersky <odersky@gmail.com> | 2017-03-22 17:59:25 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-04-11 09:33:10 +0200 |
commit | 19bc1ff09fa73e13be7e3464b8440c04b657aa82 (patch) | |
tree | bc6934a3c47ab403f4dc3dd2c87531081887dc15 /compiler/src/dotty/tools/dotc/core/tasty/TreePickler.scala | |
parent | 2cc16c4d990fa404577dbe1c944958a0cf9896a8 (diff) | |
download | dotty-19bc1ff09fa73e13be7e3464b8440c04b657aa82.tar.gz dotty-19bc1ff09fa73e13be7e3464b8440c04b657aa82.tar.bz2 dotty-19bc1ff09fa73e13be7e3464b8440c04b657aa82.zip |
Disentangle Names from Seqs
Structured names are not Seqs anymmore. But the Seq behavior
is required in many places that mangle names. As an intermediate step
we drop the Seq basetype but add Seq behavior through a decorator.
Most Seq operations only work on SimpleTermNames and their
TypeName analogue, will throw an exception wehn called on structured
names.
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/tasty/TreePickler.scala')
-rw-r--r-- | compiler/src/dotty/tools/dotc/core/tasty/TreePickler.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/tasty/TreePickler.scala b/compiler/src/dotty/tools/dotc/core/tasty/TreePickler.scala index 902d01c21..7a6b6b7ea 100644 --- a/compiler/src/dotty/tools/dotc/core/tasty/TreePickler.scala +++ b/compiler/src/dotty/tools/dotc/core/tasty/TreePickler.scala @@ -576,7 +576,7 @@ class TreePickler(pickler: TastyPickler) { } def qualifiedName(sym: Symbol)(implicit ctx: Context): TastyName = - if (sym.isRoot || sym.owner.isRoot) TastyName.Simple(sym.name.toTermName) + if (sym.isRoot || sym.owner.isRoot) TastyName.Simple(sym.name.toTermName.toSimpleName) else TastyName.Qualified(nameIndex(qualifiedName(sym.owner)), nameIndex(sym.name)) def pickleModifiers(sym: Symbol)(implicit ctx: Context): Unit = { |