[Ikvm-commit] ikvm/reflect/Emit ILGenerator.cs,1.41,1.42
Brought to you by:
jfrijters
From: Jeroen F. <jfr...@us...> - 2016-07-20 04:52:40
|
Update of /cvsroot/ikvm/ikvm/reflect/Emit In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv27113 Modified Files: ILGenerator.cs Log Message: ILGenerator.UsingNamespace() should apply to current scope. Index: ILGenerator.cs =================================================================== RCS file: /cvsroot/ikvm/ikvm/reflect/Emit/ILGenerator.cs,v retrieving revision 1.41 retrieving revision 1.42 diff -C2 -d -r1.41 -r1.42 *** ILGenerator.cs 1 Jul 2016 08:41:04 -0000 1.41 --- ILGenerator.cs 20 Jul 2016 04:52:37 -0000 1.42 *************** *** 201,204 **** --- 201,205 ---- internal readonly List<Scope> children = new List<Scope>(); internal readonly List<LocalBuilder> locals = new List<LocalBuilder>(); + internal readonly List<string> namespaces = new List<string>(); internal int startOffset; internal int endOffset; *************** *** 408,414 **** { #if !NO_SYMBOL_WRITER ! if (moduleBuilder.symbolWriter != null) { ! moduleBuilder.symbolWriter.UsingNamespace(usingNamespace); } #endif --- 409,415 ---- { #if !NO_SYMBOL_WRITER ! if (scope != null) { ! scope.namespaces.Add(usingNamespace); } #endif *************** *** 1140,1143 **** --- 1141,1148 ---- } } + foreach (string ns in scope.namespaces) + { + moduleBuilder.symbolWriter.UsingNamespace(ns); + } foreach (Scope child in scope.children) { |