Merged into single file, added assertions
[mono.git] / mcs / class / IKVM.Reflection / LocalVariableInfo.cs
index 9575c4f59ec20faccd7b7d9f0bf0b8d867403504..e7f056781c2ad321ae6a7627be6f070b0bdf2b81 100644 (file)
@@ -1,5 +1,5 @@
 /*
-  Copyright (C) 2009 Jeroen Frijters
+  Copyright (C) 2009-2011 Jeroen Frijters
 
   This software is provided 'as-is', without any express or implied
   warranty.  In no event will the authors be held liable for any damages
@@ -30,12 +30,14 @@ namespace IKVM.Reflection
                private readonly int index;
                private readonly Type type;
                private readonly bool pinned;
+               private readonly CustomModifiers customModifiers;
 
-               internal LocalVariableInfo(int index, Type type, bool pinned)
+               internal LocalVariableInfo(int index, Type type, bool pinned, CustomModifiers customModifiers)
                {
                        this.index = index;
                        this.type = type;
                        this.pinned = pinned;
+                       this.customModifiers = customModifiers;
                }
 
                public bool IsPinned
@@ -52,5 +54,10 @@ namespace IKVM.Reflection
                {
                        get { return type; }
                }
+
+               public CustomModifiers __GetCustomModifiers()
+               {
+                       return customModifiers;
+               }
        }
 }