summaryrefslogtreecommitdiff
path: root/sources/scalac/Global.java
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-05-20 11:22:37 +0000
committerpaltherr <paltherr@epfl.ch>2003-05-20 11:22:37 +0000
commitfb71c50b8f7566d53b058914beea7db286c9593f (patch)
treefb2fc5011af3d1c616d744066ed0fb5c8c6cc318 /sources/scalac/Global.java
parent82bedc921b3e588251106c0946fb8d1e96edb44b (diff)
downloadscala-fb71c50b8f7566d53b058914beea7db286c9593f.tar.gz
scala-fb71c50b8f7566d53b058914beea7db286c9593f.tar.bz2
scala-fb71c50b8f7566d53b058914beea7db286c9593f.zip
- Moved code from EntryPointCompiler into Inter...
- Moved code from EntryPointCompiler into Interpreter Removed - EntryPointCompiler Simplified Compiler
Diffstat (limited to 'sources/scalac/Global.java')
-rw-r--r--sources/scalac/Global.java7
1 files changed, 5 insertions, 2 deletions
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];