public static YNode AttachAnchor(YNode node, string anchor) { if (node == null) { throw new ArgumentNullException(nameof(node)); } if (anchor != null) { node.Anchor = anchor.Substring(1); } return(node); }
public static YDocument FromBareNode(YNode node) => new YDocument(Array.Empty <YDirective>(), node);
public static YDocument Create(IList <YDirective> directives, YNode node) => new YDocument(directives, node);
public YDocument(IList <YDirective> directives, YNode body) { Directives = directives; Body = body; }