Commit 568f6808 authored by Hernan Ponce de Leon's avatar Hernan Ponce de Leon
Browse files

GREEN

parent 412c7c4e
......@@ -47,7 +47,7 @@ import org.fortiss.pragmatictransformation.service.IPragmaticTransformation;
*
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 93B8CC43028DCA8847E2EFD690059AC0
* @ConQAT.Rating GREEN Hash: F9216496DF6E5B5360E3A5969C0DD319
*/
public class RemoveStructureFromExpression extends CacheSupportedTransformationBase {
......@@ -71,9 +71,8 @@ public class RemoveStructureFromExpression extends CacheSupportedTransformationB
return toBeIteratedAgain ? c : null;
} else if(c instanceof FunctionCall && isStructureAccess((FunctionCall)c)) {
FunctionCall fc = (FunctionCall)c;
Var lhs;
Var arg2 = (Var)fc.getArguments().get(1);
// Structure access function call has 2 arguments.
Var arg2 = (Var)fc.getArguments().get(1);
ITerm arg1 = fc.getArguments().get(0);
if(arg1 instanceof FunctionCall) {
......@@ -101,7 +100,7 @@ public class RemoveStructureFromExpression extends CacheSupportedTransformationB
return rE;
}
lhs =
Var lhs =
(Var)((arg1 instanceof Var) ? arg1 : deferredTransformation
.buildTransformation(arg1));
......
Supports Markdown
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