public AssemblerMethod(Method method, AssemblerLine[] lines) { this.method = method; this.lines = lines; addresses = new ArrayList(); ArrayList contents = new ArrayList(); foreach (AssemblerLine line in lines) { if (line.Label != null) { if (end_row > 0) { contents.Add(""); end_row++; } else { start_row++; } contents.Add(String.Format("{0}:", line.Label)); end_row++; } addresses.Add(new LineEntry(line.Address, 0, ++end_row)); contents.Add(String.Format(" {0:x} {1}", line.Address, line.Text)); } string[] text = new string [contents.Count]; contents.CopyTo(text); buffer = new SourceBuffer(method.Name, text); }
public SourceAddress(SourceFile file, SourceBuffer buffer, int row, int line_offset, int line_range) { this.file = file; this.buffer = buffer; this.row = row; this.line_offset = line_offset; this.line_range = line_range; }
public AssemblerMethod(Method method, AssemblerLine[] lines) { this.method = method; this.lines = lines; addresses = new ArrayList (); ArrayList contents = new ArrayList (); foreach (AssemblerLine line in lines) { if (line.Label != null) { if (end_row > 0) { contents.Add (""); end_row++; } else start_row++; contents.Add (String.Format ("{0}:", line.Label)); end_row++; } addresses.Add (new LineEntry (line.Address, 0, ++end_row)); contents.Add (String.Format (" {0:x} {1}", line.Address, line.Text)); } string[] text = new string [contents.Count]; contents.CopyTo (text); buffer = new SourceBuffer (method.Name, text); }
public SourceAddress(SourceFile file, SourceBuffer buffer, int row, int line_offset, int line_range, SourceRange?source_range) : this(file, buffer, row, line_offset, line_range) { this.source_range = source_range; }
public WrapperMethodSource(WrapperMethod wrapper) { this.wrapper = wrapper; string[] cil_code = wrapper.Entry.CILCode.Split ('\n'); buffer = new SourceBuffer (wrapper.Name, cil_code); }
public SourceAddress(SourceFile file, SourceBuffer buffer, int row, int line_offset, int line_range, SourceRange? source_range) : this(file, buffer, row, line_offset, line_range) { this.source_range = source_range; }