diff options
author | Martin Odersky <odersky@gmail.com> | 2013-02-24 18:42:17 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-02-24 18:42:17 +0100 |
commit | 36b9128d2214a927d642e87da3322b4ed4e76c58 (patch) | |
tree | 8a9c85a5b7568bb5b1eb4113d0ab122ae1af1bc1 /src/dotty/tools/dotc/config/JavaPlatform.scala | |
parent | 7cde8b6d78022aadb00d3f82fb9019da39a62b49 (diff) | |
download | dotty-36b9128d2214a927d642e87da3322b4ed4e76c58.tar.gz dotty-36b9128d2214a927d642e87da3322b4ed4e76c58.tar.bz2 dotty-36b9128d2214a927d642e87da3322b4ed4e76c58.zip |
Refactoring and cleanup of several symbol creation related aspects.
1. Went back to old completer model where completers are types.
2. Made class denotations a simple optimzation of symbol denotatons (with more caches)
by moving all class-specific attributes into ClassInfo.
3. Now all symbol and symbol denotation creations are routed through one of 3 methods: newNakedSymbol, newNakedClassSymbol, newSymDenotation.
Diffstat (limited to 'src/dotty/tools/dotc/config/JavaPlatform.scala')
-rw-r--r-- | src/dotty/tools/dotc/config/JavaPlatform.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/config/JavaPlatform.scala b/src/dotty/tools/dotc/config/JavaPlatform.scala index 0c91ae2e7..bcb1939a8 100644 --- a/src/dotty/tools/dotc/config/JavaPlatform.scala +++ b/src/dotty/tools/dotc/config/JavaPlatform.scala @@ -7,7 +7,7 @@ import ClassPath.{ JavaContext, DefaultJavaContext } import core.Contexts._ import core.SymDenotations._, core.Symbols._, core.SymbolLoader -class JavaPlatform(base: ContextBase) extends Platform(base) { +class JavaPlatform extends Platform { private var currentClassPath: Option[MergedClassPath] = None @@ -21,7 +21,7 @@ class JavaPlatform(base: ContextBase) extends Platform(base) { def updateClassPath(subst: Map[ClassPath, ClassPath]) = currentClassPath = Some(new DeltaClassPath(currentClassPath.get, subst)) - def rootLoader: ClassCompleter = ??? // = new loaders.PackageLoader(classPath) + def rootLoader(implicit ctx: Context): SymbolLoader = new ctx.base.loaders.PackageLoader(classPath)(ctx.condensed) /** We could get away with excluding BoxedBooleanClass for the * purpose of equality testing since it need not compare equal |