public override void dump(PrettyPrinter printer) { printer.addLine("{Code:}"); printer.indentLevel++; printer.addLine("arg_count: " + arg_count.ToString()); printer.addLine("local_count: " + local_count.ToString()); printer.addLine("stack_size: " + stack_size.ToString()); printer.addLine("flags: " + flags.ToString("X")); printer.addLine("Code:"); printer.indentLevel++; assembly.dump(printer); printer.indentLevel--; printer.addLine("const:"); printer.addItem(consts); printer.addLine("names:"); printer.addItem(names); printer.addLine("varNames:"); printer.addItem(varNames); printer.addLine("freeVars:"); printer.addItem(freeVars); printer.addLine("cellVars:"); printer.addItem(cellVars); printer.addLine("filename: "); printer.addItem(filename); printer.addLine("name: "); printer.addItem(name); printer.addLine("firstLineNumber: " + firstLineNumber.ToString()); printer.addLine("lnotab:"); printer.addItem(lnotab); printer.indentLevel--; printer.addLine("{end Code}"); }
public override void dump(PrettyPrinter printer) { printer.addLine("{Tuple " + size.ToString() + ":dec}"); for (int i = 0; i < size; i++) { printer.addItem(items[i]); } printer.addLine("{end Tuple}"); }
public void dump(PrettyPrinter printer) { string indent = printer.getIndent(); printer.addLine("magic: " + magic.ToString("X")); printer.addLine("crlf: " + crlf.ToString("X")); printer.addLine("modification_timestamp: " + modification_timestamp.ToString("X")); printer.addLine("body:"); printer.addItem(body); }