[Xaml] Support import other xaml as the source of resource dictionary
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI.XamlBuild / src / public / XamlBuild / ILContext.cs
index eae1d25..474ad8c 100755 (executable)
@@ -26,7 +26,7 @@ namespace Tizen.NUI.Xaml.Build.Tasks
 {
     class ILContext
     {
-        public ILContext(ILProcessor il, MethodBody body, List<Instruction> insOfAddEvent, ModuleDefinition module, FieldDefinition parentContextValues = null)
+        public ILContext(ILProcessor il, MethodBody body, List<Instruction> insOfAddEvent, ModuleDefinition module, string embeddedResourceNameSpace, FieldDefinition parentContextValues = null)
         {
             IL = il;
             Body = body;
@@ -35,6 +35,7 @@ namespace Tizen.NUI.Xaml.Build.Tasks
             Variables = new Dictionary<IElementNode, VariableDefinition>();
             Scopes = new Dictionary<INode, Tuple<VariableDefinition, IList<string>>>();
             TypeExtensions = new Dictionary<INode, TypeReference>();
+            EmbeddedResourceNameSpace = embeddedResourceNameSpace;
             ParentContextValues = parentContextValues;
             Module = module;
         }
@@ -47,6 +48,8 @@ namespace Tizen.NUI.Xaml.Build.Tasks
 
         public Dictionary<INode, TypeReference> TypeExtensions { get; }
 
+        public string EmbeddedResourceNameSpace { get; }
+
         public FieldDefinition ParentContextValues { get; private set; }
 
         public object Root { get; set; } //FieldDefinition or VariableDefinition