[Nice-commit] Nice/src/gnu/expr LambdaExp.java,1.29,1.30
Brought to you by:
bonniot
|
From: Daniel B. <bo...@us...> - 2005-02-20 22:09:48
|
Update of /cvsroot/nice/Nice/src/gnu/expr In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22241/src/gnu/expr Modified Files: LambdaExp.java 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: LambdaExp.java =================================================================== RCS file: /cvsroot/nice/Nice/src/gnu/expr/LambdaExp.java,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** LambdaExp.java 20 Feb 2005 21:20:01 -0000 1.29 --- LambdaExp.java 20 Feb 2005 22:09:39 -0000 1.30 *************** *** 489,493 **** && (! Compilation.usingTailCalls || isModuleBody() || isClassMethod() || isHandlingTailCalls())) ! code.emitReturn(); code.popScope(); // Undoes enterScope in allocParameters } --- 489,500 ---- && (! Compilation.usingTailCalls || isModuleBody() || isClassMethod() || isHandlingTailCalls())) ! { ! // The line of a method is by convention it's last one, ! // specifically to make this feature possible. ! if (getLine() > 0) ! code.putLineNumber(getFile(), getLine()); ! ! code.emitReturn(); ! } code.popScope(); // Undoes enterScope in allocParameters } |