Nice/src/bossa/util Location.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/bossa/util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22241/src/bossa/util

Modified Files:
	Location.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: Location.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/util/Location.java,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** Location.java	1 Jul 2004 11:52:08 -0000	1.29
--- Location.java	20 Feb 2005 22:09:40 -0000	1.30
***************
*** 96,99 ****
--- 96,103 ----
    }
  
+   public void writeEnd(gnu.expr.Expression exp)
+   {
+   }
+ 
    public void write(gnu.expr.Declaration decl)
    {
***************
*** 171,175 ****
        return startLine;
      }
!   
      public int getColumn()
      {
--- 175,179 ----
        return startLine;
      }
! 
      public int getColumn()
      {
***************
*** 201,204 ****
--- 205,214 ----
      }
  
+     public void writeEnd(gnu.expr.Expression exp)
+     {
+       super.write(exp);
+       exp.setLine(endLine, endColumn);
+     }
+ 
      public void write(gnu.expr.Declaration decl)
      {



-------------------------------------------------------
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.