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

Unified Diff: utils/pub/yaml/visitor.dart

Issue 11622011: Restructure YAML package suitable for pub lish (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: add yaml exclude Created 7 years, 11 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 | « utils/pub/yaml/parser.dart ('k') | utils/pub/yaml/yaml.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/yaml/visitor.dart
diff --git a/utils/pub/yaml/visitor.dart b/utils/pub/yaml/visitor.dart
deleted file mode 100644
index b5c14c9490d073a08556763e591c0d8294eac4ec..0000000000000000000000000000000000000000
--- a/utils/pub/yaml/visitor.dart
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-part of yaml;
-
-/// The visitor pattern for YAML documents.
-class _Visitor {
- /// Returns [alias].
- visitAlias(_AliasNode alias) => alias;
-
- /// Returns [scalar].
- visitScalar(_ScalarNode scalar) => scalar;
-
- /// Visits each node in [seq] and returns a list of the results.
- visitSequence(_SequenceNode seq)
- => seq.content.mappedBy((e) => e.visit(this)).toList();
-
- /// Visits each key and value in [map] and returns a map of the results.
- visitMapping(_MappingNode map) {
- var out = new YamlMap();
- for (var key in map.content.keys) {
- out[key.visit(this)] = map.content[key].visit(this);
- }
- return out;
- }
-}
« no previous file with comments | « utils/pub/yaml/parser.dart ('k') | utils/pub/yaml/yaml.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698