9e21594c2a
This is similar to --package-warnings, except that diagnostics will only be reported for Dart packages matching the given prefix. Also added the number of source files analyzed and the number of errors generated to performance report. Cleanup: simplified code for triggering diet parsing. BUG= R=paulberry@google.com Review URL: https://codereview.chromium.org/1806263004 .
15 lines
328 B
Dart
15 lines
328 B
Dart
// Test data for package_prefix_test.dart
|
|
//
|
|
// To test manually:
|
|
//
|
|
// This should show a hint about an unused import in foo:
|
|
// dart ../../../bin/analyzer.dart --packages=packagelist \
|
|
// --x-package-warnings-prefix=f main.dart
|
|
|
|
import "package:foo/foo.dart";
|
|
import "package:bar/bar.dart";
|
|
|
|
main() {
|
|
print("$foo$bar");
|
|
}
|