diff options
Diffstat (limited to 'src/compiler/scala/tools/nsc/backend/Platform.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/Platform.scala | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/Platform.scala b/src/compiler/scala/tools/nsc/backend/Platform.scala new file mode 100644 index 0000000000..3ab0e4e8a7 --- /dev/null +++ b/src/compiler/scala/tools/nsc/backend/Platform.scala @@ -0,0 +1,24 @@ +/* NSC -- new Scala compiler + * Copyright 2005-2010 LAMP/EPFL + * @author Paul Phillips + */ + +package scala.tools.nsc +package backend + +import util.{ ClassPath } + +/** The platform dependent pieces of Global. + */ + +trait Platform[T] { + val global: Global + import global._ + + // Unless inlining is on, we can exclude $class.class files from the classpath. + protected def isInlinerOn = settings.inline.value + + def classPath: ClassPath[T] + def rootLoader: global.LazyType + def platformPhases: List[SubComponent] +} |