From e93ebc73fdf0e09b3391336a5697794593f5669e Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Tue, 8 Nov 2016 16:39:31 +0100 Subject: IML parser wip --- src/CompilerServices/CompilerServices.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/CompilerServices/CompilerServices.cs') 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 - + /// + /// Loc0 is the current graphic object and arg1 of loader is the current interface + /// + /// Il. public static void emitSetCurInterface(ILGenerator il){ il.Emit (OpCodes.Ldloc_0); il.Emit (OpCodes.Ldarg_1); -- cgit v1.3.1-4-g156e