Example #1
0
 bool INode.HasSuccessor(INode node) => StackDependencies.Any(
     dep => dep.Any(source => source.Node == node));
Example #2
0
 /// <summary>
 /// Obtains a collection of edges encoding all the dependencies that this node has.
 /// </summary>
 /// <returns>The edges.</returns>
 public IEnumerable <DataFlowEdge <TContents> > GetOutgoingEdges()
 {
     return(StackDependencies
            .SelectMany(d => d.GetEdges())
            .Concat(VariableDependencies.SelectMany(d => d.GetEdges())));
 }
Example #3
0
 IEnumerable <INode> INode.GetSuccessors() => StackDependencies
 .SelectMany(
     dep => dep,
     (dep, source) => source.Node);