Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(560)

Unified Diff: lib/src/yaml_node_wrapper.dart

Issue 1329763002: Don't use regular expressions in Loader. (Closed) Base URL: git@github.com:dart-lang/yaml@master
Patch Set: Code review changes Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/yaml_node.dart ('k') | lib/yaml.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/yaml_node_wrapper.dart
diff --git a/lib/src/yaml_node_wrapper.dart b/lib/src/yaml_node_wrapper.dart
index be96ba4d532a22fe1d6fe476e4f694d28be90d1d..d7146c450aa402f3b49f36ea3d08d3a6a273badb 100644
--- a/lib/src/yaml_node_wrapper.dart
+++ b/lib/src/yaml_node_wrapper.dart
@@ -59,7 +59,7 @@ class _YamlMapNodes extends MapBase<dynamic, YamlNode>
final SourceSpan _span;
Iterable get keys => _dartMap.keys.map((key) =>
- new YamlScalar.internal(key, _span, ScalarStyle.ANY));
+ new YamlScalar.internalWithSpan(key, _span));
_YamlMapNodes(this._dartMap, this._span);
@@ -151,5 +151,5 @@ class _YamlListNodes extends ListBase<YamlNode> {
YamlNode _nodeForValue(value, SourceSpan span) {
if (value is Map) return new YamlMapWrapper._(value, span);
if (value is List) return new YamlListWrapper._(value, span);
- return new YamlScalar.internal(value, span, ScalarStyle.ANY);
+ return new YamlScalar.internalWithSpan(value, span);
}
« no previous file with comments | « lib/src/yaml_node.dart ('k') | lib/yaml.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698