diff options
Diffstat (limited to 'src/scaladoc')
-rw-r--r-- | src/scaladoc/scala/tools/nsc/doc/ScaladocGlobal.scala | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/src/scaladoc/scala/tools/nsc/doc/ScaladocGlobal.scala b/src/scaladoc/scala/tools/nsc/doc/ScaladocGlobal.scala index 94d3809fc3..723f8b1dc8 100644 --- a/src/scaladoc/scala/tools/nsc/doc/ScaladocGlobal.scala +++ b/src/scaladoc/scala/tools/nsc/doc/ScaladocGlobal.scala @@ -25,33 +25,15 @@ trait ScaladocGlobalTrait extends Global { } override lazy val loaders = new { - val symbolTable: outer.type = outer - val platform: outer.platform.type = outer.platform - // `global` val is needed so we conform to loaders type in Global in Scala 2.11.0-M4 - // TODO: remove once 2.11.0-M5 is used to build Scaladoc val global: outer.type = outer - } with SymbolLoaders { + val platform: outer.platform.type = outer.platform + } with GlobalSymbolLoaders { // SI-5593 Scaladoc's current strategy is to visit all packages in search of user code that can be documented // therefore, it will rummage through the classpath triggering errors whenever it encounters package objects // that are not in their correct place (see bug for details) override protected def signalError(root: Symbol, ex: Throwable) { log(s"Suppressing error involving $root: $ex") } - - // TODO: Add `override` modifier once Scala 2.11.0-M5 is used to build Scaladoc - protected /*override*/ def compileLate(srcfile: io.AbstractFile): Unit = - currentRun.compileLate(srcfile) - - // TODO: Add `override` modifier once Scala 2.11.0-M5 is used to build Scaladoc - protected def /*override*/ lookupMemberAtTyperPhaseIfPossible(sym: Symbol, name: Name): Symbol = { - def lookup = sym.info.member(name) - // if loading during initialization of `definitions` typerPhase is not yet set. - // in that case we simply load the member at the current phase - if (currentRun.typerPhase eq null) - lookup - else - enteringTyper { lookup } - } } } |