aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/pickling/UnPickler.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-02-23 13:36:05 +0100
committerMartin Odersky <odersky@gmail.com>2013-02-23 13:36:05 +0100
commit7cde8b6d78022aadb00d3f82fb9019da39a62b49 (patch)
tree389ce0d44ecec47a7fa6caec79d252fe129d5116 /src/dotty/tools/dotc/core/pickling/UnPickler.scala
parentd54fee4fcc75d5e9b58353da9daea0aa1b760aeb (diff)
downloaddotty-7cde8b6d78022aadb00d3f82fb9019da39a62b49.tar.gz
dotty-7cde8b6d78022aadb00d3f82fb9019da39a62b49.tar.bz2
dotty-7cde8b6d78022aadb00d3f82fb9019da39a62b49.zip
Moving associatedFile from SymDenotation to Symbol
Motivation: This is something that stays invariant over all periods. but _can_ change between compilation runs. Therefore it matches the lifetime of a Symbol.
Diffstat (limited to 'src/dotty/tools/dotc/core/pickling/UnPickler.scala')
-rw-r--r--src/dotty/tools/dotc/core/pickling/UnPickler.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/pickling/UnPickler.scala b/src/dotty/tools/dotc/core/pickling/UnPickler.scala
index 7c3e6ca43..35ef5dece 100644
--- a/src/dotty/tools/dotc/core/pickling/UnPickler.scala
+++ b/src/dotty/tools/dotc/core/pickling/UnPickler.scala
@@ -142,8 +142,8 @@ class UnPickler(bytes: Array[Byte], classRoot: LazyClassDenotation, moduleRoot:
}
def source: AbstractFile = {
- val f = classRoot.associatedFile
- if (f != null) f else moduleRoot.associatedFile
+ val f = classRoot.symbol.associatedFile
+ if (f != null) f else moduleRoot.symbol.associatedFile
}
private def checkVersion() {