Browse Source

Exclude artificial ILInstructions from PDB generation

pull/2333/head
Siegfried Pammer 4 years ago
parent
commit
7e913e056b
  1. 2
      ICSharpCode.Decompiler/CSharp/SequencePointBuilder.cs

2
ICSharpCode.Decompiler/CSharp/SequencePointBuilder.cs

@ -462,6 +462,8 @@ namespace ICSharpCode.Decompiler.CSharp @@ -462,6 +462,8 @@ namespace ICSharpCode.Decompiler.CSharp
{
if (inst.ILRangeIsEmpty)
return false;
if (inst.Parent == null)
return false;
return !(inst is BlockContainer || inst is Block);
}

Loading…
Cancel
Save