Skip to content

Commit 0d532d5

Browse files
committed
Don't be noise when generating stubs
Use typr printer instead.
1 parent 75b66c8 commit 0d532d5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler/src/dotty/tools/dotc/core/Symbols.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import io.AbstractFile
3131
import language.implicitConversions
3232
import util.{NoSource, DotClass, Property}
3333
import scala.collection.JavaConverters._
34+
import config.Printers.typr
3435

3536
/** Creation methods for symbols */
3637
trait Symbols { this: Context =>
@@ -234,8 +235,8 @@ trait Symbols { this: Context =>
234235
def newStubSymbol(owner: Symbol, name: Name, file: AbstractFile = null): Symbol = {
235236
def stubCompleter = new StubInfo()
236237
val normalizedOwner = if (owner is ModuleVal) owner.moduleClass else owner
237-
println(s"creating stub for ${name.show}, owner = ${normalizedOwner.denot.debugString}, file = $file")
238-
println(s"decls = ${normalizedOwner.unforcedDecls.toList.map(_.debugString).mkString("\n ")}") // !!! DEBUG
238+
typr.println(s"creating stub for ${name.show}, owner = ${normalizedOwner.denot.debugString}, file = $file")
239+
typr.println(s"decls = ${normalizedOwner.unforcedDecls.toList.map(_.debugString).mkString("\n ")}") // !!! DEBUG
239240
//if (base.settings.debug.value) throw new Error()
240241
val stub = name match {
241242
case name: TermName =>

0 commit comments

Comments
 (0)