pep8analysis: print CFG as dot graph to OStream
authorAlexis Laferrière <alexis.laf@xymus.net>
Sun, 15 Jun 2014 13:28:40 +0000 (09:28 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Tue, 17 Jun 2014 18:53:20 +0000 (14:53 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

contrib/pep8analysis/src/cfg/dot_printer.nit

index b4fe76e..9c2fe38 100644 (file)
@@ -1,7 +1,7 @@
 import cfg_base
 
 redef class CFG
-       fun print_dot( f: OFStream, long: Bool )
+       fun print_dot( f: OStream, long: Bool )
        do
                f.write("digraph \{\n")
                f.write("charset=latin1\n")
@@ -13,7 +13,7 @@ redef class CFG
 end
 
 redef class BasicBlock
-       fun print_dot_nodes( f: OFStream, long: Bool )
+       fun print_dot_nodes( f: OStream, long: Bool )
        do
                var lbl
                if long then
@@ -38,7 +38,7 @@ redef class BasicBlock
        fun dot_node_header: String do return ""
        fun dot_node_footer: String do return ""
 
-       fun print_dot_edges( f: OFStream, long: Bool )
+       fun print_dot_edges( f: OStream, long: Bool )
        do
                for s in successors do
                        f.write( "{name} -> {s.name}\n" )