2 // anonymous.cs: Support for anonymous methods
5 // Miguel de Icaza (miguel@ximain.com)
7 // (C) 2003 Ximian, Inc.
11 using System.Collections;
12 using System.Reflection;
13 using System.Reflection.Emit;
15 namespace Mono.CSharp {
17 public class AnonymousMethod : Expression {
18 // An array list of AnonymousMethodParameter or null
19 Parameters parameters;
22 public AnonymousMethod (Parameters parameters, Block block, Location l)
24 this.parameters = parameters;
29 public override Expression DoResolve (EmitContext ec)
32 // Set class type, set type
35 eclass = ExprClass.Value;
38 // This hack means `The type is not accessible
39 // anywhere', we depend on special conversion
42 type = typeof (AnonymousMethod);
46 public override void Emit (EmitContext ec)
48 // nothing, as we only exist to not do anything.