|
@@ -49,6 +49,7 @@ import org.yakindu.sct.model.stext.stext.EventRaisingExpression
|
|
|
import org.yakindu.sct.model.stext.stext.EventValueReferenceExpression
|
|
|
import org.yakindu.sct.model.stext.stext.OperationDefinition
|
|
|
import org.yakindu.sct.model.stext.stext.VariableDefinition
|
|
|
+import org.yakindu.base.types.Operation
|
|
|
|
|
|
class ExpressionCode {
|
|
|
|
|
@@ -75,9 +76,19 @@ class ExpressionCode {
|
|
|
def dispatch CharSequence code(ElementReferenceExpression it, OperationDefinition target) '''«target.access»(«scHandle»«FOR arg : args BEFORE ', ' SEPARATOR ', '»«arg.
|
|
|
code»«ENDFOR»)'''
|
|
|
|
|
|
+ def dispatch CharSequence code(ElementReferenceExpression it, Operation target) '''«target.access»(«FOR arg : args SEPARATOR ', '»«arg.
|
|
|
+ code»«ENDFOR»)'''
|
|
|
+
|
|
|
+ def dispatch CharSequence code(ElementReferenceExpression it, org.yakindu.base.types.Property target) '''«target.access»'''
|
|
|
+
|
|
|
def dispatch CharSequence code(FeatureCall it, OperationDefinition target) '''«target.access»(«scHandle»«FOR arg : args BEFORE ', ' SEPARATOR ', '»«arg.
|
|
|
code»«ENDFOR»)'''
|
|
|
|
|
|
+ def dispatch CharSequence code(FeatureCall it, Operation target) '''«it.owner.code».«target.access»(«FOR arg : args SEPARATOR ', '»«arg.
|
|
|
+ code»«ENDFOR»)'''
|
|
|
+
|
|
|
+ def dispatch CharSequence code(FeatureCall it, org.yakindu.base.types.Property target) '''«it.owner.code».«target.access»'''
|
|
|
+
|
|
|
/* HANDLING LITERALS */
|
|
|
def dispatch CharSequence code(Literal it) '''#error unknown literal type «getClass().name» '''
|
|
|
|