From 6d9e1774b9d543550473b3f32c4925d290c9edd1 Mon Sep 17 00:00:00 2001 From: Sean McDirmid Date: Fri, 25 Aug 2006 10:32:17 +0000 Subject: Modified scopes and positions so they can be co... Modified scopes and positions so they can be configured more flexibly. --- src/compiler/scala/tools/nsc/Global.scala | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/compiler/scala/tools/nsc/Global.scala') 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, -- cgit v1.2.3