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

Unified Diff: pkg/analyzer/lib/src/generated/utilities_collection.dart

Issue 221483002: Fix for translation of \!= to \!identical(), but use == and \!= for Enum. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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/analyzer/lib/src/generated/source_io.dart ('k') | pkg/analyzer/lib/src/generated/utilities_dart.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/utilities_collection.dart
diff --git a/pkg/analyzer/lib/src/generated/utilities_collection.dart b/pkg/analyzer/lib/src/generated/utilities_collection.dart
index b8b789097ed2441731ef63bcdff62869fbdfe79a..f28e1f1cd24ac304726fdae574f44618ee4a8b8e 100644
--- a/pkg/analyzer/lib/src/generated/utilities_collection.dart
+++ b/pkg/analyzer/lib/src/generated/utilities_collection.dart
@@ -336,7 +336,7 @@ class DirectedGraph_SccFinder<N> {
/**
* The graph to work with.
*/
- DirectedGraph<N> _graph;
+ final DirectedGraph<N> _graph;
/**
* The index used to uniquely identify the depth of nodes.
@@ -356,9 +356,7 @@ class DirectedGraph_SccFinder<N> {
/**
* Initialize a newly created finder.
*/
- DirectedGraph_SccFinder(DirectedGraph<N> graph) : super() {
- this._graph = graph;
- }
+ DirectedGraph_SccFinder(this._graph) : super();
/**
* Return a list containing the nodes that are part of the strongly connected component that
@@ -432,7 +430,7 @@ class DirectedGraph_SccFinder<N> {
w = _pop();
component.add(w);
_nodeMap[w].component = component;
- } while (w != v);
+ } while (!identical(w, v));
}
return vInfo;
}
« no previous file with comments | « pkg/analyzer/lib/src/generated/source_io.dart ('k') | pkg/analyzer/lib/src/generated/utilities_dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698