aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Scopes.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-03-20 17:39:32 +0100
committerMartin Odersky <odersky@gmail.com>2013-03-20 17:39:32 +0100
commit5ac2104e688409e24785cfe62cdc7e8ef0bc6428 (patch)
tree0d48205fa5b50c25e240d77d4fb0e26c4b6c9b36 /src/dotty/tools/dotc/core/Scopes.scala
parent53e0a8a9227820e47e33f1e0b1d91819aec917c4 (diff)
downloaddotty-5ac2104e688409e24785cfe62cdc7e8ef0bc6428.tar.gz
dotty-5ac2104e688409e24785cfe62cdc7e8ef0bc6428.tar.bz2
dotty-5ac2104e688409e24785cfe62cdc7e8ef0bc6428.zip
Pretty-printing improvements.
Diffstat (limited to 'src/dotty/tools/dotc/core/Scopes.scala')
-rw-r--r--src/dotty/tools/dotc/core/Scopes.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Scopes.scala b/src/dotty/tools/dotc/core/Scopes.scala
index cddf2e990..2d9df1962 100644
--- a/src/dotty/tools/dotc/core/Scopes.scala
+++ b/src/dotty/tools/dotc/core/Scopes.scala
@@ -12,6 +12,7 @@ import Periods._
import Decorators._
import Contexts._
import Denotations._
+import util.Texts._
import SymDenotations.NoDenotation
object Scopes {
@@ -110,7 +111,7 @@ object Scopes {
/** Cast this scope to a mutable scope */
final def openForMutations: MutableScope = this.asInstanceOf[MutableScope]
- final def show(implicit ctx: Context): String = ctx.show(this)
+ final def toText(implicit ctx: Context): Text = ctx.toText(this)
}
/** A subclass of Scope that defines methods for entering and