Beispiel #1
0
 internal abstract SourceTree WithRootCore(SourceNode root);
Beispiel #2
0
 protected abstract bool TryGetRootCore(out SourceNode root);
Beispiel #3
0
 public bool TryGetRoot(out SourceNode root)
 {
     return(TryGetRootCore(out root));
 }
Beispiel #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());
        }
Beispiel #5
0
 protected SourceNode(SourceNode parent)
 {
     Parent = parent;
     Tree   = parent?.Tree;
 }
Beispiel #6
0
 private LazyNodeList(ImmutableArray <TCore> cores, SourceNode parent)
 {
     Parent = parent;
     Cores  = cores;
     Nodes  = new ArrayElement <TNode> [Cores.Length];
 }