Browse Source

Improve formatting of constrained CallInstructions.

pull/870/merge
Siegfried Pammer 8 years ago
parent
commit
4b12a7e983
  1. 3
      ICSharpCode.Decompiler/IL/Instructions/CallInstruction.cs

3
ICSharpCode.Decompiler/IL/Instructions/CallInstruction.cs

@ -77,8 +77,9 @@ namespace ICSharpCode.Decompiler.IL @@ -77,8 +77,9 @@ namespace ICSharpCode.Decompiler.IL
public override void WriteTo(ITextOutput output, ILAstWritingOptions options)
{
if (ConstrainedTo != null) {
output.Write("constrained.");
output.Write("constrained[");
ConstrainedTo.WriteTo(output, ILNameSyntax.ShortTypeName);
output.Write("].");
}
if (IsTail)
output.Write("tail.");

Loading…
Cancel
Save