5 // Jackson Harper (Jackson@LatitudeGeo.com)
7 // (C) 2003 Jackson Harper, All rights reserved
14 namespace Mono.ILASM {
20 private ITypeRef type;
22 public Local (int slot, ITypeRef type) : this (slot, null, type) {
26 public Local (int slot, string name, ITypeRef type) {
41 public ITypeRef Type {
45 public PEAPI.Local GetPeapiLocal (CodeGen code_gen)
47 int ec = code_gen.Report.ErrorCount;
48 IGenericTypeRef gtr = type as IGenericTypeRef;
50 type.Resolve (code_gen);
52 gtr.ResolveNoTypeSpec (code_gen);
54 if (code_gen.Report.ErrorCount > ec)
57 return new PEAPI.Local (name, type.PeapiType);