Files
sdk/pkg/analyzer_cli/test/data/package_prefix/main.dart
T
Brian Slesinsky 9e21594c2a add --x-package-warnings-prefix option to dartanalyzer
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 .
2016-03-21 11:37:49 -07:00

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");
}