[Nice-commit] Nice/src/bossa/syntax methodImplementation.nice,1.12,1.13
Brought to you by:
bonniot
|
From: Daniel B. <bo...@us...> - 2005-02-20 22:09:49
|
Update of /cvsroot/nice/Nice/src/bossa/syntax In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22241/src/bossa/syntax Modified Files: methodImplementation.nice Log Message: Give the end of the method as the location of implicit returns, so as to make debuggers display sensible lines when jumping to the end of a void method. Index: methodImplementation.nice =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/syntax/methodImplementation.nice,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** methodImplementation.nice 16 Jan 2005 00:28:21 -0000 1.12 --- methodImplementation.nice 20 Feb 2005 22:09:40 -0000 1.13 *************** *** 141,144 **** --- 141,150 ---- ref = this.createRef(); nice.tools.code.Gen.setMethodBody(compiledMethod, body.generateCode()); + + /* We remember the end of the method's body as its location. + This information is used to give the line number of implicit + returns at the end of void methods. + */ + body.location().writeEnd(compiledMethod); } |