private GitreeNode ReadDocument(GitreeStorageFileNode document) { var(node, wrappedNode) = ReadDocumentNodes(document); var item = new GitreeNode(node, wrappedNode, true, ImmutableArray <GitreeListNode> .Empty); return(item); }
private static (DatablobNode node, SourceNode wrappedNode) ReadDocumentNodes(GitreeStorageFileNode document) { var node = document.GetRoot(); var wrappedNode = node .Descendants(x => x.IsList) .First(x => x.Kind != SourceKind.Metadata && !x.IsList); return(node, wrappedNode); }
public GitreeDatafileInfo(GitreeStorageFileNode rootDocument) { RootDocument = rootDocument; }