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

Unified Diff: bin/code_deps.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 | « .analysis_options ('k') | bin/coverage_log_server.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/code_deps.dart
diff --git a/bin/code_deps.dart b/bin/code_deps.dart
index a90df7852f6feb30830e211f7652caa990460245..c9b05442d969593e4028eaf3e13c3fe91cb8c98d 100644
--- a/bin/code_deps.dart
+++ b/bin/code_deps.dart
@@ -96,12 +96,12 @@ class SomePathQuery {
List<Info> run(Graph<Info> graph) {
var seen = {source: null};
- var queue = new Queue();
+ var queue = new Queue<Info>();
queue.addLast(source);
while (queue.isNotEmpty) {
var node = queue.removeFirst();
if (identical(node, target)) {
- var result = new Queue();
+ var result = new Queue<Info>();
while (node != null) {
result.addFirst(node);
node = seen[node];
@@ -118,4 +118,7 @@ class SomePathQuery {
}
}
-_longNameMatcher(RegExp regexp) => (e) => regexp.hasMatch(longName(e));
+typedef bool LongNameMatcher(FunctionInfo info);
+
+LongNameMatcher _longNameMatcher(RegExp regexp) =>
+ (e) => regexp.hasMatch(longName(e));
« no previous file with comments | « .analysis_options ('k') | bin/coverage_log_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698