public SourceNode Do() { IEnumerable <SourceNode> leaps = ResolveLeaps(_root, null); return(SourceNode.Root(leaps)); }
private SourceNode VisitScalarNode(KeyValuePair <YamlNode, YamlNode> nodePair) { return(SourceNode.Leap( GetScalarNodeKey(nodePair.Key), GetScalarNodeValue(nodePair.Value))); }
private SourceNode VisitMappingNode(KeyValuePair <YamlNode, YamlNode> nodePair) { var result = VisitMappingNodeChildren(nodePair.Value); return(SourceNode.Nested(GetScalarNodeKey(nodePair.Key), result)); }
private SourceNode VisitRootNode(YamlMappingNode rootNode) { LinkedList <SourceNode> children = VisitMappingNodeChildren(rootNode); return(SourceNode.Root(children)); }