Exemple #1
0
 public static IEnumerable <Builder.Node> AllAncestors(this Builder.Node node, int start, int end) =>
 node.AllAncestors(start).TakeWhile(a => a.end >= end);
Exemple #2
0
 public static Builder.Node OldestAncestor(this Builder.Node node, int start, int end) =>
 node.AllAncestors(start, end).FirstOrDefault();
Exemple #3
0
 public static Builder.Node YongestAncestor(this Builder.Node node, int position) =>
 node.AllAncestors(position).LastOrDefault();