Beispiel #1
0
 public static IEnumerable <PartialNode> Child(PartialNode tree) => tree.Yield();
Beispiel #2
0
 public static IEnumerable <PartialNode> Children(PartialNode head, IEnumerable <PartialNode> tail) =>
 head.Yield().Concat(tail);
Beispiel #3
0
        public static SyntaxNode New(PartialNode tree)
        {
            var context = new SyntaxNodeContext();

            return(tree.Instantiate(context, 0));
        }