YamlSourceNode class sealed Parsing Nodes
A node parsed from a YAML
source string.
This node acts as a compatibility layer between the parsed YamlNode
and a Dart
type. This node guarantees that most valid (and supported)
Dart
types will be equal to any subtype of this YamlSourceNode that
corresponds to that type such that:
- Inheritance
-
- Object
- YamlNode
- CompactYamlNode
- YamlSourceNode
- Implementers
- Available extensions
Properties
- alias → String?
-
Alias name that references other nodes.
no setterinherited
- anchor → String?
-
Anchor name that allow other nodes to reference this node.
no setterinherited
- end → SourceLocation
-
End position in the source parsed, exclusive
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- nodeStyle → NodeStyle
-
Style used to serialize the node within the
YAML
source stringno setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start → SourceLocation
-
Start position in the source parsed, inclusive.
no setter
- tag → ResolvedTag?
-
Tag directive describing how the node is represented natively.
no setteroverride
Methods
-
asCustomType<
T> () → T? -
Available on YamlSourceNode, provided by the CustomResolved extension
Returns a custom resolved format if any NodeResolver is present. The YamlSourceNode is formatted each time this method is called. -
castTo<
T extends YamlSourceNode> () → T -
Available on YamlSourceNode, provided by the CustomResolved extension
Casts a generic YamlSourceNode to a valid (and known) subtype -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited