aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/Interface.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-08-09 23:59:33 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2016-08-09 23:59:33 +0200
commit799fec83c114d30652c96d2d245aaddd89f98db4 (patch)
treecd317de374d44c7c54507e6c517eabdb922a3834 /src/Interface.cs
parent19b2404da8c1c8723bb79e58787cd37386d01139 (diff)
move MSIL generator from IML into IMLReader.
modifié : src/CompilerServices/CompilerServices.cs rename : src/IMLInstantiatorBuilder.cs => src/IMLReader.cs modifié : src/Interface.cs
Diffstat (limited to 'src/Interface.cs')
-rw-r--r--src/Interface.cs12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/Interface.cs b/src/Interface.cs
index 57291370..f3d8c73b 100644
--- a/src/Interface.cs
+++ b/src/Interface.cs
@@ -200,7 +200,7 @@ namespace Crow
if (!Instantiators.ContainsKey(path))
BuildInstaciator(path);
tmp = Instantiators [path].CreateInstance ();
-
+
} catch (Exception ex) {
throw new Exception ("Error loading <" + path + ">:", ex);
}
@@ -220,14 +220,8 @@ namespace Crow
#endif
try {
- using (Stream stream = GetStreamFromPath (path)) {
- using (IMLInstantiatorBuilder itr = new IMLInstantiatorBuilder (stream)){
- itr.ReadRootType();
- itr.InitEmitter();
- CompilerServices.BuildInstanciator(itr, itr.RootType);
- itr.Read();//close tag
- Instantiators[path] = itr.GetInstanciator();
- }
+ using (IMLReader itr = new IMLReader (path)){
+ Instantiators[path] = itr.GetInstanciator();
}
} catch (Exception ex) {
throw new Exception ("Error loading <" + path + ">:", ex);