Browse Source

Fix build.

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

7
ICSharpCode.Decompiler/Output/PlainTextOutput.cs

@ -104,8 +104,15 @@ namespace ICSharpCode.Decompiler @@ -104,8 +104,15 @@ namespace ICSharpCode.Decompiler
public void WriteReference(Disassembler.OpCodeInfo opCode, bool omitSuffix = false)
{
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