diff options
author | Martin Odersky <odersky@gmail.com> | 2016-09-29 14:00:29 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-09-29 14:00:52 +0200 |
commit | 887a63a3dac0dcbaa7fc07ebb6ccac0dbe515427 (patch) | |
tree | f5c0addd467cbf0d6d1ce2ac456dee96cf763eaf /src/dotty/tools/dotc/core/tasty | |
parent | 992c72ee5f2f105d587de20efd3858824fc7e7c8 (diff) | |
download | dotty-887a63a3dac0dcbaa7fc07ebb6ccac0dbe515427.tar.gz dotty-887a63a3dac0dcbaa7fc07ebb6ccac0dbe515427.tar.bz2 dotty-887a63a3dac0dcbaa7fc07ebb6ccac0dbe515427.zip |
Make namePos a member of memberDef
That way it can be accessed by other parts which deal with
error messages.
Diffstat (limited to 'src/dotty/tools/dotc/core/tasty')
-rw-r--r-- | src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala b/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala index 9d070e777..56bb8498a 100644 --- a/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala +++ b/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala @@ -731,7 +731,10 @@ class TreeUnpickler(reader: TastyReader, tastyName: TastyName.Table) { val mods = if (sym.annotations.isEmpty) untpd.EmptyModifiers else untpd.Modifiers(annotations = sym.annotations.map(_.tree)) - tree.withMods(mods) // record annotations in tree so that tree positions can be filled in. + tree.withMods(mods) + // record annotations in tree so that tree positions can be filled in. + // Note: Once the inline PR with its changes to positions is in, this should be + // no longer necessary. goto(end) setPos(start, tree) } |