Nice/src/bossa/syntax methodImplementation.nice,1.12,1.13

Daniel Bonniot <[email protected]>
Newsgroups gmane.comp.lang.nice.cvs
Message-ID <[email protected]>
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);
        }
  



-------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.