Browse Source

PDBGen: avoid assertion failure, if there are instructions that are not supported in C# (e.g. calli)

pull/2016/head
Siegfried Pammer 5 years ago
parent
commit
2f51f31257
  1. 3
      ICSharpCode.Decompiler/CSharp/OutputVisitor/InsertMissingTokensDecorator.cs

3
ICSharpCode.Decompiler/CSharp/OutputVisitor/InsertMissingTokensDecorator.cs

@ -46,6 +46,9 @@ namespace ICSharpCode.Decompiler.CSharp.OutputVisitor @@ -46,6 +46,9 @@ namespace ICSharpCode.Decompiler.CSharp.OutputVisitor
} else if (node is Comment comment) {
comment.SetStartLocation(locationProvider.Location);
}
if (node is ErrorExpression error) {
error.Location = locationProvider.Location;
}
base.StartNode(node);
}

Loading…
Cancel
Save