| Index: pkg/analyzer/test/generated/incremental_resolver_test.dart
|
| diff --git a/pkg/analyzer/test/generated/incremental_resolver_test.dart b/pkg/analyzer/test/generated/incremental_resolver_test.dart
|
| index 2c8f00a89f8da8b7a4e5e58622a90d670360a4f2..90106a9f23e9d50753acaadf9726bb9ffc9c6579 100644
|
| --- a/pkg/analyzer/test/generated/incremental_resolver_test.dart
|
| +++ b/pkg/analyzer/test/generated/incremental_resolver_test.dart
|
| @@ -620,6 +620,38 @@ class T {
|
| ''');
|
| }
|
|
|
| + void test_false_function_async_add() {
|
| + _assertDoesNotMatch(r'''
|
| +main() {}
|
| +''', r'''
|
| +main() async {}
|
| +''');
|
| + }
|
| +
|
| + void test_false_function_async_remove() {
|
| + _assertDoesNotMatch(r'''
|
| +main() async {}
|
| +''', r'''
|
| +main() {}
|
| +''');
|
| + }
|
| +
|
| + void test_false_function_generator_add() {
|
| + _assertDoesNotMatch(r'''
|
| +main() async {}
|
| +''', r'''
|
| +main() async* {}
|
| +''');
|
| + }
|
| +
|
| + void test_false_function_generator_remove() {
|
| + _assertDoesNotMatch(r'''
|
| +main() async* {}
|
| +''', r'''
|
| +main() async {}
|
| +''');
|
| + }
|
| +
|
| void test_false_functionTypeAlias_list_add() {
|
| _assertDoesNotMatch(r'''
|
| typedef A(int pa);
|
| @@ -925,6 +957,54 @@ class A {
|
| ''');
|
| }
|
|
|
| + void test_false_method_async_add() {
|
| + _assertDoesNotMatchOK(r'''
|
| +class A {
|
| + m() {}
|
| +}
|
| +''', r'''
|
| +class A {
|
| + m() async {}
|
| +}
|
| +''');
|
| + }
|
| +
|
| + void test_false_method_async_remove() {
|
| + _assertDoesNotMatchOK(r'''
|
| +class A {
|
| + m() async {}
|
| +}
|
| +''', r'''
|
| +class A {
|
| + m() {}
|
| +}
|
| +''');
|
| + }
|
| +
|
| + void test_false_method_generator_add() {
|
| + _assertDoesNotMatchOK(r'''
|
| +class A {
|
| + m() async {}
|
| +}
|
| +''', r'''
|
| +class A {
|
| + m() async* {}
|
| +}
|
| +''');
|
| + }
|
| +
|
| + void test_false_method_generator_remove() {
|
| + _assertDoesNotMatchOK(r'''
|
| +class A {
|
| + m() async* {}
|
| +}
|
| +''', r'''
|
| +class A {
|
| + m() async {}
|
| +}
|
| +''');
|
| + }
|
| +
|
| void test_false_method_list_add() {
|
| _assertDoesNotMatchOK(r'''
|
| class A {
|
| @@ -1775,6 +1855,18 @@ class A {
|
| ''');
|
| }
|
|
|
| + void test_true_method_async() {
|
| + _assertMatches(r'''
|
| +class A {
|
| + m() async {}
|
| +}
|
| +''', r'''
|
| +class A {
|
| + m() async {}
|
| +}
|
| +''');
|
| + }
|
| +
|
| void test_true_method_list_reorder() {
|
| _assertMatches(r'''
|
| class A {
|
|
|