Skip to content

Commit

Permalink
fix wrong type in metamodel graph
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornregnell committed May 21, 2024
1 parent 7ead68b commit 1a48509
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/metamodel-All-GENERATED.dot
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ digraph Metamodel {
Ent [ label = "{Ent|t: EntType\lid: String\l}" fontsize = 10]
Attr [ label = "{Attr[T]|t: AttrType[T]\lvalue: T\l}" fontsize = 10]
StrAttr [ label = "{StrAttr|t: StrAttrType\lvalue: String\l}" fontsize = 10]
IntAttr [ label = "{IntAttr|t: IntAttrType\lvalue: String\l}" fontsize = 10]
IntAttr [ label = "{IntAttr|t: IntAttrType\lvalue: Int\l}" fontsize = 10]
NodeType [ label = "{NodeType}" fontsize = 10]
AttrType [ label = "{AttrType[T]}" fontsize = 10]
RelType [ label = "{enum RelType|Binds, Deprecates,\lExcludes, Has,\lHelps, Hurts,\lImpacts, Implements,\lInherits, Interacts,\lPrecedes, Relates,\lRequires, Verifies\l}" fontsize = 9]
Expand Down
2 changes: 1 addition & 1 deletion docs/metamodel-Elem-GENERATED.dot
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ digraph Metamodel {
Ent [ label = "{Ent|t: EntType\lid: String\l}" fontsize = 10]
Attr [ label = "{Attr[T]|t: AttrType[T]\lvalue: T\l}" fontsize = 10]
StrAttr [ label = "{StrAttr|t: StrAttrType\lvalue: String\l}" fontsize = 10]
IntAttr [ label = "{IntAttr|t: IntAttrType\lvalue: String\l}" fontsize = 10]
IntAttr [ label = "{IntAttr|t: IntAttrType\lvalue: Int\l}" fontsize = 10]


Node_ -> Elem
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/02-meta-model.scala
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ object meta:
recordNode(ent) (ent, Seq("t: EntType","id: String").mkString("","\\l","\\l")),
recordNode(attr) ("Attr[T]", Seq("t: AttrType[T]","value: T").mkString("","\\l","\\l")),
recordNode(strAttr) (strAttr, Seq("t: StrAttrType","value: String").mkString("","\\l","\\l")),
recordNode(intAttr) (intAttr, Seq("t: IntAttrType","value: String").mkString("","\\l","\\l")),
recordNode(intAttr) (intAttr, Seq("t: IntAttrType","value: Int").mkString("","\\l","\\l")),
) else Seq()) ++ (if showElemType then Seq(
recordNode(nodeType) (nodeType),
recordNode(attrType) ("AttrType[T]"),
Expand Down

0 comments on commit 1a48509

Please sign in to comment.