[Nice-commit] Nice/src/bossa/syntax tools.nice,1.17,1.18 Statement.java,1.16,1.17
Brought to you by:
bonniot
|
From: <bo...@us...> - 2003-02-20 14:58:44
|
Update of /cvsroot/nice/Nice/src/bossa/syntax
In directory sc8-pr-cvs1:/tmp/cvs-serv10332/src/bossa/syntax
Modified Files:
tools.nice Statement.java
Log Message:
Allow error messages to be displayed during code generation.
Index: tools.nice
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/syntax/tools.nice,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** tools.nice 17 Feb 2003 14:41:12 -0000 1.17
--- tools.nice 20 Feb 2003 14:58:39 -0000 1.18
***************
*** 62,67 ****
bossa.util.Located loc)
{
! if (e.responsible == null)
! e.responsible = loc;
return e;
}
--- 62,67 ----
bossa.util.Located loc)
{
! if (e.location == null)
! e.location = loc.location();
return e;
}
Index: Statement.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/syntax/Statement.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** Statement.java 20 Jan 2003 19:20:58 -0000 1.16
--- Statement.java 20 Feb 2003 14:58:39 -0000 1.17
***************
*** 52,57 ****
// If not, it's better than nothing to located the error in
// the containing statement.
! if (e.responsible == null)
! e.responsible = s;
// Rethrow.
throw e;
--- 52,57 ----
// If not, it's better than nothing to located the error in
// the containing statement.
! if (e.location == null)
! e.location = s.location();
// Rethrow.
throw e;
|