* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / ilasm / codegen / Local.cs
index 0f4562e165174818b90cf4eb35a2676178ffcfd1..2951fa0bfa98480885aafef8bffe67c542cfaf9b 100644 (file)
@@ -17,13 +17,13 @@ namespace Mono.ILASM {
 
                 private int slot;
                 private string name;
-                private ITypeRef type;
+                private BaseTypeRef type;
 
-                public Local (int slot, ITypeRef type) : this (slot, null, type) {
+                public Local (int slot, BaseTypeRef type) : this (slot, null, type) {
 
                 }
 
-                public Local (int slot, string name, ITypeRef type) {
+                public Local (int slot, string name, BaseTypeRef type) {
                         this.slot = slot;
                         this.name = name;
                         this.type = type;
@@ -38,20 +38,20 @@ namespace Mono.ILASM {
                         get { return name; }
                 }
 
-                public ITypeRef Type {
+                public BaseTypeRef Type {
                         get { return type; }
                 }
 
                 public PEAPI.Local GetPeapiLocal (CodeGen code_gen)
                 {
-                        int ec = code_gen.Report.ErrorCount;
-                        IGenericTypeRef gtr = type as IGenericTypeRef;
+                        int ec = Report.ErrorCount;
+                        BaseGenericTypeRef gtr = type as BaseGenericTypeRef;
                         if (gtr == null)
                                 type.Resolve (code_gen);
                         else
                                 gtr.ResolveNoTypeSpec (code_gen);
 
-                        if (code_gen.Report.ErrorCount > ec)
+                        if (Report.ErrorCount > ec)
                                 return null;
 
                         return new PEAPI.Local (name, type.PeapiType);