Ejemplo n.º 1
0
 bool INode.HasSuccessor(INode node) => StackDependencies.Any(
     dep => dep.Any(source => source.Node == node));
Ejemplo n.º 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())));
 }
Ejemplo n.º 3
0
 IEnumerable <INode> INode.GetSuccessors() => StackDependencies
 .SelectMany(
     dep => dep,
     (dep, source) => source.Node);