Charj: fix accidental 'def after ref' problem
authorAaron Becker <akbecker@gmail.com>
Fri, 17 Sep 2010 23:47:46 +0000 (18:47 -0500)
committerAaron Becker <akbecker@gmail.com>
Fri, 17 Sep 2010 23:47:46 +0000 (18:47 -0500)
src/langs/charj/src/charj/translator/Translator.java

index 153dfa24770786258b9e0cab3f050530cdd50525..6a6f073806d6f19c28a24c447f72fb4e0603f41f 100644 (file)
@@ -177,6 +177,8 @@ public class Translator {
         if (m_verbose) System.out.println("\nDefiner Phase\n----------------");
         SymbolDefiner definer = new SymbolDefiner(m_nodes, m_symtab);
         definer.downup(m_ast);
+        m_nodes.reset();
+        definer.downup(m_ast);
         if (m_verbose) System.out.println("\nResolver Phase\n----------------");
         if (m_printAST) printAST("After Type Definition", "after_definition.html");
         m_nodes.reset();