Beispiel #1
0
 internal override void Add(YNode child)
 {
     if (nextKey == null)
     {
         var scalar = child as YScalar;
         if (scalar == null)
         {
             throw new Exception("Mapping keys must be scalars");
         }
         nextKey = scalar;
     }
     else
     {
         Mapping.Add(nextKey, child);
         nextKey = null;
     }
 }
Beispiel #2
0
 internal override void Add(YNode child)
 {
     Root = child;
 }
Beispiel #3
0
 internal override void Add(YNode child)
 {
     Sequence.Add(child);
 }
Beispiel #4
0
 internal override void Add(YNode child)
 {
     throw new Exception("Cannot add a child to a scalar node");
 }
Beispiel #5
0
 internal abstract void Add(YNode child);
Beispiel #6
0
 public YDocument(YNode child)
 {
     Root = child;
 }
Beispiel #7
0
 internal override void Add(YNode child)
 {
     if (nextKey == null)
     {
         var scalar = child as YScalar;
         if (scalar == null)
         {
             throw new Exception("Mapping keys must be scalars");
         }
         nextKey = scalar;
     }
     else
     {
         Mapping.Add(nextKey, child);
         nextKey = null;
     }
 }
Beispiel #8
0
 internal override void Add(YNode child)
 {
     Root = child;
 }
Beispiel #9
0
 public YDocument(YNode child)
 {
     Root = child;
 }
Beispiel #10
0
 internal override void Add(YNode child)
 {
     Sequence.Add(child);
 }
Beispiel #11
0
 internal abstract void Add(YNode child);
Beispiel #12
0
 internal override void Add(YNode child)
 {
     throw new Exception("Cannot add a child to a scalar node");
 }