aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/config/Platform.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-02-24 18:42:17 +0100
committerMartin Odersky <odersky@gmail.com>2013-02-24 18:42:17 +0100
commit36b9128d2214a927d642e87da3322b4ed4e76c58 (patch)
tree8a9c85a5b7568bb5b1eb4113d0ab122ae1af1bc1 /src/dotty/tools/dotc/config/Platform.scala
parent7cde8b6d78022aadb00d3f82fb9019da39a62b49 (diff)
downloaddotty-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/Platform.scala')
-rw-r--r--src/dotty/tools/dotc/config/Platform.scala5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/dotty/tools/dotc/config/Platform.scala b/src/dotty/tools/dotc/config/Platform.scala
index 0385d80c5..19bdf00b1 100644
--- a/src/dotty/tools/dotc/config/Platform.scala
+++ b/src/dotty/tools/dotc/config/Platform.scala
@@ -9,15 +9,14 @@ package config
import io.{ClassPath, AbstractFile}
import core.Contexts._, core.Symbols._
-import core.SymDenotations.ClassCompleter
import core.SymbolLoader
/** The platform dependent pieces of Global.
*/
-abstract class Platform(base: ContextBase) {
+abstract class Platform {
/** The root symbol loader. */
- def rootLoader: ClassCompleter
+ def rootLoader(implicit ctx: Context): SymbolLoader
/** The compiler classpath. */
def classPath(implicit ctx: Context): ClassPath