X-Git-Url: http://nitlanguage.org diff --git a/src/uml/uml_module.nit b/src/uml/uml_module.nit index 55d16f3..6e80325 100644 --- a/src/uml/uml_module.nit +++ b/src/uml/uml_module.nit @@ -20,7 +20,7 @@ import uml_class redef class UMLModel # Generates a UML package diagram from a `Model` - fun generate_package_uml: Streamable do + fun generate_package_uml: Writable do var tpl = new Template tpl.add "digraph G \{\n" tpl.add """ fontname = "Bitstream Vera Sans" @@ -42,7 +42,7 @@ end redef class Model # Returns a UML package diagram of `main` - fun tpl_module(ctx: ToolContext, main: MModule): Streamable do + fun tpl_module(ctx: ToolContext, main: MModule): Writable do return main.tpl_module(ctx, main) end end @@ -63,7 +63,7 @@ end redef class MEntity # Builds a dot UML package diagram entity from `self` - fun tpl_module(ctx: ToolContext, main: MModule): Streamable is abstract + fun tpl_module(ctx: ToolContext, main: MModule): Writable is abstract end redef class MClassDef @@ -90,11 +90,11 @@ redef class MClassDef end if mclass.arity > 0 then t.add "[" - var formal = mclass.intro.parameter_names - t.add formal.first - for i in [1 .. formal.length[ do + var mparameters = mclass.mparameters + t.add mparameters.first.name + for i in [1 .. mparameters.length[ do t.add ", " - t.add formal[i] + t.add mparameters[i].name end t.add "]" end