Nice/src/gnu/expr LambdaExp.java,1.29,1.30
Daniel Bonniot <[email protected]>
| Newsgroups | gmane.comp.lang.nice.cvs |
|---|---|
| Message-ID | <[email protected]> |
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
}
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click