//
// The modifiers applied to the method, we aggregate them
//
- int method_modifiers = Modifiers.INTERNAL;
+ int method_modifiers = Modifiers.PRIVATE;
//
// During the resolve stage of the anonymous method body,
if (Parameters == null){
int i, j;
- out_invalid_check = true;
//
// We provide a set of inaccessible parameters
return method.MethodData.MethodBuilder;
}
- public void EmitMethod (EmitContext ec)
+ public bool EmitMethod (EmitContext ec)
{
if (!CreateMethodHost (ec, invoke_mb.ReturnType))
- return;
+ return false;
MethodBuilder builder = GetMethodBuilder ();
ILGenerator ig = builder.GetILGenerator ();
aec.EmitMeta (Block, amp);
aec.EmitResolvedTopBlock (Block, unreachable);
+ return true;
}
public static void Error_AddressOfCapturedVar (string name, Location loc)
public override Expression DoResolve (EmitContext ec)
{
eclass = ExprClass.Value;
+
return this;
}
public override void Emit (EmitContext ec)
{
- am.EmitMethod (ec);
+ if (!am.EmitMethod (ec))
+ return;
//
// Now emit the delegate creation.