lib/standard/stream: Renamed streams for more explicit denomination
[nit.git] / contrib / pep8analysis / src / pep8analysis_web.nit
index dacc9ff..4d9d0aa 100644 (file)
@@ -20,8 +20,8 @@
 # analysis results. The result graph will be sent to the JavaScript function
 # `show_graph` with the source of the graph in Graphviz's dot.
 module pep8analysis_web is
-       cpp_compiler_option("--std=c++11 --bind")
-       c_linker_option("--bind")
+       cppflags "--std=c++11 --bind"
+       ldflags "--bind"
 end
 
 import emscripten
@@ -50,7 +50,7 @@ redef class AnalysisManager
        do
                sys.suggest_garbage_collection
 
-               var stream = new StringIStream(src)
+               var stream = new StringReader(src)
                var ast = build_ast("web", stream)
                if ast == null then return
 
@@ -95,7 +95,7 @@ redef class AnalysisManager
                print_notes
                if notes.is_empty then print "Success: Nothing wrong detected"
 
-               var of = new StringOStream
+               var of = new StringWriter
                cfg.print_dot(of, false)
                of.close
                show_graph(of.to_s)