Commit b5179999 authored by jacosro's avatar jacosro
Browse files

Remove METHOD_CALL_RETURN type

parent 5830c240
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -268,7 +268,7 @@ class MethodCallReplacerVisitor extends VoidVisitorAdapter<Context> {
        GraphNode<EmptyStmt> declarationOutputNode = optionalDeclarationOutputNode.get();

        // If method has output node, then create output call node and link them
        GraphNode<EmptyStmt> callReturnNode = sdg.addNode("output", new EmptyStmt(), TypeNodeFactory.fromType(NodeType.METHOD_CALL_RETURN));
        GraphNode<EmptyStmt> callReturnNode = sdg.addNode("output", new EmptyStmt(), TypeNodeFactory.fromType(NodeType.METHOD_OUTPUT));

        sdg.addControlDependencyArc(methodCallNode, callReturnNode);
        sdg.addReturnArc(callReturnNode, originalMethodCallNode);
+1 −3
Original line number Diff line number Diff line
@@ -23,7 +23,5 @@ public enum NodeType {
     *  has been modified in a method declaration. */
    FORMAL_OUT,
    /** A node representing the return value of a non-void method declaration. */
    METHOD_OUTPUT,
    /** A node representing the return value of a non-void method call. */
    METHOD_CALL_RETURN,
    METHOD_OUTPUT
}