aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Denotations.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-02-07 13:19:58 +0100
committerMartin Odersky <odersky@gmail.com>2014-02-07 13:19:58 +0100
commit5bed5bdd1bb377e9a177a2be635b391bfc0f168e (patch)
tree155c964126b4b74aa5e0c61d4f9997c2efedbf76 /src/dotty/tools/dotc/core/Denotations.scala
parent5f5a01c4f74a40eb6d387b83302da2d3c413969b (diff)
downloaddotty-5bed5bdd1bb377e9a177a2be635b391bfc0f168e.tar.gz
dotty-5bed5bdd1bb377e9a177a2be635b391bfc0f168e.tar.bz2
dotty-5bed5bdd1bb377e9a177a2be635b391bfc0f168e.zip
Replace open package module logic by special member lookups in a package class.
Rather than fiddling with scopes, which can lead to race conditions, we now special case member lookup and mamber name filters in ClassDenotations that represent packages.
Diffstat (limited to 'src/dotty/tools/dotc/core/Denotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/Denotations.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/Denotations.scala b/src/dotty/tools/dotc/core/Denotations.scala
index 90a6a373c..bc7545abd 100644
--- a/src/dotty/tools/dotc/core/Denotations.scala
+++ b/src/dotty/tools/dotc/core/Denotations.scala
@@ -306,6 +306,7 @@ object Denotations {
}
final def asSingleDenotation = asInstanceOf[SingleDenotation]
+ final def asSymDenotation = asInstanceOf[SymDenotation]
def toText(printer: Printer): Text = printer.toText(this)
}
@@ -532,8 +533,6 @@ object Denotations {
*/
def copyIfParentInvalid(implicit ctx: Context): SingleDenotation = this
- final def asSymDenotation = asInstanceOf[SymDenotation]
-
override def toString =
if (symbol == NoSymbol) symbol.toString
else s"<SingleDenotation of type $info>"