diff options
author | Martin Odersky <odersky@gmail.com> | 2017-03-30 13:44:02 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-04-11 09:33:11 +0200 |
commit | 21ded6ee9f727bd5a1c3975809c06868fe1b5536 (patch) | |
tree | 84675fd26ebfd422bb166088f8b048f7963c9720 /compiler/src/dotty/tools/dotc/core/tasty/TastyUnpickler.scala | |
parent | ae694957bfb9f5121eee3434243ecaabb6b24d1d (diff) | |
download | dotty-21ded6ee9f727bd5a1c3975809c06868fe1b5536.tar.gz dotty-21ded6ee9f727bd5a1c3975809c06868fe1b5536.tar.bz2 dotty-21ded6ee9f727bd5a1c3975809c06868fe1b5536.zip |
Revise qualified names
1. Fix problem in fullNameSeparated
2. Revise expandedName operations
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/tasty/TastyUnpickler.scala')
-rw-r--r-- | compiler/src/dotty/tools/dotc/core/tasty/TastyUnpickler.scala | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/tasty/TastyUnpickler.scala b/compiler/src/dotty/tools/dotc/core/tasty/TastyUnpickler.scala index a14691ed5..835222727 100644 --- a/compiler/src/dotty/tools/dotc/core/tasty/TastyUnpickler.scala +++ b/compiler/src/dotty/tools/dotc/core/tasty/TastyUnpickler.scala @@ -49,12 +49,8 @@ class TastyUnpickler(reader: TastyReader) { case UTF8 => goto(end) termName(bytes, start.index, length) - case QUALIFIED => - QualifiedName(readName(), readName().asSimpleName) - case FLATTENED => - FlattenedName(readName(), readName().asSimpleName) - case EXPANDED => - ExpandedName(readName(), readName().asSimpleName) + case QUALIFIED | FLATTENED | EXPANDED | EXPANDPREFIX => + qualifiedNameKindOfTag(tag)(readName(), readName().asSimpleName) case UNIQUE => val separator = readName().toString val num = readNat() |