Nice/src/bossa/modules Content.java,1.19,1.20

Daniel Bonniot <[email protected]> Sat, 12 Mar 2005 10:12:59 +0000
Newsgroups gmane.comp.lang.nice.cvs
Message-ID <[email protected]>
Update of /cvsroot/nice/Nice/src/bossa/modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5585/src/bossa/modules

Modified Files:
	Content.java 
Log Message:
Correctly set the name of scopes that correspond to files.


Index: Content.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/modules/Content.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** Content.java	11 Mar 2005 17:35:54 -0000	1.19
--- Content.java	12 Mar 2005 10:12:56 -0000	1.20
***************
*** 121,125 ****
        {
          nice.tools.visibility.Scope scope =
!           new nice.tools.visibility.Scope(unit.name, pkg.packageScope);
  
          module = new bossa.syntax.Module(pkg, unit.name, scope);
--- 121,125 ----
        {
          nice.tools.visibility.Scope scope =
!           new nice.tools.visibility.Scope(unit.getName(), pkg.packageScope);
  
          module = new bossa.syntax.Module(pkg, unit.name, scope);
***************
*** 274,277 ****
--- 274,286 ----
        this.name = name;
      }
+ 
+     public String getName()
+     {
+       if (file != null)
+         return file.toString();
+       else
+         return name;
+     }
+ 
      BufferedReader reader;
      String name;



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