Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SequenceStart"/> class.
 /// </summary>
 /// <param name="anchor">The anchor.</param>
 /// <param name="tag">The tag.</param>
 /// <param name="isImplicit">if set to <c>true</c> [is implicit].</param>
 /// <param name="style">The style.</param>
 /// <param name="start">The start position of the event.</param>
 /// <param name="end">The end position of the event.</param>
 public SequenceStart(AnchorName anchor, TagName tag, bool isImplicit, SequenceStyle style, Mark start, Mark end)
     : base(anchor, tag, start, end)
 {
     this.IsImplicit = isImplicit;
     this.Style      = style;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SequenceStart"/> class.
 /// </summary>
 public SequenceStart(AnchorName anchor, TagName tag, bool isImplicit, SequenceStyle style)
     : this(anchor, tag, isImplicit, style, Mark.Empty, Mark.Empty)
 {
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Scalar"/> class.
 /// </summary>
 public Scalar(AnchorName anchor, TagName tag, string value)
     : this(anchor, tag, value, ScalarStyle.Any, true, true, Mark.Empty, Mark.Empty)
 {
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AnchorAlias"/> class.
 /// </summary>
 /// <param name="value">The value of the alias.</param>
 public AnchorAlias(AnchorName value)
     : this(value, Mark.Empty, Mark.Empty)
 {
 }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MappingStart"/> class.
 /// </summary>
 /// <param name="anchor">The anchor.</param>
 /// <param name="tag">The tag.</param>
 /// <param name="isImplicit">Indicates whether the event is implicit.</param>
 /// <param name="style">The style of the mapping.</param>
 public MappingStart(AnchorName anchor, TagName tag, bool isImplicit, MappingStyle style)
     : this(anchor, tag, isImplicit, style, Mark.Empty, Mark.Empty)
 {
 }
Beispiel #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Scalar"/> class.
 /// </summary>
 /// <param name="anchor">The anchor.</param>
 /// <param name="tag">The tag.</param>
 /// <param name="value">The value.</param>
 /// <param name="style">The style.</param>
 /// <param name="isPlainImplicit">.</param>
 /// <param name="isQuotedImplicit">.</param>
 public Scalar(AnchorName anchor, TagName tag, string value, ScalarStyle style, bool isPlainImplicit, bool isQuotedImplicit)
     : this(anchor, tag, value, style, isPlainImplicit, isQuotedImplicit, Mark.Empty, Mark.Empty)
 {
 }
Beispiel #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NodeEvent"/> class.
 /// </summary>
 protected NodeEvent(AnchorName anchor, TagName tag)
     : this(anchor, tag, Mark.Empty, Mark.Empty)
 {
 }
Beispiel #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NodeEvent"/> class.
 /// </summary>
 /// <param name="anchor">The anchor.</param>
 /// <param name="tag">The tag.</param>
 /// <param name="start">The start position of the event.</param>
 /// <param name="end">The end position of the event.</param>
 protected NodeEvent(AnchorName anchor, TagName tag, Mark start, Mark end)
     : base(start, end)
 {
     this.Anchor = anchor;
     this.Tag    = tag;
 }
 /// <summary>
 /// Gets the node with the specified anchor.
 /// </summary>
 /// <param name="anchor">The anchor.</param>
 /// <param name="node">The node that was retrieved.</param>
 /// <returns>true if the anchor was found; otherwise false.</returns>
 public bool TryGetNode(AnchorName anchor, [NotNullWhen(true)] out YamlNode?node)
 {
     return(anchors.TryGetValue(anchor, out node));
 }
Beispiel #10
0
 public SequenceStartBuilder A(string anchor)
 {
     this.anchor = new AnchorName(anchor);
     return(this);
 }
Beispiel #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="YamlAliasNode"/> class.
 /// </summary>
 /// <param name="anchor">The anchor.</param>
 internal YamlAliasNode(AnchorName anchor)
 {
     Anchor = anchor;
 }