| Index: pkg/analysis_server/lib/src/server/driver.dart
|
| diff --git a/pkg/analysis_server/lib/src/server/driver.dart b/pkg/analysis_server/lib/src/server/driver.dart
|
| index a96f054495fbc03fa5fabea87ba9b89435588d0e..fec24785f66b1c87cc4a26d72ba19fdab4b6911f 100644
|
| --- a/pkg/analysis_server/lib/src/server/driver.dart
|
| +++ b/pkg/analysis_server/lib/src/server/driver.dart
|
| @@ -277,6 +277,12 @@ class Driver implements ServerStarter {
|
| static const String NEW_ANALYSIS_DRIVER_LOG = 'new-analysis-driver-log';
|
|
|
| /**
|
| + * The name of the option used to enable verbose Flutter completion code generation.
|
| + */
|
| + static const String VERBOSE_FLUTTER_COMPLETIONS =
|
| + 'verbose-flutter-completions';
|
| +
|
| + /**
|
| * The name of the flag used to disable the index.
|
| */
|
| static const String NO_INDEX = "no-index";
|
| @@ -398,6 +404,8 @@ class Driver implements ServerStarter {
|
| analysisServerOptions.fileReadMode = results[FILE_READ_MODE];
|
| analysisServerOptions.newAnalysisDriverLog =
|
| results[NEW_ANALYSIS_DRIVER_LOG];
|
| + analysisServerOptions.enableVerboseFlutterCompletions =
|
| + results[VERBOSE_FLUTTER_COMPLETIONS];
|
|
|
| _initIncrementalLogger(results[INCREMENTAL_RESOLUTION_LOG]);
|
|
|
| @@ -564,6 +572,8 @@ class Driver implements ServerStarter {
|
| negatable: false);
|
| parser.addOption(NEW_ANALYSIS_DRIVER_LOG,
|
| help: "set a destination for the new analysis driver's log");
|
| + parser.addOption(VERBOSE_FLUTTER_COMPLETIONS,
|
| + help: "enable verbose code completion for Flutter (experimental)");
|
| parser.addOption(PORT_OPTION,
|
| help: "the http diagnostic port on which the server provides"
|
| " status and performance information");
|
| @@ -666,10 +676,10 @@ class _DiagnosticServerImpl extends DiagnosticServer {
|
|
|
| _DiagnosticServerImpl();
|
|
|
| + @override
|
| + Future<int> getServerPort() => httpServer.serveHttp();
|
| +
|
| Future startOnPort(int port) {
|
| return httpServer.serveHttp(port);
|
| }
|
| -
|
| - @override
|
| - Future<int> getServerPort() => httpServer.serveHttp();
|
| }
|
|
|