aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/TypeOps.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-04-05 12:13:59 +0200
committerMartin Odersky <odersky@gmail.com>2013-04-05 12:13:59 +0200
commit2dcae86ae6937ad2f8cd8b05734eb9feb964404e (patch)
tree81d810fa9eb9a1a6a1daae7a04c86168b2cecf23 /src/dotty/tools/dotc/core/TypeOps.scala
parent3aa3ff97f7a32dc985fa3adef0a5b9df0785b427 (diff)
downloaddotty-2dcae86ae6937ad2f8cd8b05734eb9feb964404e.tar.gz
dotty-2dcae86ae6937ad2f8cd8b05734eb9feb964404e.tar.bz2
dotty-2dcae86ae6937ad2f8cd8b05734eb9feb964404e.zip
Added some tracing to asSeenFrom.
Diffstat (limited to 'src/dotty/tools/dotc/core/TypeOps.scala')
-rw-r--r--src/dotty/tools/dotc/core/TypeOps.scala9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/dotty/tools/dotc/core/TypeOps.scala b/src/dotty/tools/dotc/core/TypeOps.scala
index 331431fac..42dd34f18 100644
--- a/src/dotty/tools/dotc/core/TypeOps.scala
+++ b/src/dotty/tools/dotc/core/TypeOps.scala
@@ -8,7 +8,7 @@ trait TypeOps { this: Context =>
final def asSeenFrom(tp: Type, pre: Type, cls: Symbol, theMap: AsSeenFromMap): Type = {
- def toPrefix(pre: Type, cls: Symbol, thiscls: ClassSymbol): Type =
+ def toPrefix(pre: Type, cls: Symbol, thiscls: ClassSymbol): Type = ctx.debugTraceIndented(s"toPrefix($pre, $cls, $thiscls)") {
if ((pre eq NoType) || (pre eq NoPrefix) || (cls is PackageClass))
tp
else if (thiscls.isNonBottomSubClass(cls) && pre.baseType(thiscls).exists)
@@ -18,8 +18,9 @@ trait TypeOps { this: Context =>
}
else
toPrefix(pre.baseType(cls).normalizedPrefix, cls.owner, thiscls)
+ }
- /* ctx.debugTraceIndented(s"$tp.asSeenFrom($pre, $cls)") */ { // !!! DEBUG
+ ctx.debugTraceIndented(s"$tp.asSeenFrom($pre, $cls)") { // !!! DEBUG
tp match {
case tp: NamedType =>
val sym = tp.symbol
@@ -39,8 +40,8 @@ trait TypeOps { this: Context =>
asSeenFrom(tp.parent, pre, cls, theMap),
tp.refinedName,
asSeenFrom(tp.refinedInfo, pre, cls, theMap))
- case tp: ClassInfo =>
- tp.derivedClassInfo(asSeenFrom(tp.prefix, pre, cls, theMap))
+ // case tp: ClassInfo => !!! disabled for now
+ // tp.derivedClassInfo(asSeenFrom(tp.prefix, pre, cls, theMap))
case _ =>
(if (theMap != null) theMap else new AsSeenFromMap(pre, cls))
.mapOver(tp)