From d19cd4e6791347cfbcd161c02a49eebef4aab686 Mon Sep 17 00:00:00 2001 From: paltherr Date: Thu, 19 Feb 2004 13:08:48 +0000 Subject: - Removed java version of files translated to s... - Removed java version of files translated to scala --- sources/scalac/Global.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'sources/scalac/Global.java') diff --git a/sources/scalac/Global.java b/sources/scalac/Global.java index 39a5f8d08d..3b98951b6c 100644 --- a/sources/scalac/Global.java +++ b/sources/scalac/Global.java @@ -29,6 +29,7 @@ import scalac.backend.Primitives; import scalac.symtab.*; // !!! >>> Interpreter stuff import scalac.symtab.Definitions; +import scalac.typechecker.Infer; import scalac.util.*; /** The global environment of a compiler run @@ -36,7 +37,7 @@ import scalac.util.*; * @author Matthias Zenger * @version 1.0 */ -public class Global { +public abstract class Global { public static Global instance; @@ -166,12 +167,9 @@ public class Global { /** hooks for installing printers */ - protected TreePrinter newTextTreePrinter(PrintWriter writer) { - return new TextTreePrinter(writer); - } - protected TreePrinter newHTMLTreePrinter(PrintWriter writer) { - return new HTMLTreePrinter(writer); - } + public abstract Infer newInfer(); + public abstract TreePrinter newTextTreePrinter(PrintWriter writer); + public abstract TreePrinter newHTMLTreePrinter(PrintWriter writer); /** * Creates an instance variable. -- cgit v1.2.3