Example #1
0
 public static ReadOnlyCollection<Ref> UsagesOfLocal(this Block block, Local local)
 {
     return ((Node)block).UsagesOfLocal(local);
 }
Example #2
0
 public static ReadOnlyCollection<Ref> UsagesOfLocal(this IEnumerable<Node> nodes, Local local)
 {
     return nodes.SelectMany(node => node.CSharpEvaluationOrder().OfType<Ref>().Where(@ref => @ref.Sym == local)).ToReadOnly();
 }
Example #3
0
 public static ReadOnlyCollection<Ref> UsagesOfLocal(this Node node, Local local)
 {
     return node.MkArray().UsagesOfLocal(local);
 }