Clean up semantics of invoking ResolveMemberAccess.
authorRaja R Harinath <harinath@hurrynot.org>
Thu, 31 Mar 2005 14:40:40 +0000 (14:40 -0000)
committerRaja R Harinath <harinath@hurrynot.org>
Thu, 31 Mar 2005 14:40:40 +0000 (14:40 -0000)
commitfb5e34210525c6b2af5dcedba123ab1a08dfa42c
tree3f9e632f1b69ce015908bb4f88ca8b955b7d4f57
parent41fbf31fd382874fcf8207f9551e954a93b2aeae
Clean up semantics of invoking ResolveMemberAccess.
* ecore.cs (SimpleName.DoSimpleNameResolve): If a MemberExpression
can have an instance, ensure that we pass in a non-TypeExpression
to ResolveMemberAccess.  Tighten up IdenticalNameAndTypeName checks.
(MemberExpr.DoSimpleNameResolve): Remove type_is_inferred
argument.  Update to changes and simplify.
(FieldExpr.Emitinstance): Remove CS0120 check.
(PropertyExpr.EmitInstance): Likewise.
* expression.cs (Argument.Resolve): Likewise.
(Invocation.DoResolve): Update to changes in semantics of
InstanceExpression.

svn path=/trunk/mcs/; revision=42432
mcs/mcs/ChangeLog
mcs/mcs/ecore.cs
mcs/mcs/expression.cs