aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/CompilerServices
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-11-08 16:39:31 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-11-08 16:39:31 +0100
commite93ebc73fdf0e09b3391336a5697794593f5669e (patch)
treeb906baca876c8b8d1caf1b8e7d57fcfa4eddaf29 /src/CompilerServices
parent4f00292638f779871aa907cda821ed7a752a9de9 (diff)
IML parser wip
Diffstat (limited to 'src/CompilerServices')
-rw-r--r--src/CompilerServices/CompilerServices.cs14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/CompilerServices/CompilerServices.cs b/src/CompilerServices/CompilerServices.cs
index 48f95a8a..d8f113e2 100644
--- a/src/CompilerServices/CompilerServices.cs
+++ b/src/CompilerServices/CompilerServices.cs
@@ -27,6 +27,15 @@ namespace Crow
GetMethod ("get_Item", new Type[] { typeof(string) });
public static FieldInfo fldItemTemplates = typeof(TemplatedGroup).GetField("ItemTemplates");
public static MethodInfo miCreateExpDel = typeof(ItemTemplate).GetMethod ("CreateExpandDelegate");
+ public static MethodInfo miLoadDefaultVals = typeof (GraphicObject).GetMethod ("loadDefaultValues");
+ public static PropertyInfo piStyle = typeof (GraphicObject).GetProperty ("Style");
+ #region tree handling methods
+ internal static MethodInfo miSetChild = typeof (Container).GetMethod ("SetChild");
+ internal static MethodInfo miAddChild = typeof (Group).GetMethod ("AddChild");
+ internal static MethodInfo miLoadTmp = typeof (TemplatedControl).GetMethod ("loadTemplate", BindingFlags.Instance | BindingFlags.NonPublic);
+ internal static MethodInfo miSetContent = typeof (TemplatedContainer).GetProperty ("Content").GetSetMethod ();
+ internal static MethodInfo miAddItem = typeof (TemplatedGroup).GetMethod ("AddItem", BindingFlags.Instance | BindingFlags.Public);
+ #endregion
#region ValueChange Reflexion member info
static EventInfo eiValueChange = typeof (IValueChange).GetEvent ("ValueChanged");
@@ -37,7 +46,10 @@ namespace Crow
static MethodInfo miValueChangeAdd = eiValueChange.GetAddMethod ();
#endregion
-
+ /// <summary>
+ /// Loc0 is the current graphic object and arg1 of loader is the current interface
+ /// </summary>
+ /// <param name="il">Il.</param>
public static void emitSetCurInterface(ILGenerator il){
il.Emit (OpCodes.Ldloc_0);
il.Emit (OpCodes.Ldarg_1);