From 32f9d0c404212fc7aa0b7e93008ed8d817139343 Mon Sep 17 00:00:00 2001 From: Konstantin Shcheglov Date: Thu, 1 Jul 2021 16:15:18 +0000 Subject: [PATCH] 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 Commit-Queue: Konstantin Shcheglov --- .../package/scenarios/invalid/invalid_package_name_test.dart | 2 ++ .../package/scenarios/invalid/same_package_twice_test.dart | 2 ++ .../package/scenarios/invalid/invalid_package_name_test.dart | 2 ++ .../package/scenarios/invalid/same_package_twice_test.dart | 3 +++ 4 files changed, 9 insertions(+) diff --git a/tests/standalone/package/scenarios/invalid/invalid_package_name_test.dart b/tests/standalone/package/scenarios/invalid/invalid_package_name_test.dart index 4c278c99dec..a2891b895a5 100644 --- a/tests/standalone/package/scenarios/invalid/invalid_package_name_test.dart +++ b/tests/standalone/package/scenarios/invalid/invalid_package_name_test.dart @@ -7,6 +7,8 @@ library invalid_package_name_test; import 'package:foo/foo.dart' as foo; +// ^^^^^^^^^^^^^^^^^^^^^^ +// [analyzer] COMPILE_TIME_ERROR.URI_DOES_NOT_EXIST main() { if (foo.foo != 'foo') { diff --git a/tests/standalone/package/scenarios/invalid/same_package_twice_test.dart b/tests/standalone/package/scenarios/invalid/same_package_twice_test.dart index acedb40ab8e..2add5119ed8 100644 --- a/tests/standalone/package/scenarios/invalid/same_package_twice_test.dart +++ b/tests/standalone/package/scenarios/invalid/same_package_twice_test.dart @@ -7,5 +7,7 @@ library same_package_twice_test; import 'package:foo/foo.dart' as foo; +// ^^^^^^^^^^^^^^^^^^^^^^ +// [analyzer] COMPILE_TIME_ERROR.URI_DOES_NOT_EXIST main() {} diff --git a/tests/standalone_2/package/scenarios/invalid/invalid_package_name_test.dart b/tests/standalone_2/package/scenarios/invalid/invalid_package_name_test.dart index 3694579481a..cf9da8a61a0 100644 --- a/tests/standalone_2/package/scenarios/invalid/invalid_package_name_test.dart +++ b/tests/standalone_2/package/scenarios/invalid/invalid_package_name_test.dart @@ -9,6 +9,8 @@ library invalid_package_name_test; import 'package:foo/foo.dart' as foo; +// ^^^^^^^^^^^^^^^^^^^^^^ +// [analyzer] COMPILE_TIME_ERROR.URI_DOES_NOT_EXIST main() { if (foo.foo != 'foo') { diff --git a/tests/standalone_2/package/scenarios/invalid/same_package_twice_test.dart b/tests/standalone_2/package/scenarios/invalid/same_package_twice_test.dart index 5d9a24e8c5e..75d93d91225 100644 --- a/tests/standalone_2/package/scenarios/invalid/same_package_twice_test.dart +++ b/tests/standalone_2/package/scenarios/invalid/same_package_twice_test.dart @@ -9,5 +9,8 @@ library same_package_twice_test; import 'package:foo/foo.dart' as foo; +// ^^^^^^^^^^^^^^^^^^^^^^ +// [analyzer] COMPILE_TIME_ERROR.URI_DOES_NOT_EXIST +// [cfe] unspecified main() {}