@@ -61,7 +61,7 @@ class YamlMap extends YamlNode with collection.MapMixin, UnmodifiableMapMixin {
61
61
Map get value => this ;
62
62
63
63
@override
64
- Iterable get keys => nodes.keys.map ((node) => node.value);
64
+ Iterable get keys => nodes.keys.map ((node) => ( node as YamlNode ) .value);
65
65
66
66
/// Creates an empty YamlMap.
67
67
///
@@ -86,9 +86,9 @@ class YamlMap extends YamlNode with collection.MapMixin, UnmodifiableMapMixin {
86
86
YamlMapWrapper (dartMap, sourceUrl, style: style);
87
87
88
88
/// Users of the library should not use this constructor.
89
- YamlMap .internal (Map <dynamic , YamlNode > nodes, SourceSpan span, this .style)
89
+ YamlMap .internal (Map <dynamic , YamlNode > nodes, super . span, this .style)
90
90
: nodes = UnmodifiableMapView <dynamic , YamlNode >(nodes),
91
- super ._(span );
91
+ super ._();
92
92
93
93
@override
94
94
dynamic operator [](Object ? key) => nodes[key]? .value;
@@ -136,9 +136,9 @@ class YamlList extends YamlNode with collection.ListMixin {
136
136
YamlListWrapper (dartList, sourceUrl, style: style);
137
137
138
138
/// Users of the library should not use this constructor.
139
- YamlList .internal (List <YamlNode > nodes, SourceSpan span, this .style)
139
+ YamlList .internal (List <YamlNode > nodes, super . span, this .style)
140
140
: nodes = UnmodifiableListView <YamlNode >(nodes),
141
- super ._(span );
141
+ super ._();
142
142
143
143
@override
144
144
dynamic operator [](int index) => nodes[index].value;
@@ -152,7 +152,7 @@ class YamlList extends YamlNode with collection.ListMixin {
152
152
/// A wrapped scalar value parsed from YAML.
153
153
class YamlScalar extends YamlNode {
154
154
@override
155
- final dynamic value;
155
+ final Object ? value;
156
156
157
157
/// The style used for the scalar in the original document.
158
158
final ScalarStyle style;
0 commit comments