diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2010-04-09 15:41:51 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2010-04-09 15:41:51 +0000 |
commit | a5105c67d2a611d89ee90d82a4402312004b732e (patch) | |
tree | 94a8a9920f32b445bf0e68c137bd03d8bde42729 /src/compiler/scala/tools/nsc/ast/TreeBrowsers.scala | |
parent | 27ace8351a23579ef7cbe5714ed74a06d5ed9401 (diff) | |
download | scala-a5105c67d2a611d89ee90d82a4402312004b732e.tar.gz scala-a5105c67d2a611d89ee90d82a4402312004b732e.tar.bz2 scala-a5105c67d2a611d89ee90d82a4402312004b732e.zip |
More information on type skolems when browsing ...
More information on type skolems when browsing trees and logged
normalized member.
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/TreeBrowsers.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/TreeBrowsers.scala | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/TreeBrowsers.scala b/src/compiler/scala/tools/nsc/ast/TreeBrowsers.scala index eaad12c0ed..e5a49f8358 100644 --- a/src/compiler/scala/tools/nsc/ast/TreeBrowsers.scala +++ b/src/compiler/scala/tools/nsc/ast/TreeBrowsers.scala @@ -224,8 +224,12 @@ abstract class TreeBrowsers { t.symbol.owner.toString else "NoSymbol has no owner") - if ((t.symbol ne null) && t.symbol.isType) - str.append("\ntermSymbol: " + t.symbol.tpe.termSymbol + "\ntypeSymbol: " + t.symbol.tpe.typeSymbol) + if ((t.symbol ne null) && t.symbol.isType) { + str.append("\ntermSymbol: " + t.symbol.tpe.termSymbol + + "\ntypeSymbol: " + t.symbol.tpe.typeSymbol) + if (t.symbol.isTypeSkolem) + str.append("\nSkolem of: " + t.symbol.deSkolemize) + } str.append("\nSymbol tpe: ") if (t.symbol ne null) { str.append(t.symbol.tpe).append("\n") @@ -562,7 +566,8 @@ abstract class TreeBrowsers { if ((s ne null) && (s != NoSymbol)) { var str = flagsToString(s.flags) if (s.isStaticMember) str = str + " isStatic "; - str + " annotations: " + s.annotations.mkString("", " ", "") + (str + " annotations: " + s.annotations.mkString("", " ", "") + + (if (s.isTypeSkolem) "\ndeSkolemized annotations: " + s.deSkolemize.annotations.mkString("", " ", "") else "")) } else "" } |