aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/core/Definitions.scala
diff options
context:
space:
mode:
authorodersky <odersky@gmail.com>2017-02-14 18:46:36 +0100
committerFelix Mulder <felix.mulder@gmail.com>2017-02-14 18:46:36 +0100
commit606e36be88c47cd3f2e8856d6bd6b95aed7aa191 (patch)
tree1d71ab178ad4da7bf8d7ed2222e5c7d38f46f22d /compiler/src/dotty/tools/dotc/core/Definitions.scala
parent38a385af56fa14e5b48b23f87bcf9ce7aa22a1ef (diff)
downloaddotty-606e36be88c47cd3f2e8856d6bd6b95aed7aa191.tar.gz
dotty-606e36be88c47cd3f2e8856d6bd6b95aed7aa191.tar.bz2
dotty-606e36be88c47cd3f2e8856d6bd6b95aed7aa191.zip
Fix #1976: Hack to support scala.xml's $scope (#1977)
This is a gross hack to support the need for a $scope binding when XML literals are created. It should go away once we phase out XML literals. A library-based solution should use implicits instead.
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/Definitions.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/core/Definitions.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/Definitions.scala b/compiler/src/dotty/tools/dotc/core/Definitions.scala
index 2797bb8a6..01a164a81 100644
--- a/compiler/src/dotty/tools/dotc/core/Definitions.scala
+++ b/compiler/src/dotty/tools/dotc/core/Definitions.scala
@@ -527,6 +527,8 @@ class Definitions {
lazy val EqType = ctx.requiredClassRef("scala.Eq")
def EqClass(implicit ctx: Context) = EqType.symbol.asClass
+ lazy val XMLTopScopeModuleRef = ctx.requiredModuleRef("scala.xml.TopScope")
+
// Annotation base classes
lazy val AnnotationType = ctx.requiredClassRef("scala.annotation.Annotation")
def AnnotationClass(implicit ctx: Context) = AnnotationType.symbol.asClass