Skip to content

Commit 0ebb4fe

Browse files
stereotype441Commit Queue
authored andcommitted
Sort declarations in shared_type.dart
Change-Id: Id75cbcb1f49dc21db6ad8536214dec7bd757d55e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/396301 Commit-Queue: Paul Berry <paulberry@google.com> Reviewed-by: Paul Berry <paulberry@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
1 parent 4924cf9 commit 0ebb4fe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/_fe_analyzer_shared/lib/src/types/shared_type.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,21 +71,21 @@ abstract interface class SharedNamedTypeStructure<
7171
abstract interface class SharedRecordTypeStructure<
7272
TypeStructure extends SharedTypeStructure<TypeStructure>>
7373
implements SharedTypeStructure<TypeStructure> {
74+
List<TypeStructure> get positionalTypes;
75+
7476
/// All the named fields, sorted by name.
7577
List<SharedNamedTypeStructure<TypeStructure>> get sortedNamedTypes;
76-
77-
List<TypeStructure> get positionalTypes;
7878
}
7979

8080
/// Common interface for data structures used by the implementations to
8181
/// represent a generic type parameter.
8282
abstract interface class SharedTypeParameterStructure<
8383
TypeStructure extends SharedTypeStructure<TypeStructure>> {
84-
/// The name of the type parameter, for display to the user.
85-
String get displayName;
86-
8784
/// The bound of the type parameter.
8885
TypeStructure? get bound;
86+
87+
/// The name of the type parameter, for display to the user.
88+
String get displayName;
8989
}
9090

9191
/// Common interface for data structures used by the implementations to

0 commit comments

Comments
 (0)