summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/Global.scala
diff options
context:
space:
mode:
authorSean McDirmid <sean.mcdirmid@gmail.com>2006-08-25 10:32:17 +0000
committerSean McDirmid <sean.mcdirmid@gmail.com>2006-08-25 10:32:17 +0000
commit6d9e1774b9d543550473b3f32c4925d290c9edd1 (patch)
tree53fad0ab0cedebaadb4fdb8aa07675415596c9bf /src/compiler/scala/tools/nsc/Global.scala
parentb5f66bdd72531b82a30a98872338f682d553f642 (diff)
downloadscala-6d9e1774b9d543550473b3f32c4925d290c9edd1.tar.gz
scala-6d9e1774b9d543550473b3f32c4925d290c9edd1.tar.bz2
scala-6d9e1774b9d543550473b3f32c4925d290c9edd1.zip
Modified scopes and positions so they can be co...
Modified scopes and positions so they can be configured more flexibly.
Diffstat (limited to 'src/compiler/scala/tools/nsc/Global.scala')
-rw-r--r--src/compiler/scala/tools/nsc/Global.scala6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala
index 2640ee4257..891e35d98a 100644
--- a/src/compiler/scala/tools/nsc/Global.scala
+++ b/src/compiler/scala/tools/nsc/Global.scala
@@ -29,13 +29,11 @@ import backend.jvm.GenJVM
import backend.opt.{Inliners, ClosureElimination, DeadCodeElimination}
import backend.icode.analysis._
-class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable
+abstract class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable
with Trees
with CompilationUnits
{
-
// sub-components --------------------------------------------------
-
object treePrinters extends TreePrinters {
val global: Global.this.type = Global.this
}
@@ -336,7 +334,7 @@ class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable
object icodeChecker extends checkers.ICodeChecker()
object typer extends analyzer.Typer(
- analyzer.NoContext.make(EmptyTree, Global.this.definitions.RootClass, new Scope()))
+ analyzer.NoContext.make(EmptyTree, Global.this.definitions.RootClass, newScope))
def phaseDescriptors: List[SubComponent] = List(
analyzer.namerFactory,