| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library driver; | 5 library driver; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:io'; | 8 import 'dart:io'; |
| 9 import 'dart:math'; | 9 import 'dart:math'; |
| 10 | 10 |
| (...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 negatable: false); | 554 negatable: false); |
| 555 parser.addOption(INSTRUMENTATION_LOG_FILE, | 555 parser.addOption(INSTRUMENTATION_LOG_FILE, |
| 556 help: | 556 help: |
| 557 "the path of the file to which instrumentation data will be written"
); | 557 "the path of the file to which instrumentation data will be written"
); |
| 558 parser.addFlag(INTERNAL_PRINT_TO_CONSOLE, | 558 parser.addFlag(INTERNAL_PRINT_TO_CONSOLE, |
| 559 help: "enable sending `print` output to the console", | 559 help: "enable sending `print` output to the console", |
| 560 defaultsTo: false, | 560 defaultsTo: false, |
| 561 negatable: false); | 561 negatable: false); |
| 562 parser.addOption(NEW_ANALYSIS_DRIVER_LOG, | 562 parser.addOption(NEW_ANALYSIS_DRIVER_LOG, |
| 563 help: "set a destination for the new analysis driver's log"); | 563 help: "set a destination for the new analysis driver's log"); |
| 564 parser.addOption(VERBOSE_FLUTTER_COMPLETIONS, | 564 parser.addFlag(VERBOSE_FLUTTER_COMPLETIONS, |
| 565 help: "enable verbose code completion for Flutter (experimental)"); | 565 help: "enable verbose code completion for Flutter (experimental)"); |
| 566 parser.addOption(PORT_OPTION, | 566 parser.addOption(PORT_OPTION, |
| 567 help: "the http diagnostic port on which the server provides" | 567 help: "the http diagnostic port on which the server provides" |
| 568 " status and performance information"); | 568 " status and performance information"); |
| 569 parser.addOption(INTERNAL_DELAY_FREQUENCY); | 569 parser.addOption(INTERNAL_DELAY_FREQUENCY); |
| 570 parser.addOption(SDK_OPTION, help: "[path] the path to the sdk"); | 570 parser.addOption(SDK_OPTION, help: "[path] the path to the sdk"); |
| 571 parser.addFlag(NO_INDEX, | 571 parser.addFlag(NO_INDEX, |
| 572 help: "disable indexing sources", defaultsTo: false, negatable: false); | 572 help: "disable indexing sources", defaultsTo: false, negatable: false); |
| 573 parser.addFlag(USE_ANALYSIS_HIGHLIGHT2, | 573 parser.addFlag(USE_ANALYSIS_HIGHLIGHT2, |
| 574 help: "enable version 2 of semantic highlight", | 574 help: "enable version 2 of semantic highlight", |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 665 | 665 |
| 666 _DiagnosticServerImpl(); | 666 _DiagnosticServerImpl(); |
| 667 | 667 |
| 668 @override | 668 @override |
| 669 Future<int> getServerPort() => httpServer.serveHttp(); | 669 Future<int> getServerPort() => httpServer.serveHttp(); |
| 670 | 670 |
| 671 Future startOnPort(int port) { | 671 Future startOnPort(int port) { |
| 672 return httpServer.serveHttp(port); | 672 return httpServer.serveHttp(port); |
| 673 } | 673 } |
| 674 } | 674 } |
| OLD | NEW |