(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / ilasm / codegen / Local.cs
blobf74170f5f66a377d2b832f09e2d50550355fef07
1 //
2 // Mono.ILASM.Local
3 //
4 // Author(s):
5 // Jackson Harper (Jackson@LatitudeGeo.com)
6 //
7 // (C) 2003 Jackson Harper, All rights reserved
8 //
11 using System;
14 namespace Mono.ILASM {
16 public class Local {
18 private int slot;
19 private string name;
20 private ITypeRef type;
22 public Local (int slot, ITypeRef type) : this (slot, null, type) {
26 public Local (int slot, string name, ITypeRef type) {
27 this.slot = slot;
28 this.name = name;
29 this.type = type;
32 public int Slot {
33 get { return slot; }
34 set { slot = value; }
37 public string Name {
38 get { return name; }
41 public ITypeRef Type {
42 get { return type; }
45 public PEAPI.Local GetPeapiLocal (CodeGen code_gen)
47 int ec = code_gen.Report.ErrorCount;
48 type.Resolve (code_gen);
50 if (code_gen.Report.ErrorCount > ec)
51 return null;
53 return new PEAPI.Local (name, type.PeapiType);