Unused edges lead to errors in generated project
Cinco Version: 2.0.1
When an unused edge is present in the MGL, the sources in src-gen/
do not compile.
Minimal reproducible Example:
id info.scce.cinco.product.somegraph.mglid
stylePath "model/SomeGraph.style"
graphModel SomeGraphGraphModel {
diagramExtension "somegraph"
containableElements(Foo)
}
container Foo {
style labeledCircle("${label}")
attr EString as label
incomingEdges (FooTransition)
outgoingEdges (FooTransition)
}
abstract edge Transition {}
edge FooTransition extends Transition {style simpleArrow}
// unused edge
edge BarTransition extends Transition {style simpleArrow}
This leads to the following errors in info.scce.cinco.product.somegraph.mglid.somegraph.BarTransition
Description Resource Path Location Type
The return type is incompatible with Transition.getRootElement() BarTransition.java /info.scce.cinco.product.somegraph/src-gen/info/scce/cinco/product/somegraph/mglid/somegraph line 85 Java Problem
The return type is incompatible with Transition.getSourceElement() BarTransition.java /info.scce.cinco.product.somegraph/src-gen/info/scce/cinco/product/somegraph/mglid/somegraph line 93 Java Problem
The return type is incompatible with Transition.getTargetElement() BarTransition.java /info.scce.cinco.product.somegraph/src-gen/info/scce/cinco/product/somegraph/mglid/somegraph line 101 Java Problem
The return type is incompatible with TransitionImpl.getRootElement() BarTransitionImpl.java /info.scce.cinco.product.somegraph/src-gen/info/scce/cinco/product/somegraph/mglid/somegraph/impl line 131 Java Problem
The return type is incompatible with TransitionImpl.getSourceElement() BarTransitionImpl.java /info.scce.cinco.product.somegraph/src-gen/info/scce/cinco/product/somegraph/mglid/somegraph/impl line 142 Java Problem
The return type is incompatible with TransitionImpl.getTargetElement() BarTransitionImpl.java /info.scce.cinco.product.somegraph/src-gen/info/scce/cinco/product/somegraph/mglid/somegraph/impl line 152 Java Problem