[Mono-devel-list] Do we really need "related location" for CS0136?

Atsushi Eno atsushi at ximian.com
Fri May 27 03:52:56 EDT 2005


I created a patch for mcs that 1) adds Location property to
ParameterBase, and 2) removes Location property from Parameters.
On Parameter class there was a comment:

//TODO: Add location member to this or base class for better error
location and all methods simplification.

For Parameters.Location it is only used for CS0136 where IMHO
we don't need "related location" information (since it must be
always the exact declaration part). So I would suggest to just
remove that reporting but for now I just replaced
Parameters.Location with the exact Location of related Parameter.

Sounds good?

(I wanted to solve this matter before improving my precise location
patch which I created once upon a time.)

Atsushi Eno

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: parameter-location.patch
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050527/1386f4b2/attachment.pl 

More information about the Mono-devel-list mailing list