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

Unified Diff: frog/await/nodeset.dart

Issue 10548047: Remove frog from the repository. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Move test and update apidoc.gyp. Created 8 years, 6 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 | « frog/await/checker.dart ('k') | frog/await/normalizer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/await/nodeset.dart
diff --git a/frog/await/nodeset.dart b/frog/await/nodeset.dart
deleted file mode 100644
index 8217f1a9b715b82f8af732a2113fe7047ef392f1..0000000000000000000000000000000000000000
--- a/frog/await/nodeset.dart
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) 2011, 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.
-
-/** Weak set of AST nodes. */
-// TODO(sigmund): delete this. This is a temporary workaround to keep 'frog'
-// as independent as possible of the await experimental feature. Ideally we
-// should either make [Node] hashable or store information collected by analyses
-// in the nodes themselves.
-class NodeSet {
- Map<String, List<Node>> _hashset;
- NodeSet() : _hashset = {};
-
- bool add(Node n) {
- if (contains(n)) return false;
- String key = n.span.locationText;
- List<Node> nodes = _hashset[key];
- if (nodes == null) {
- _hashset[key] = [n];
- } else {
- nodes.add(n);
- }
- return true;
- }
-
- bool contains(Node n) {
- String key = n.span.locationText;
- List<Node> nodes = _hashset[key];
- if (nodes == null) {
- return false;
- }
- for (Node member in nodes) {
- if (n === member) return true;
- }
- return false;
- }
-}
« no previous file with comments | « frog/await/checker.dart ('k') | frog/await/normalizer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698