public static void WriteOffsetReference(ITextOutput writer, Instruction instruction, MethodDef method, TextTokenType tokenType = TextTokenType.Label) { var r = instruction == null ? null : method == null ? (object)instruction : new InstructionReference(method, instruction); writer.WriteReference(DnlibExtensions.OffsetToString(instruction.GetOffset()), r, tokenType); }
public static void WriteOffsetReference(ITextOutput writer, Instruction instruction, TextTokenType tokenType = TextTokenType.Label) { writer.WriteReference(DnlibExtensions.OffsetToString(instruction.GetOffset()), instruction, tokenType); }