Permalink
Browse files

Packfile: update dumper for Subroutine and Multi

  • Loading branch information...
Benabik committed Aug 9, 2012
1 parent 73b1149 commit e2fc30b18f2250dd1a562eebdbc3d610f71b5453
Showing with 18 additions and 2 deletions.
  1. +18 −2 src/PACT/Packfile.winxed
View
@@ -252,8 +252,19 @@ namespace PACT.Packfile {
}
function __dump(var dumper, string label) {
- print(self.name, ': ');
- dumper.dump(label, self.ops);
+ :(string indent, string subindent) = dumper.newIndent();
+ say('{');
+
+ say(indent, 'name: "', self.name, '",');
+
+ print(indent, 'multi_sig: ');
+ dumper.dump('multi_sig', self.multi_sig);
+
+ print(",\n", indent, 'ops: ');
+ dumper.dump('ops', self.ops);
+
+ print("\n", subindent, '}');
+ dumper.deleteIndent();
}
}
@@ -265,6 +276,11 @@ namespace PACT.Packfile {
self.name = name;
self.canidates = [];
}
+
+ function __dump(var dumper, string label) {
+ print(self.name, ': ');
+ dumper.dump('canidates', self.canidates);
+ }
}
// Below are in Subroutine.ops

0 comments on commit e2fc30b

Please sign in to comment.