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

Unified Diff: pkg/yaml/lib/src/yaml_map.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/visitor.dart ('k') | pkg/yaml/lib/src/yaml_node.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/yaml/lib/src/yaml_map.dart
diff --git a/pkg/yaml/lib/src/yaml_map.dart b/pkg/yaml/lib/src/yaml_map.dart
deleted file mode 100644
index ff3da365498f8edc029a8829a205b5e2184762bb..0000000000000000000000000000000000000000
--- a/pkg/yaml/lib/src/yaml_map.dart
+++ /dev/null
@@ -1,40 +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.
-
-library yaml.map;
-
-import 'dart:collection';
-
-import 'package:collection/collection.dart';
-
-import 'deep_equals.dart';
-import 'utils.dart';
-
-/// This class behaves almost identically to the normal Dart [Map]
-/// implementation, with the following differences:
-///
-/// * It allows NaN, list, and map keys.
-/// * It defines `==` structurally. That is, `yamlMap1 == yamlMap2` if they
-/// have the same contents.
-/// * It has a compatible [hashCode] method.
-///
-/// This class is deprecated. In future releases, this package will use
-/// a [HashMap] with a custom equality operation rather than a custom class.
-@Deprecated('1.0.0')
-class YamlMap extends DelegatingMap {
- YamlMap()
- : super(new HashMap(equals: deepEquals, hashCode: hashCodeFor));
-
- YamlMap.from(Map map)
- : super(new HashMap(equals: deepEquals, hashCode: hashCodeFor)) {
- addAll(map);
- }
-
- int get hashCode => hashCodeFor(this);
-
- bool operator ==(other) {
- if (other is! YamlMap) return false;
- return deepEquals(this, other);
- }
-}
« no previous file with comments | « pkg/yaml/lib/src/visitor.dart ('k') | pkg/yaml/lib/src/yaml_node.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698