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

Unified Diff: pkg/compiler/lib/src/stats/builder.dart

Issue 1377293003: dart2js: fix analyzer warning (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/stats/builder.dart
diff --git a/pkg/compiler/lib/src/stats/builder.dart b/pkg/compiler/lib/src/stats/builder.dart
index 1e683bd22ff1a743d19905636e6875d136a1d88c..9194de762abfa2ccf8af742ed6ce65a7b10d427c 100644
--- a/pkg/compiler/lib/src/stats/builder.dart
+++ b/pkg/compiler/lib/src/stats/builder.dart
@@ -36,7 +36,7 @@ import 'trusted_types_analysis_result.dart';
Measurements collectSendMeasurements(FunctionElement f, Compiler compiler) {
return compiler.withCurrentElement(f, () {
// TODO(sigmund): enable for platform too.
- if (f.library.isPlatformLibrary) return;
+ if (f.library.isPlatformLibrary) return null;
var name = _qualifiedName(f);
if (!f.hasNode) {
if (f is PartialElement) return const Measurements.unreachableFunction();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698