summaryrefslogblamecommitdiff
path: root/sources/scalac/transformer/AddConstructorsPhase.java
blob: 927d368bb33daa4514f07699267e287fe75ff40b (plain) (tree)








































                                                                          
/*     ____ ____  ____ ____  ______                                     *\
**    / __// __ \/ __// __ \/ ____/    SOcos COmpiles Scala             **
**  __\_ \/ /_/ / /__/ /_/ /\_ \       (c) 2002, LAMP/EPFL              **
** /_____/\____/\___/\____/____/                                        **
**                                                                      **
\*                                                                      */

// $Id$

//package scala.compiler.backend;
package scalac.transformer;

import java.util.HashMap;

//import scala.compiler.*;
import scalac.Global;
import scalac.Phase;
import scalac.PhaseDescriptor;

public class AddConstructorsPhase extends PhaseDescriptor {

    /** Maps the old constructor symbols to the new ones
     */
    HashMap constructors = new HashMap();

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

    public String description() {
	return "add explicit constructor for each class";
    }

    public String taskDescription() {
	return "added constructors";
    }

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