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