Issue 46529. Annotate imports unresolved because of errors in .packages files.

Bug: https://github.com/dart-lang/sdk/issues/46529
Change-Id: I05dc36914adddb6196ade294650ec683dc4a593d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/205628
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
Konstantin Shcheglov 2021-07-01 16:15:18 +00:00 committed by commit-bot@chromium.org
parent 596c476f79
commit 32f9d0c404
4 changed files with 9 additions and 0 deletions

View file

@ -7,6 +7,8 @@
library invalid_package_name_test; library invalid_package_name_test;
import 'package:foo/foo.dart' as foo; import 'package:foo/foo.dart' as foo;
// ^^^^^^^^^^^^^^^^^^^^^^
// [analyzer] COMPILE_TIME_ERROR.URI_DOES_NOT_EXIST
main() { main() {
if (foo.foo != 'foo') { if (foo.foo != 'foo') {

View file

@ -7,5 +7,7 @@
library same_package_twice_test; library same_package_twice_test;
import 'package:foo/foo.dart' as foo; import 'package:foo/foo.dart' as foo;
// ^^^^^^^^^^^^^^^^^^^^^^
// [analyzer] COMPILE_TIME_ERROR.URI_DOES_NOT_EXIST
main() {} main() {}

View file

@ -9,6 +9,8 @@
library invalid_package_name_test; library invalid_package_name_test;
import 'package:foo/foo.dart' as foo; import 'package:foo/foo.dart' as foo;
// ^^^^^^^^^^^^^^^^^^^^^^
// [analyzer] COMPILE_TIME_ERROR.URI_DOES_NOT_EXIST
main() { main() {
if (foo.foo != 'foo') { if (foo.foo != 'foo') {

View file

@ -9,5 +9,8 @@
library same_package_twice_test; library same_package_twice_test;
import 'package:foo/foo.dart' as foo; import 'package:foo/foo.dart' as foo;
// ^^^^^^^^^^^^^^^^^^^^^^
// [analyzer] COMPILE_TIME_ERROR.URI_DOES_NOT_EXIST
// [cfe] unspecified
main() {} main() {}