Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2015-07-05 10:18:06 -0400
committerHenrik Rentz-Reichert2015-07-05 10:18:06 -0400
commitc1b9ca1eda69114640c54b05bf8988ea686e765d (patch)
tree3e31f1e907f693d5fbce24bb1469ba730db81eb7 /plugins/org.eclipse.etrice.core.genmodel.fsm
parent8ac4564d7f2c915e9d164820313055f0242b654c (diff)
downloadorg.eclipse.etrice-c1b9ca1eda69114640c54b05bf8988ea686e765d.tar.gz
org.eclipse.etrice-c1b9ca1eda69114640c54b05bf8988ea686e765d.tar.xz
org.eclipse.etrice-c1b9ca1eda69114640c54b05bf8988ea686e765d.zip
[generator.fsm, generator.c, genmodel.fsm] avoid warnings in generated code
Diffstat (limited to 'plugins/org.eclipse.etrice.core.genmodel.fsm')
-rw-r--r--plugins/org.eclipse.etrice.core.genmodel.fsm/src/org/eclipse/etrice/core/genmodel/fsm/fsmgen/impl/TransitionChainImpl.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/org.eclipse.etrice.core.genmodel.fsm/src/org/eclipse/etrice/core/genmodel/fsm/fsmgen/impl/TransitionChainImpl.java b/plugins/org.eclipse.etrice.core.genmodel.fsm/src/org/eclipse/etrice/core/genmodel/fsm/fsmgen/impl/TransitionChainImpl.java
index 7d279ea9b..b54eb5b3a 100644
--- a/plugins/org.eclipse.etrice.core.genmodel.fsm/src/org/eclipse/etrice/core/genmodel/fsm/fsmgen/impl/TransitionChainImpl.java
+++ b/plugins/org.eclipse.etrice.core.genmodel.fsm/src/org/eclipse/etrice/core/genmodel/fsm/fsmgen/impl/TransitionChainImpl.java
@@ -216,7 +216,15 @@ public class TransitionChainImpl extends MinimalEObjectImpl.Container implements
ExpandedModelComponent emc = getExpandedModelComponent();
StringBuilder result = new StringBuilder();
+
+ /* TODO: the next generated code declares a correctly typed variable for the generic data.
+ * It is hard to determine whether it is actually needed though.
+ * It is needed in non-initial transitions with action code that are not data driven.
+ * It might be needed in condition expressions. But this code would have to be parsed
+ * with uncertain result (because of e.g. comments).
+ */
result.append(tcv.genTypedData(this));
+
genChainCode(getTransition(), emc, tcv, result);
return result.toString();
}

Back to the top