| Index: pkg/analysis_server/test/edit/sort_members_test.dart
|
| diff --git a/pkg/analysis_server/test/edit/sort_members_test.dart b/pkg/analysis_server/test/edit/sort_members_test.dart
|
| index a955360b4fa82b011fc6be6578eee6ecae926339..ee801df7b123acc83246fe0ffd72b525f2d033b4 100644
|
| --- a/pkg/analysis_server/test/edit/sort_members_test.dart
|
| +++ b/pkg/analysis_server/test/edit/sort_members_test.dart
|
| @@ -144,6 +144,40 @@ main() {
|
| ''');
|
| }
|
|
|
| + test_OK_directives_withAnnotation() async {
|
| + addTestFile('''
|
| +library lib;
|
| +
|
| +export 'dart:bbb';
|
| +@MyAnnotation(1)
|
| +@MyAnnotation(2)
|
| +import 'dart:bbb';
|
| +@MyAnnotation(3)
|
| +export 'dart:aaa';
|
| +import 'dart:aaa';
|
| +
|
| +class MyAnnotation {
|
| + const MyAnnotation(_);
|
| +}
|
| +''');
|
| + return _assertSorted(r'''
|
| +library lib;
|
| +
|
| +import 'dart:aaa';
|
| +@MyAnnotation(1)
|
| +@MyAnnotation(2)
|
| +import 'dart:bbb';
|
| +
|
| +@MyAnnotation(3)
|
| +export 'dart:aaa';
|
| +export 'dart:bbb';
|
| +
|
| +class MyAnnotation {
|
| + const MyAnnotation(_);
|
| +}
|
| +''');
|
| + }
|
| +
|
| test_OK_unitMembers_class() async {
|
| addTestFile('''
|
| class C {}
|
|
|