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

Unified Diff: pkg/yaml/lib/src/visitor.dart

Issue 302313007: Attach source range information to parsed YAML nodes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix tests Created 6 years, 7 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 | « pkg/yaml/lib/src/utils.dart ('k') | pkg/yaml/lib/src/yaml_map.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/yaml/lib/src/visitor.dart
diff --git a/pkg/yaml/lib/src/visitor.dart b/pkg/yaml/lib/src/visitor.dart
index 7095268d346626ca047de2be7ca2bf07fcf91550..3f4c45538078bb86745a85451c0a9ed6518adef1 100644
--- a/pkg/yaml/lib/src/visitor.dart
+++ b/pkg/yaml/lib/src/visitor.dart
@@ -4,8 +4,8 @@
library yaml.visitor;
+import 'equality.dart';
import 'model.dart';
-import 'yaml_map.dart';
/// The visitor pattern for YAML documents.
class Visitor {
@@ -21,7 +21,7 @@ class Visitor {
/// Visits each key and value in [map] and returns a map of the results.
visitMapping(MappingNode map) {
- var out = new YamlMap();
+ var out = deepEqualsMap();
for (var key in map.content.keys) {
out[key.visit(this)] = map.content[key].visit(this);
}
« no previous file with comments | « pkg/yaml/lib/src/utils.dart ('k') | pkg/yaml/lib/src/yaml_map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698