summaryrefslogtreecommitdiff
path: root/sources/scalac/transformer/ExpandMixinsPhase.java
blob: fe9bfc259ffa5e584130fa506625711be63d2d05 (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
35
36
37
38
39
40
41
42
43
44
45
/*     ____ ____  ____ ____  ______                                     *\
**    / __// __ \/ __// __ \/ ____/    SOcos COmpiles Scala             **
**  __\_ \/ /_/ / /__/ /_/ /\_ \       (c) 2002, LAMP/EPFL              **
** /_____/\____/\___/\____/____/                                        **
**                                                                      **
\*                                                                      */

// $OldId: ExpandMixinsPhase.java,v 1.8 2002/05/02 10:59:35 schinz Exp $
// $Id$

package scalac.transformer;

import scalac.*;
import scalac.checkers.*;

import java.util.*;

public class ExpandMixinsPhase extends PhaseDescriptor {
    /** Mapping from class symbols to class definitions */
    public Map/*<Symbol,Tree>*/ classDefs = new HashMap();

    public String name () {
        return "expandmixins";
    }

    public String description () {
        return "expand mixins by code copying";
    }

    public String taskDescription() {
        return "expanded mixins";
    }

    public Phase createPhase(Global global) {
        return new ExpandMixins(global, this);
    }

    public Checker[] postCheckers(Global global) {
        return new Checker[] {
            new CheckSymbols(global),
            new CheckTypes(global),
            new CheckOwners(global)
        };
    }
}