[Nice-commit] Nice/src/bossa/syntax Node.java,1.56,1.57 AST.java,1.47,1.48
Brought to you by:
bonniot
From: <bo...@us...> - 2003-07-22 16:55:35
|
Update of /cvsroot/nice/Nice/src/bossa/syntax In directory sc8-pr-cvs1:/tmp/cvs-serv28078/src/bossa/syntax Modified Files: Node.java AST.java Log Message: Do not stop at the first typechecking error. Index: Node.java =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/syntax/Node.java,v retrieving revision 1.56 retrieving revision 1.57 diff -C2 -d -r1.56 -r1.57 *** Node.java 28 May 2003 12:57:26 -0000 1.56 --- Node.java 22 Jul 2003 16:55:31 -0000 1.57 *************** *** 355,359 **** if (children != null) for(Iterator i = children.iterator();i.hasNext();) ! ((Node)i.next()).doTypecheck(); } --- 355,364 ---- if (children != null) for(Iterator i = children.iterator();i.hasNext();) ! try{ ! ((Node)i.next()).doTypecheck(); ! } ! catch(UserError ex){ ! globalTypeScope.module.compilation().error(ex); ! } } Index: AST.java =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/syntax/AST.java,v retrieving revision 1.47 retrieving revision 1.48 diff -C2 -d -r1.47 -r1.48 *** AST.java 24 Jun 2003 15:28:19 -0000 1.47 --- AST.java 22 Jul 2003 16:55:31 -0000 1.48 *************** *** 154,157 **** --- 154,159 ---- doTypecheck(); + + module.compilation().exitIfErrors(); } |