Browse Source

fix code mappings for IL

pull/191/merge
Eusebiu Marcu 15 years ago
parent
commit
e184c73f2d
  1. 3
      ICSharpCode.Decompiler/Disassembler/ReflectionDisassembler.cs

3
ICSharpCode.Decompiler/Disassembler/ReflectionDisassembler.cs

@ -316,7 +316,8 @@ namespace ICSharpCode.Decompiler.Disassembler @@ -316,7 +316,8 @@ namespace ICSharpCode.Decompiler.Disassembler
public void DisassembleType(TypeDefinition type)
{
// create IL code mappings - used for debugger
this.CodeMappings = new Tuple<string, List<MemberMapping>>(type.FullName, new List<MemberMapping>());
if (this.CodeMappings == null)
this.CodeMappings = new Tuple<string, List<MemberMapping>>(type.FullName, new List<MemberMapping>());
// start writing IL
output.WriteDefinition(".class ", type);

Loading…
Cancel
Save