Test. Support for optinal 'deferred as' to find URIs.

Change-Id: I923b65931de5d7ac56bea0b356474113ebb9a778
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/364627
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
Konstantin Shcheglov 2024-05-01 15:45:58 +00:00 committed by Commit Queue
parent 3c9d05f255
commit 33f0388776
3 changed files with 6 additions and 4 deletions

View file

@ -14,7 +14,9 @@ final _environmentRegExp = RegExp(r"// Environment=(.*)");
final _packagesRegExp = RegExp(r"// Packages=(.*)");
final _experimentRegExp = RegExp(r"^--enable-experiment=([a-z0-9,-]+)$");
final _localFileRegExp = RegExp(
r"""^\s*(?:import(?: augment)?|part) ['"](?!package:|dart:)(.*)['"];""",
r"""^\s*(?:import(?: augment)?|part) """
r"""['"](?!package:|dart:)(.*)['"]"""
r"""(?: deferred as \w+)?;""",
multiLine: true);
List<String> _splitWords(String s) =>

View file

@ -7,5 +7,8 @@ class A {}
class C extends A {
foo() {
super.foo = 3;
// ^^^
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_SUPER_MEMBER
// [cfe] Superclass has no setter named 'foo'.
}
}

View file

@ -7,9 +7,6 @@
// used to cause a crash.
import "package:expect/expect.dart";
// ^^^
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_SUPER_MEMBER
// [cfe] Superclass has no setter named 'foo'.
import "super_dependency_lib.dart" deferred as lib;
main() async {