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; | |
6 | |
7 import 'dart:async'; | 5 import 'dart:async'; |
8 import 'dart:io'; | 6 import 'dart:io'; |
9 import 'dart:math'; | 7 import 'dart:math'; |
10 | 8 |
11 import 'package:analysis_server/src/analysis_server.dart'; | 9 import 'package:analysis_server/src/analysis_server.dart'; |
12 import 'package:analysis_server/src/plugin/server_plugin.dart'; | 10 import 'package:analysis_server/src/plugin/server_plugin.dart'; |
13 import 'package:analysis_server/src/provisional/completion/dart/completion_plugi
n.dart'; | 11 import 'package:analysis_server/src/provisional/completion/dart/completion_plugi
n.dart'; |
14 import 'package:analysis_server/src/server/diagnostic_server.dart'; | 12 import 'package:analysis_server/src/server/diagnostic_server.dart'; |
15 import 'package:analysis_server/src/server/http_server.dart'; | 13 import 'package:analysis_server/src/server/http_server.dart'; |
16 import 'package:analysis_server/src/server/stdio_server.dart'; | 14 import 'package:analysis_server/src/server/stdio_server.dart'; |
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 | 655 |
658 _DiagnosticServerImpl(); | 656 _DiagnosticServerImpl(); |
659 | 657 |
660 @override | 658 @override |
661 Future<int> getServerPort() => httpServer.serveHttp(); | 659 Future<int> getServerPort() => httpServer.serveHttp(); |
662 | 660 |
663 Future startOnPort(int port) { | 661 Future startOnPort(int port) { |
664 return httpServer.serveHttp(port); | 662 return httpServer.serveHttp(port); |
665 } | 663 } |
666 } | 664 } |
OLD | NEW |