Ejemplo n.º 1
0
 internal abstract SourceTree WithRootCore(SourceNode root);
Ejemplo n.º 2
0
 protected abstract bool TryGetRootCore(out SourceNode root);
Ejemplo n.º 3
0
 public bool TryGetRoot(out SourceNode root)
 {
     return(TryGetRootCore(out root));
 }
Ejemplo n.º 4
0
        public static NodeList <TNode> ToNodeList <TNode, TCore>(this ImmutableArray <TCore> cores, SourceNode parent = null)
            where TNode : SourceNode, INodeWithCore <TCore>
            where TCore : ICore <TNode>
        {
            var container = LazyNodeList <TNode, TCore> .CreateContainer(cores, parent);

            return(container.ToNodeList());
        }
Ejemplo n.º 5
0
 protected SourceNode(SourceNode parent)
 {
     Parent = parent;
     Tree   = parent?.Tree;
 }
Ejemplo n.º 6
0
 private LazyNodeList(ImmutableArray <TCore> cores, SourceNode parent)
 {
     Parent = parent;
     Cores  = cores;
     Nodes  = new ArrayElement <TNode> [Cores.Length];
 }