5 // Ankit Jain <jankit@novell.com>
7 // Copyright 2006 Novell, Inc (http://www.novell.com)
11 using System
.Collections
;
13 namespace Mono
.ILASM
{
15 public class Module
: ExternRef
{
19 public Module (string name
)
24 public PEAPI
.Module PeapiModule
{
25 get { return module; }
26 set { module = value; }
29 public override string FullName
{
31 //'name' field should not contain the [ ]
32 //as its used for resolving
33 return String
.Format ("[{0}]", name
);
37 public override PEAPI
.IExternRef
GetExternRef ()
42 public override void Resolve (CodeGen code_gen
)
44 throw new InternalErrorException ("This should not get called");
47 public void Resolve (CodeGen code_gen
, PEAPI
.Module module
)
51 if (customattr_list
== null)
54 foreach (CustomAttr customattr
in customattr_list
)
55 customattr
.AddTo (code_gen
, module
);