[Mono-dev] c# compilater - mcs
Raja R Harinath
rharinath at novell.com
Mon Apr 3 03:18:58 EDT 2006
Hi,
Denis ERCHOFF <d_erchoff at hotmail.com> writes:
> So my class Test has a field named "/field/" called by the method
> "//TestMethod//". While the compilater is parsing the file, i see ( in
> debug mode ) that a "/SimpleName/" class expression is created to handle
> the reference to "/field/" in the method "/TestMethod/".
>
> But i have no clue when the compilater links the simple name to the
> "/Test/" class field : if a write "/this.field/" a "/MemberAcess/"
> class is created and in this case it is clear how the compilater does
> "the link". When the simple name class is emitted ? When it is
> transformed in a "/MemberAcces/" ( if it does it )?
I'm not exactly sure what you're asking. However, I'm guessing -- I
think you're looking for calls to the (slightly misnamed)
ResolveMemberAccess() method. It's in charge of setting the instance
expression of an instance field reference.
- Hari
More information about the Mono-devel-list
mailing list