Skip to content

Commit

Permalink
Feeny compat.
Browse files Browse the repository at this point in the history
  • Loading branch information
kondziu committed Mar 13, 2021
1 parent fa46bba commit 25e0d88
Show file tree
Hide file tree
Showing 3 changed files with 1,718 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/bytecode/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,13 @@ impl UglyPrintWithContext for ProgramObject {
},

ProgramObject::Class(slots) => {
write_string!(sink, first!(indent, prefix_first_line), "Class");
write_string!(sink, first!(indent, prefix_first_line), "Class(");
let mut first = true;
for slot in slots {
write_string!(sink, 0, "\n");
slot.pretty_print_indent(sink, further!(indent))
if !first { write_string!(sink, 0, ", "); } else { first = false; }
slot.pretty_print(sink)
}
write_string!(sink, 0, ")");
},

ProgramObject::Method {name, arguments, locals, code: range} => {
Expand Down
Loading

0 comments on commit 25e0d88

Please sign in to comment.