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

GREEN

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