diff options
author | Martin Odersky <odersky@gmail.com> | 2013-08-19 20:59:21 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-08-19 21:02:09 +0200 |
commit | 9113c243875cd7f6c8ae6774834ea9a0a468acbc (patch) | |
tree | e1019b248a9c45c19015c186a24b03820e8b0ba8 /src/dotty/tools/dotc/core/Symbols.scala | |
parent | 36de1429027f635fe7035cf217b944bfc67dcc2c (diff) | |
download | dotty-9113c243875cd7f6c8ae6774834ea9a0a468acbc.tar.gz dotty-9113c243875cd7f6c8ae6774834ea9a0a468acbc.tar.bz2 dotty-9113c243875cd7f6c8ae6774834ea9a0a468acbc.zip |
Some additions to module completion
… more to come. Plus some bugfixes.
Diffstat (limited to 'src/dotty/tools/dotc/core/Symbols.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Symbols.scala | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/dotty/tools/dotc/core/Symbols.scala b/src/dotty/tools/dotc/core/Symbols.scala index f7b079a69..ac13381e6 100644 --- a/src/dotty/tools/dotc/core/Symbols.scala +++ b/src/dotty/tools/dotc/core/Symbols.scala @@ -297,10 +297,8 @@ object Symbols { type ThisName <: Name - private[this] var _id: Int = { - //assert(id != 144972) - nextId - } + private[this] var _id: Int = nextId + //assert(_id != 5859) /** The unique id of this symbol */ def id = _id @@ -366,8 +364,9 @@ object Symbols { * the class containing this symbol was generated, null if not applicable. * Overridden in ClassSymbol */ - def associatedFile(implicit ctx: Context): AbstractFile = + def associatedFile(implicit ctx: Context): AbstractFile = ctx.traceIndented(s"assocFile($this)") { denot.topLevelClass.symbol.associatedFile + } /** The class file from which this class was generated, null if not applicable. */ final def binaryFile(implicit ctx: Context): AbstractFile = |