Sort declarations in migration_cli.dart and nnbd_migration.dart
Change-Id: I4e2904a40dcc0f7ece94ee6aa823743455f46b4e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/171633
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
diff --git a/pkg/nnbd_migration/lib/migration_cli.dart b/pkg/nnbd_migration/lib/migration_cli.dart
index 7a07079..3ded01d 100644
--- a/pkg/nnbd_migration/lib/migration_cli.dart
+++ b/pkg/nnbd_migration/lib/migration_cli.dart
@@ -807,11 +807,6 @@
}
}
- void _fatalErrorReported(String detail) {
- logger.stderr(detail);
- throw MigrationExit(1);
- }
-
void _exceptionReported(String detail) {
if (_hasExceptions) return;
_hasExceptions = true;
@@ -849,6 +844,11 @@
}
}
+ void _fatalErrorReported(String detail) {
+ logger.stderr(detail);
+ throw MigrationExit(1);
+ }
+
void _logErrors(AnalysisResult analysisResult) {
logger.stdout('');
diff --git a/pkg/nnbd_migration/lib/nnbd_migration.dart b/pkg/nnbd_migration/lib/nnbd_migration.dart
index 36027a0..af33d0d 100644
--- a/pkg/nnbd_migration/lib/nnbd_migration.dart
+++ b/pkg/nnbd_migration/lib/nnbd_migration.dart
@@ -330,15 +330,15 @@
/// Check if this migration is being run permissively.
bool get isPermissive;
- void finalizeInput(ResolvedUnitResult result);
-
- void finish();
-
/// Use this getter after any calls to [prepareInput] to obtain a list of URIs
/// of unmigrated dependencies. Ideally, this list should be empty before the
/// user tries to migrate their package.
List<String> get unmigratedDependencies;
+ void finalizeInput(ResolvedUnitResult result);
+
+ void finish();
+
void prepareInput(ResolvedUnitResult result);
void processInput(ResolvedUnitResult result);