Browse Source

Fix links to catch variable.

pull/863/head
Siegfried Pammer 8 years ago
parent
commit
301bedef6d
  1. 1
      ICSharpCode.Decompiler/CSharp/StatementBuilder.cs

1
ICSharpCode.Decompiler/CSharp/StatementBuilder.cs

@ -211,6 +211,7 @@ namespace ICSharpCode.Decompiler.CSharp
foreach (var handler in inst.Handlers) { foreach (var handler in inst.Handlers) {
var catchClause = new CatchClause(); var catchClause = new CatchClause();
var v = handler.Variable; var v = handler.Variable;
catchClause.AddAnnotation(new ILVariableResolveResult(v, v.Type));
if (v != null) { if (v != null) {
if (v.StoreCount > 1 || v.LoadCount > 0 || v.AddressCount > 0) { if (v.StoreCount > 1 || v.LoadCount > 0 || v.AddressCount > 0) {
catchClause.VariableName = v.Name; catchClause.VariableName = v.Name;

Loading…
Cancel
Save