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>
diff --git a/pkg/_fe_analyzer_shared/lib/src/types/shared_type.dart b/pkg/_fe_analyzer_shared/lib/src/types/shared_type.dart
index df4d48f..2135c12 100644
--- a/pkg/_fe_analyzer_shared/lib/src/types/shared_type.dart
+++ b/pkg/_fe_analyzer_shared/lib/src/types/shared_type.dart
@@ -71,21 +71,21 @@
abstract interface class SharedRecordTypeStructure<
TypeStructure extends SharedTypeStructure<TypeStructure>>
implements SharedTypeStructure<TypeStructure> {
+ List<TypeStructure> get positionalTypes;
+
/// All the named fields, sorted by name.
List<SharedNamedTypeStructure<TypeStructure>> get sortedNamedTypes;
-
- List<TypeStructure> get positionalTypes;
}
/// Common interface for data structures used by the implementations to
/// represent a generic type parameter.
abstract interface class SharedTypeParameterStructure<
TypeStructure extends SharedTypeStructure<TypeStructure>> {
- /// The name of the type parameter, for display to the user.
- String get displayName;
-
/// The bound of the type parameter.
TypeStructure? get bound;
+
+ /// The name of the type parameter, for display to the user.
+ String get displayName;
}
/// Common interface for data structures used by the implementations to