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