Browse Source

ILAst: show if block container is a loop container.

pull/909/merge
Daniel Grunwald 8 years ago
parent
commit
f21d48317c
  1. 6
      ICSharpCode.Decompiler/IL/Instructions/BlockContainer.cs

6
ICSharpCode.Decompiler/IL/Instructions/BlockContainer.cs

@ -117,6 +117,12 @@ namespace ICSharpCode.Decompiler.IL @@ -117,6 +117,12 @@ namespace ICSharpCode.Decompiler.IL
{
output.WriteDefinition("BlockContainer", this);
output.Write(' ');
if (entryPoint.IncomingEdgeCount > 1) {
output.Write("(loop) ");
}
if (entryPoint.Instructions.Count == 1 && entryPoint.Instructions[0] is SwitchInstruction) {
output.Write("(switch) ");
}
output.MarkFoldStart("{...}");
output.WriteLine("{");
output.Indent();

Loading…
Cancel
Save