diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-08-09 23:59:33 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-08-10 02:26:00 +0200 |
| commit | 5a03df5faeda15e2d99c4c656eb62ed21817fdf6 (patch) | |
| tree | dd2b4451e30c7532b00970061fae751dcda6b8d8 /src/Interface.cs | |
| parent | 19b2404da8c1c8723bb79e58787cd37386d01139 (diff) | |
move MSIL generator from IML into IMLReader.
modifié : src/CompilerServices/CompilerServices.cs
rename : src/IMLInstantiatorBuilder.cs => src/IMLReader.cs
modifié : src/Interface.cs
modifié : Crow.csproj
Diffstat (limited to 'src/Interface.cs')
| -rw-r--r-- | src/Interface.cs | 12 |
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); |