Nice/src/bossa/syntax enum.nice,1.21,1.22

Daniel Bonniot <[email protected]> Sat, 26 Mar 2005 02:11:36 +0000
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-serv11746/src/bossa/syntax

Modified Files:
	enum.nice 
Log Message:
Locate enum field type errors.


Index: enum.nice
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/syntax/enum.nice,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** enum.nice	25 Mar 2005 16:40:00 -0000	1.21
--- enum.nice	26 Mar 2005 02:11:34 -0000	1.22
***************
*** 185,189 ****
      args.add(new Argument(value: argExps[i], name: fields[i].getName()));
  
!   return new EnumSymbol(name, syntacticType: type, definition: def, value: 
! 	createNewExp(new TypeIdent(name: enumName), new Arguments(arguments: args)));
  }
--- 185,191 ----
      args.add(new Argument(value: argExps[i], name: fields[i].getName()));
  
!   let value = createNewExp(new TypeIdent(name: enumName), new Arguments(arguments: args));
!   value.setLocation(name.location);
! 
!   return new EnumSymbol(name, syntacticType: type, definition: def, value: value);
  }



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