diff options
author | Martin Odersky <odersky@gmail.com> | 2007-03-30 13:40:08 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2007-03-30 13:40:08 +0000 |
commit | 098db0fd0bb6ad0ddf978b5fc719fa6a8c2954f0 (patch) | |
tree | faf5798c666f5f810bb386f38314a7be04fe9b0b /src/compiler/scala/tools/nsc/CompilationUnits.scala | |
parent | 4b37b5a01cf94d9fde0c6d736082f34e5e09dced (diff) | |
download | scala-098db0fd0bb6ad0ddf978b5fc719fa6a8c2954f0.tar.gz scala-098db0fd0bb6ad0ddf978b5fc719fa6a8c2954f0.tar.bz2 scala-098db0fd0bb6ad0ddf978b5fc719fa6a8c2954f0.zip |
fixed bug1024.
Diffstat (limited to 'src/compiler/scala/tools/nsc/CompilationUnits.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/CompilationUnits.scala | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/CompilationUnits.scala b/src/compiler/scala/tools/nsc/CompilationUnits.scala index e76f95d207..2250ac379c 100644 --- a/src/compiler/scala/tools/nsc/CompilationUnits.scala +++ b/src/compiler/scala/tools/nsc/CompilationUnits.scala @@ -23,7 +23,10 @@ trait CompilationUnits requires Global { /** the content of the compilation unit in tree form */ var body: Tree = EmptyTree - val depends = new HashSet[AbstractFile] + /** Note: depends now contains toplevel classes. + * To get their sourcefiles, you need to dereference with .sourcefile + */ + val depends = new HashSet[Symbol] def position(pos: int) = new Position(source, pos) |