Browse Source

Reset context after PrettifyAssignments.Run

pull/1165/head
Siegfried Pammer 7 years ago
parent
commit
9f883177da
  1. 6
      ICSharpCode.Decompiler/CSharp/Transforms/PrettifyAssignments.cs

6
ICSharpCode.Decompiler/CSharp/Transforms/PrettifyAssignments.cs

@ -123,7 +123,11 @@ namespace ICSharpCode.Decompiler.CSharp.Transforms @@ -123,7 +123,11 @@ namespace ICSharpCode.Decompiler.CSharp.Transforms
void IAstTransform.Run(AstNode node, TransformContext context)
{
this.context = context;
node.AcceptVisitor(this);
try {
node.AcceptVisitor(this);
} finally {
this.context = null;
}
}
}
}

Loading…
Cancel
Save