Commit 2775c3be authored by Sudeep Kanav's avatar Sudeep Kanav
Browse files

YELLOW

refs 2248
parent 04d386a4
......@@ -55,7 +55,7 @@ import org.fortiss.tooling.kernel.utils.EcoreUtils;
* @author aravantinos
* @author $Author$
* @version $Rev$
* @ConQAT.Rating RED Hash: DCDC38E4D4141E33634A3AEEE5A69135
* @ConQAT.Rating YELLOW Hash: BDBC60B35F472E29B4CD3727907E060D
*/
// Small step transformation changing the expressions and references to variables
public class ArrayToStructureExpressions extends CacheSupportedTransformationBase {
......@@ -73,8 +73,7 @@ public class ArrayToStructureExpressions extends CacheSupportedTransformationBas
} else if(c instanceof FunctionCall && isArrayAccess((FunctionCall)c)) {
FunctionCall f = EcoreUtils.copy((FunctionCall)c);
((PredefinedFunction)f.getFunction()).setOperator(EOperator.MEMBER);
// TODO(HP,14)
// Getting the referred index.
// The {@link PredefinedFunction} member takes 2 arguments.
ITerm arg1 = f.getArguments().get(1);
if(arg1 instanceof IntConst) {
Var v = TermsFactory.eINSTANCE.createVar();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment