From 9113c243875cd7f6c8ae6774834ea9a0a468acbc Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Mon, 19 Aug 2013 20:59:21 +0200 Subject: Some additions to module completion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … more to come. Plus some bugfixes. --- src/dotty/tools/dotc/core/Symbols.scala | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/dotty/tools/dotc/core/Symbols.scala') 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 = -- cgit v1.2.3