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

Unified Diff: pkg/analyzer_experimental/lib/src/generated/constant.dart

Issue 16357010: Basic dart^2 analyzer tests running. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
Index: pkg/analyzer_experimental/lib/src/generated/constant.dart
diff --git a/pkg/analyzer_experimental/lib/src/generated/constant.dart b/pkg/analyzer_experimental/lib/src/generated/constant.dart
index 3196a6fe08af1cd8b0f46c7df95bac4fe986637e..9ff784526da035b286098bb8bb9813e03e689045 100644
--- a/pkg/analyzer_experimental/lib/src/generated/constant.dart
+++ b/pkg/analyzer_experimental/lib/src/generated/constant.dart
@@ -636,10 +636,8 @@ class DirectedGraph<N> {
* @return a sink node
*/
N findSink() {
- for (MapEntry<N, Set<N>> entry in getMapEntrySet(_edges)) {
- if (entry.getValue().isEmpty) {
- return entry.getKey();
- }
+ for (N key in _edges.keys) {
+ if (_edges[key].isEmpty) return key;
}
return null;
}

Powered by Google App Engine
This is Rietveld 408576698