aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/config/JavaPlatform.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-02-09 18:44:41 +0100
committerMartin Odersky <odersky@gmail.com>2014-02-09 18:48:36 +0100
commit866ee8665147f91bee617465d04a08ff7b874baf (patch)
treea49a526bea5671a5190217c9e3dfeb8c0c7829f0 /src/dotty/tools/dotc/config/JavaPlatform.scala
parent98ccfd77c4748487190387c4e8b3646d77116e22 (diff)
downloaddotty-866ee8665147f91bee617465d04a08ff7b874baf.tar.gz
dotty-866ee8665147f91bee617465d04a08ff7b874baf.tar.bz2
dotty-866ee8665147f91bee617465d04a08ff7b874baf.zip
Symbol loaders no longer complete with creation context
Instead current ctx is passed through everywhere. Question: can we factor out ctx better?
Diffstat (limited to 'src/dotty/tools/dotc/config/JavaPlatform.scala')
-rw-r--r--src/dotty/tools/dotc/config/JavaPlatform.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dotty/tools/dotc/config/JavaPlatform.scala b/src/dotty/tools/dotc/config/JavaPlatform.scala
index f62c87daf..c4421d16b 100644
--- a/src/dotty/tools/dotc/config/JavaPlatform.scala
+++ b/src/dotty/tools/dotc/config/JavaPlatform.scala
@@ -13,7 +13,7 @@ class JavaPlatform extends Platform {
def classPath(implicit ctx: Context): ClassPath = {
if (currentClassPath.isEmpty)
- currentClassPath = Some(new PathResolver(ctx.condensed).result)
+ currentClassPath = Some(new PathResolver().result)
currentClassPath.get
}
@@ -21,7 +21,7 @@ class JavaPlatform extends Platform {
def updateClassPath(subst: Map[ClassPath, ClassPath]) =
currentClassPath = Some(new DeltaClassPath(currentClassPath.get, subst))
- def rootLoader(root: TermSymbol)(implicit ctx: Context): SymbolLoader = new ctx.base.loaders.PackageLoader(root, classPath)(ctx.condensed)
+ def rootLoader(root: TermSymbol)(implicit ctx: Context): SymbolLoader = new ctx.base.loaders.PackageLoader(root, classPath)
/** We could get away with excluding BoxedBooleanClass for the
* purpose of equality testing since it need not compare equal
@@ -40,5 +40,5 @@ class JavaPlatform extends Platform {
}
def newClassLoader(bin: AbstractFile)(implicit ctx: Context): SymbolLoader =
- new ClassfileLoader(bin)(ctx.condensed)
+ new ClassfileLoader(bin)
}