examples: intro a README file to emscripten examples
[nit.git] / src / metrics / model_hyperdoc.nit
index 3f29c64..ae7fccf 100644 (file)
@@ -23,7 +23,7 @@ import phase
 import frontend
 
 redef class ToolContext
-       var model_hyperdoc_phase = new ModelHyperdocPhase(self, null)
+       var model_hyperdoc_phase: Phase = new ModelHyperdocPhase(self, null)
 end
 
 private class ModelHyperdocPhase
@@ -39,7 +39,7 @@ end
 # The generated file contains the description of each entity of the model
 fun generate_model_hyperdoc(toolcontext: ToolContext, model: Model)
 do
-       var buf = new Buffer
+       var buf = new FlatBuffer
        buf.append("<html>\n<body>\n")
        buf.append("<h1>Model</h1>\n")