diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-10-18 11:38:37 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-10-18 11:41:06 +0200 |
| commit | 43a1802b884782921ad3b61fc63bcfefadb627bb (patch) | |
| tree | ebdc55762a3baf8b416abdf39244309ff99ac503 /src/CompilerServices/CompilerServices.cs | |
| parent | 10554f8a78a6981f5e49e46a32b3eee5911b872e (diff) | |
| parent | 7c00385bda3a9a913050480fada2efab8d6d3090 (diff) | |
Merge branch 'master' into CrowIDE
Diffstat (limited to 'src/CompilerServices/CompilerServices.cs')
| -rw-r--r-- | src/CompilerServices/CompilerServices.cs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/CompilerServices/CompilerServices.cs b/src/CompilerServices/CompilerServices.cs index 26a185ed..96f12963 100644 --- a/src/CompilerServices/CompilerServices.cs +++ b/src/CompilerServices/CompilerServices.cs @@ -15,6 +15,8 @@ namespace Crow static MethodInfo miAddBinding = typeof(GraphicObject).GetMethod ("BindMember"); static FieldInfo miSetCurIface = typeof(GraphicObject).GetField ("currentInterface", BindingFlags.NonPublic | BindingFlags.Instance); + static MethodInfo miFindByName = typeof (GraphicObject).GetMethod ("FindByName"); + #region ValueChange Reflexion member info static MethodInfo stringEquals = typeof (string).GetMethod @@ -177,7 +179,7 @@ namespace Crow continue; //register handler for event if (b.Target.Method == null) { - Debug.WriteLine ("\tError: Handler Method not found: " + b.ToString ()); + //Debug.WriteLine ("\tError: Handler Method not found: " + b.ToString ()); continue; } try { @@ -190,7 +192,7 @@ namespace Crow #endif b.Resolved = true; } catch (Exception ex) { - Debug.WriteLine ("\tERROR: " + ex.ToString ()); + //Debug.WriteLine ("\tERROR: " + ex.ToString ()); } continue; } @@ -438,11 +440,10 @@ namespace Crow il.Emit (OpCodes.Ldarg_0); //load sender ref onto the stack string [] lopParts = lop.Split (new char [] { '.' }); - if (lopParts.Length > 1) {//should search also for member of es.Source - MethodInfo FindByNameMi = typeof (GraphicObject).GetMethod ("FindByName"); + if (lopParts.Length > 1) {//should search also for member of es.Source for (int j = 0; j < lopParts.Length - 1; j++) { il.Emit (OpCodes.Ldstr, lopParts [j]); - il.Emit (OpCodes.Callvirt, FindByNameMi); + il.Emit (OpCodes.Callvirt, miFindByName); } } |