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

Unified Diff: pkg/compiler/lib/src/native/enqueue.dart

Issue 2576663003: Log only valid occurences of 'All native types used ...'. (Closed)
Patch Set: dartfmt Created 4 years 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: pkg/compiler/lib/src/native/enqueue.dart
diff --git a/pkg/compiler/lib/src/native/enqueue.dart b/pkg/compiler/lib/src/native/enqueue.dart
index 300a65078008d9a6442f57b958ce9bf3c494d4d8..bd37b4c88f000c4628dacc30300614f111ee1641 100644
--- a/pkg/compiler/lib/src/native/enqueue.dart
+++ b/pkg/compiler/lib/src/native/enqueue.dart
@@ -487,7 +487,7 @@ abstract class NativeEnqueuerBase implements NativeEnqueuer {
// Give an info so that library developers can compile with -v to find why
// all the native classes are included.
- if (unusedBefore == matchingClasses.length) {
+ if (unusedBefore > 0 && unusedBefore == matchingClasses.length) {
reporter.log('All native types marked as used due to $cause.');
}
}
« no previous file with comments | « no previous file | tests/compiler/dart2js/all_native_test.dart » ('j') | tests/compiler/dart2js/all_native_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698