예제 #1
0
        public SourceNode Do()
        {
            IEnumerable <SourceNode> leaps = ResolveLeaps(_root, null);

            return(SourceNode.Root(leaps));
        }
예제 #2
0
 private SourceNode VisitScalarNode(KeyValuePair <YamlNode, YamlNode> nodePair)
 {
     return(SourceNode.Leap(
                GetScalarNodeKey(nodePair.Key),
                GetScalarNodeValue(nodePair.Value)));
 }
예제 #3
0
            private SourceNode VisitMappingNode(KeyValuePair <YamlNode, YamlNode> nodePair)
            {
                var result = VisitMappingNodeChildren(nodePair.Value);

                return(SourceNode.Nested(GetScalarNodeKey(nodePair.Key), result));
            }
예제 #4
0
            private SourceNode VisitRootNode(YamlMappingNode rootNode)
            {
                LinkedList <SourceNode> children = VisitMappingNodeChildren(rootNode);

                return(SourceNode.Root(children));
            }