瀏覽代碼

fixed code generator problem with named interface scopes

Axel Terfloth 9 年之前
父節點
當前提交
51520bedf5

+ 4 - 0
plugins/org.yakindu.sct.generator.c/src/org/yakindu/sct/generator/c/ExpressionCode.xtend

@@ -73,6 +73,10 @@ class ExpressionCode {
 
 
 	def dispatch CharSequence code(Expression it, VariableDefinition target) '''«target.access»'''
 	def dispatch CharSequence code(Expression it, VariableDefinition target) '''«target.access»'''
 
 
+	def dispatch CharSequence code(ElementReferenceExpression it, VariableDefinition target) '''«target.access»'''
+
+	def dispatch CharSequence code(FeatureCall it, VariableDefinition target) '''«target.access»'''
+
 	def dispatch CharSequence code(ElementReferenceExpression it, OperationDefinition target) '''«target.access»(«scHandle»«FOR arg : args BEFORE ', ' SEPARATOR ', '»«arg.
 	def dispatch CharSequence code(ElementReferenceExpression it, OperationDefinition target) '''«target.access»(«scHandle»«FOR arg : args BEFORE ', ' SEPARATOR ', '»«arg.
 		code»«ENDFOR»)'''
 		code»«ENDFOR»)'''