From 6b47a9b982de696c90740ad4c80d366b86617454 Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Wed, 21 Dec 2016 10:00:03 +0100 Subject: [PATCH] Context.StorePropertyBinding --- src/IML/Context.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/IML/Context.cs b/src/IML/Context.cs index 8679dd4c..4c664700 100644 --- a/src/IML/Context.cs +++ b/src/IML/Context.cs @@ -72,7 +72,19 @@ namespace Crow.IML public Type CurrentNodeType { get { return nodesStack.Peek().CrowType; } } + public void StorePropertyBinding(NodeAddress origNA, string origMember, NodeAddress destNA, string destMember){ + Dictionary> nodeBindings = null; + if (Bindings.ContainsKey (origNA)) + nodeBindings = Bindings [origNA]; + else { + nodeBindings = new Dictionary> (); + Bindings [origNA] = nodeBindings; + } + if (!nodeBindings.ContainsKey (origMember)) + nodeBindings [origMember] = new List (); + nodeBindings [origMember].Add (new MemberAddress (destNA, destMember)); + } void initILGen () { il.DeclareLocal (typeof (GraphicObject)); -- 2.47.3