Browse Source

Fix build.

pull/1464/head
Siegfried Pammer 6 years ago
parent
commit
663ba0c5a8
  1. 9
      ICSharpCode.Decompiler/Output/PlainTextOutput.cs

9
ICSharpCode.Decompiler/Output/PlainTextOutput.cs

@ -104,7 +104,14 @@ namespace ICSharpCode.Decompiler @@ -104,7 +104,14 @@ namespace ICSharpCode.Decompiler
public void WriteReference(Disassembler.OpCodeInfo opCode, bool omitSuffix = false)
{
Write(opCode.Name);
if (omitSuffix) {
int lastDot = opCode.Name.LastIndexOf('.');
if (lastDot > 0) {
Write(opCode.Name.Remove(lastDot + 1));
}
} else {
Write(opCode.Name);
}
}
public void WriteReference(PEFile module, EntityHandle handle, string text, bool isDefinition = false)

Loading…
Cancel
Save