Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit ff9731d

Browse files
jcollins-gcommit-bot@chromium.org
authored andcommitted
Switch migration to the isolate client.
Bug: dart-lang/sdk#41056 Change-Id: I4a3fc8dfd6b3d99589b71fe6e42ff139ed408ed1 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/142901 Reviewed-by: Jaime Wren <[email protected]> Commit-Queue: Janice Collins <[email protected]>
1 parent 489d7b1 commit ff9731d

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

pkg/dartfix/lib/src/migrate/migrate.dart

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import 'dart:io';
88
import 'package:analysis_server_client/handler/notification_handler.dart';
99
import 'package:analysis_server_client/listener/server_listener.dart';
1010
import 'package:analysis_server_client/protocol.dart';
11-
import 'package:analysis_server_client/server.dart';
11+
import 'package:nnbd_migration/isolate_server.dart';
1212
import 'package:args/command_runner.dart';
1313
import 'package:cli_util/cli_logging.dart';
1414
import 'package:nnbd_migration/src/messages.dart';
@@ -88,18 +88,11 @@ class MigrateCommand extends Command {
8888

8989
Map<String, List<AnalysisError>> fileErrors = {};
9090

91-
bool enableAsserts = false;
9291
String instrumentationLogFile;
93-
bool profileServer = false;
94-
String serverPath = options.serverPath;
95-
int servicesPort;
9692
String sdkPath = options.sdkPath;
9793
bool stdioPassthrough = false;
9894

9995
if (options.debug) {
100-
enableAsserts = true;
101-
profileServer = true;
102-
servicesPort = 9500;
10396
stdioPassthrough = true;
10497
instrumentationLogFile = path.join(
10598
Directory.systemTemp.createTempSync('migration_debug').path,
@@ -116,11 +109,7 @@ class MigrateCommand extends Command {
116109
await server.start(
117110
clientId: 'dart $name',
118111
clientVersion: _dartSdkVersion,
119-
enableAsserts: enableAsserts,
120112
instrumentationLogFile: instrumentationLogFile,
121-
profileServer: profileServer,
122-
serverPath: serverPath,
123-
servicesPort: servicesPort,
124113
sdkPath: sdkPath);
125114
_ServerNotifications serverNotifications = _ServerNotifications(server);
126115
await serverNotifications.listenToServer(server);

0 commit comments

Comments
 (0)