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

Unified Diff: bin/inference/client.dart

Issue 2233093003: make dart2js_info strong-mode clean (Closed) Base URL: git@github.com:dart-lang/dart2js_info.git@master
Patch Set: 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
Index: bin/inference/client.dart
diff --git a/bin/inference/client.dart b/bin/inference/client.dart
index e5b05d79728629405d104ea7eacc18aaf0542ba0..caba830fd53d6cc10418b25e79e5f63fbca446f1 100644
--- a/bin/inference/client.dart
+++ b/bin/inference/client.dart
@@ -116,8 +116,8 @@ class SendHighlighter extends RecursiveInfoVisitor {
}
@override
- visitFunction(FunctionInfo function) {
- if (function.measurements?.uri?.path != path) return;
+ Null visitFunction(FunctionInfo function) {
+ if (function.measurements?.uri?.path != path) return null;
var entries = function.measurements.entries;
for (var metric in entries.keys) {
if (metric is GroupedMetric) continue;
@@ -128,6 +128,7 @@ class SendHighlighter extends RecursiveInfoVisitor {
code.insert(entry.end, '</span>');
}
}
+ return null;
}
}

Powered by Google App Engine
This is Rietveld 408576698