summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Analyzer.scala
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2007-10-09 16:28:22 +0000
committermichelou <michelou@epfl.ch>2007-10-09 16:28:22 +0000
commitf91bc93ad4767a86fea46d2d63e3b09cf2f64faf (patch)
tree37d901d19390abd0d769742354986b08a043aa86 /src/compiler/scala/tools/nsc/typechecker/Analyzer.scala
parentd93d566e0845aeed5066c30b4bc0d99a2b4729c7 (diff)
downloadscala-f91bc93ad4767a86fea46d2d63e3b09cf2f64faf.tar.gz
scala-f91bc93ad4767a86fea46d2d63e3b09cf2f64faf.tar.bz2
scala-f91bc93ad4767a86fea46d2d63e3b09cf2f64faf.zip
removed type aliases, update svn:keywords
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Analyzer.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Analyzer.scala12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Analyzer.scala b/src/compiler/scala/tools/nsc/typechecker/Analyzer.scala
index 1ec4da1a54..defcc6ce2e 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Analyzer.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Analyzer.scala
@@ -1,5 +1,5 @@
/* NSC -- new Scala compiler
- * Copyright 2005-2006 LAMP/EPFL
+ * Copyright 2005-2007 LAMP/EPFL
* @author Martin Odersky
*/
// $Id$
@@ -18,15 +18,16 @@ trait Analyzer extends AnyRef
with SyntheticMethods
with Unapplies {
- val global : Global;
- import global._;
+ val global : Global
+ import global._
object namerFactory extends SubComponent {
val global: Analyzer.this.global.type = Analyzer.this.global
val phaseName = "namer"
def newPhase(_prev: Phase): StdPhase = new StdPhase(_prev) {
- def apply(unit: CompilationUnit): unit =
+ def apply(unit: CompilationUnit) {
newNamer(rootContext(unit)).enterSym(unit.body)
+ }
}
}
@@ -35,8 +36,9 @@ trait Analyzer extends AnyRef
val phaseName = "typer"
def newPhase(_prev: Phase): StdPhase = new StdPhase(_prev) {
resetTyper
- def apply(unit: CompilationUnit): unit =
+ def apply(unit: CompilationUnit) {
unit.body = newTyper(rootContext(unit)).typed(unit.body)
+ }
}
}
}