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

Unified Diff: lib/src/graph.dart

Issue 2233093003: make dart2js_info strong-mode clean (Closed) Base URL: git@github.com:dart-lang/dart2js_info.git@master
Patch Set: update version Created 4 years, 4 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 | « lib/json_info_codec.dart ('k') | lib/src/measurements.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/graph.dart
diff --git a/lib/src/graph.dart b/lib/src/graph.dart
index 5602d6e58b21a43a94d3d69aaa2d53d6bafee28a..76389957ab5cdd7a297f6ff46b9ed2b5b4649f7c 100644
--- a/lib/src/graph.dart
+++ b/lib/src/graph.dart
@@ -43,7 +43,7 @@ abstract class Graph<N> {
/// Returns all nodes reachable from [root] in post order.
Iterable<N> postOrder(N root) sync* {
var seen = new Set<N>();
- Iterable<N> helper(n) sync* {
+ Iterable<N> helper(N n) sync* {
if (!seen.add(n)) return;
for (var x in targetsOf(n)) {
yield* helper(x);
@@ -297,7 +297,7 @@ class _DominatorFinder<N> {
for (var n in nodesInReversedPostOrder) {
if (n == root) continue;
bool first = true;
- var idom = null;
+ N idom;
for (var p in _graph.sourcesOf(n)) {
if (immediateDominators[p] != null) {
if (first) {
« no previous file with comments | « lib/json_info_codec.dart ('k') | lib/src/measurements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698