summaryrefslogtreecommitdiff
path: root/sources/scalac/typechecker/AnalyzerPhase.java
blob: 09398068441387f8cf0daab0faefa365f7f62a96 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*     ____ ____  ____ ____  ______                                     *\
**    / __// __ \/ __// __ \/ ____/    SOcos COmpiles Scala             **
**  __\_ \/ /_/ / /__/ /_/ /\_ \       (c) 2002, LAMP/EPFL              **
** /_____/\____/\___/\____/____/                                        **
\*                                                                      */

// $Id$

package scalac.typechecker;

import scalac.Global;
import scalac.Phase;
import scalac.PhaseDescriptor;
import scalac.CompilationUnit;
import scalac.ast.TreeGen;
import scalac.symtab.Definitions;
import scalac.symtab.Symbol;

public abstract class AnalyzerPhase extends Phase {

    public final TreeGen gen;

    /** Initializes this instance. */
    public AnalyzerPhase(Global global, PhaseDescriptor descriptor) {
        super(global, descriptor);
        global.definitions = new Definitions(global);
        this.gen = new TreeGen(global, global.make);
    }

    public abstract void addConsoleImport(Symbol module);

    public abstract CompilationUnit[] getUnits();

}