From 430c5dbe56f5826a2b26a386e4f1f55d3bc835b7 Mon Sep 17 00:00:00 2001 From: paltherr Date: Sun, 21 Mar 2004 17:48:43 +0000 Subject: - Avoided recomputations of files that are alre... - Avoided recomputations of files that are already done in PackageParser --- sources/scalac/Global.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sources/scalac/Global.java') diff --git a/sources/scalac/Global.java b/sources/scalac/Global.java index 5d21cedff6..1807f45b2c 100644 --- a/sources/scalac/Global.java +++ b/sources/scalac/Global.java @@ -375,9 +375,11 @@ public abstract class Global { } if (reporter.errors() != 0) { imports.clear(); - for (Iterator it = compiledNow.keySet().iterator(); it.hasNext();) { - Symbol sym = (Symbol) it.next(); - sym.reset(new SourceCompleter(this)); + for (Iterator i = compiledNow.entrySet().iterator(); i.hasNext();) { + Map.Entry entry = (Map.Entry)i.next(); + Symbol clasz = (Symbol)entry.getKey(); + AbstractFile file = ((SourceFile)entry.getValue()).getFile(); + clasz.reset(new SourceCompleter(this, file)); } } symdata.clear(); -- cgit v1.2.3