tag a couple of obsolete members
[mcs.git] / ilasm / codegen / Module.cs
blob32ca848fbd108e4c55881f944e57726a1ff1628d
1 //
2 // Mono.ILASM.Module
3 //
4 // Author(s):
5 // Ankit Jain <jankit@novell.com>
6 //
7 // Copyright 2006 Novell, Inc (http://www.novell.com)
8 //
10 using System;
11 using System.Collections;
13 namespace Mono.ILASM {
15 public class Module : ExternRef {
17 PEAPI.Module module;
19 public Module (string name)
20 : base (name)
24 public PEAPI.Module PeapiModule {
25 get { return module; }
26 set { module = value; }
29 public override string FullName {
30 get {
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 ()
39 return module;
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)
49 this.module = module;
51 if (customattr_list == null)
52 return;
54 foreach (CustomAttr customattr in customattr_list)
55 customattr.AddTo (code_gen, module);