From 16ef5ef93b6503612e1fca1dd5fb2b434beea10b Mon Sep 17 00:00:00 2001 From: Sigmund Cherem Date: Fri, 2 Oct 2015 11:30:24 -0700 Subject: [PATCH] dart2js: fix analyzer warning TBR=het@google.com Review URL: https://codereview.chromium.org/1377293003 . --- pkg/compiler/lib/src/stats/builder.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/compiler/lib/src/stats/builder.dart b/pkg/compiler/lib/src/stats/builder.dart index 1e683bd22ff..9194de762ab 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();