Browse Source

Fixed issue with input rules not being processed

Casper Thule 3 years ago
parent
commit
9c00d2fae2

+ 1 - 1
DSL_SemanticAdaptation/be.uantwerpen.ansymo.semanticadaptation.cg.cpp/src/be/uantwerpen/ansymo/semanticadaptation/cg/cpp/generation/CppGenerator.xtend

@@ -171,7 +171,7 @@ class CppGenerator extends SemanticAdaptationGenerator {
 			}
 
 			// Compile the in rules
-			val inRules = if(adap.out !== null) adap.in as InOutRules else null;
+			val inRules = if(adap.in !== null) adap.in as InOutRules else null;
 			val inRuleResult = compileInOutRuleBlocks(IORuleType.Input, inRules, adapClassName, adapInteralRefName,
 				mappedScalarVariables, SASVs, params, if(inVars !== null) inVars.value else null,
 				if(outVars !== null) outVars.value else null, if(crtlVars !== null) crtlVars.value else null,