Author: raja
Date: 2005-03-30 03:12:22 -0500 (Wed, 30 Mar 2005)
New Revision: 42364
Modified:
trunk/mcs/mcs/ChangeLog
trunk/mcs/mcs/ecore.cs
Log:
* ecore.cs (PropertyExpr): Derive from Expression, not ExpressionStatement.
(PropertyExpr.EmitStatement): Remove.
Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog 2005-03-30 07:44:12 UTC (rev 42363)
+++ trunk/mcs/mcs/ChangeLog 2005-03-30 08:12:22 UTC (rev 42364)
@@ -1,3 +1,9 @@
+2005-03-30 Raja R Harinath <[EMAIL PROTECTED]>
+
+ * ecore.cs (PropertyExpr): Derive from Expression, not
+ ExpressionStatement.
+ (PropertyExpr.EmitStatement): Remove.
+
2005-03-29 Raja R Harinath <[EMAIL PROTECTED]>
Fix #74060.
Modified: trunk/mcs/mcs/ecore.cs
===================================================================
--- trunk/mcs/mcs/ecore.cs 2005-03-30 07:44:12 UTC (rev 42363)
+++ trunk/mcs/mcs/ecore.cs 2005-03-30 08:12:22 UTC (rev 42364)
@@ -3071,7 +3071,7 @@
/// This is not an LValue because we need to re-write the expression,
we
/// can not take data from the stack and store it.
/// </summary>
- public class PropertyExpr : ExpressionStatement, IAssignMethod,
IMemberExpr {
+ public class PropertyExpr : Expression, IAssignMethod, IMemberExpr {
public readonly PropertyInfo PropertyInfo;
//
@@ -3460,12 +3460,6 @@
if (temp != null)
temp.Emit (ec);
}
-
- override public void EmitStatement (EmitContext ec)
- {
- Emit (ec);
- ec.ig.Emit (OpCodes.Pop);
- }
}
/// <summary>
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches