From fb71c50b8f7566d53b058914beea7db286c9593f Mon Sep 17 00:00:00 2001 From: paltherr Date: Tue, 20 May 2003 11:22:37 +0000 Subject: - Moved code from EntryPointCompiler into Inter... - Moved code from EntryPointCompiler into Interpreter Removed - EntryPointCompiler Simplified Compiler --- sources/scalac/Global.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sources/scalac') diff --git a/sources/scalac/Global.java b/sources/scalac/Global.java index 8aac110889..cabac41a66 100644 --- a/sources/scalac/Global.java +++ b/sources/scalac/Global.java @@ -329,6 +329,7 @@ public class Global { private int module = 0; private List imports = new ArrayList(); + public Symbol console; private void fix1() { for (int i = 0; i < units.length; i++) { @@ -363,8 +364,10 @@ public class Global { imports.clear(); for (int i = 0; i < unit.body.length; i++) { switch (unit.body[i]) { - case ModuleDef(_, Name name, _, Tree.Template impl): - if (!name.startsWith(CONSOLE_N)) break; + case ModuleDef(_, _, _, Tree.Template impl): + Symbol symbol = unit.body[i].symbol(); + if (!symbol.name.startsWith(CONSOLE_N)) break; + console = symbol; if (impl.body.length <= 0) break; imports.add(unit.body[i].symbol()); Tree last = impl.body[impl.body.length - 1]; -- cgit v1.2.3