Browse Source

[TypeSystem] Cecil loader can now take the loaded assembly location.

newNRvisualizers
Mike Krüger 14 years ago
parent
commit
5f60958a7e
  1. 3
      ICSharpCode.NRefactory/TypeSystem/CecilLoader.cs

3
ICSharpCode.NRefactory/TypeSystem/CecilLoader.cs

@ -105,7 +105,7 @@ namespace ICSharpCode.NRefactory.TypeSystem @@ -105,7 +105,7 @@ namespace ICSharpCode.NRefactory.TypeSystem
/// </summary>
/// <returns>IProjectContent that represents the assembly</returns>
[CLSCompliant(false)]
public IUnresolvedAssembly LoadAssembly(AssemblyDefinition assemblyDefinition)
public IUnresolvedAssembly LoadAssembly(AssemblyDefinition assemblyDefinition, string location = null)
{
if (assemblyDefinition == null)
throw new ArgumentNullException("assemblyDefinition");
@ -166,6 +166,7 @@ namespace ICSharpCode.NRefactory.TypeSystem @@ -166,6 +166,7 @@ namespace ICSharpCode.NRefactory.TypeSystem
typeSystemTranslationTable[this.currentAssembly] = assemblyDefinition;
var result = this.currentAssembly;
result.Location = location;
this.currentAssembly = null;
this.currentModule = null;
return result;

Loading…
Cancel
Save