Esempio n. 1
0
        public Task <IReadOnlyList <OuterFlowEdge> > GetReturnEdgesToAsync(CallFlowNode callNode)
        {
            // TODO: Store outer edges instead of recreating them every time
            var generator = ((TestRoutineLocation)callNode.Location).Generator;
            var graph     = this.generatorToGraphMap[generator];
            var result    =
                graph.Nodes
                .OfType <ReturnFlowNode>()
                .Select(returnNode => OuterFlowEdge.CreateReturn(new OuterFlowEdgeId(-1), returnNode, callNode))
                .ToArray();

            return(Task.FromResult <IReadOnlyList <OuterFlowEdge> >(result));
        }
Esempio n. 2
0
 public OuterFlowEdge GetCallEdge(CallFlowNode callNode, EnterFlowNode enterNode)
 {
     // TODO: Store outer edges instead of recreating them every time
     return(OuterFlowEdge.CreateMethodCall(new OuterFlowEdgeId(-1), callNode, enterNode));
 }