| 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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 AnalysisEngine.instance.instrumentationService = service; | 394 AnalysisEngine.instance.instrumentationService = service; |
| 395 // | 395 // |
| 396 // Enable the new task model, if appropriate. | 396 // Enable the new task model, if appropriate. |
| 397 // | 397 // |
| 398 AnalysisEngine.instance.useTaskModel = !results[DISABLE_NEW_TASK_MODEL]; | 398 AnalysisEngine.instance.useTaskModel = !results[DISABLE_NEW_TASK_MODEL]; |
| 399 // | 399 // |
| 400 // Process all of the plugins so that extensions are registered. | 400 // Process all of the plugins so that extensions are registered. |
| 401 // | 401 // |
| 402 ServerPlugin serverPlugin = new ServerPlugin(); | 402 ServerPlugin serverPlugin = new ServerPlugin(); |
| 403 List<Plugin> plugins = <Plugin>[]; | 403 List<Plugin> plugins = <Plugin>[]; |
| 404 plugins.add(AnalysisEngine.instance.enginePlugin); | 404 plugins.addAll(AnalysisEngine.instance.supportedPlugins); |
| 405 plugins.add(serverPlugin); | 405 plugins.add(serverPlugin); |
| 406 plugins.addAll(_userDefinedPlugins); | 406 plugins.addAll(_userDefinedPlugins); |
| 407 ExtensionManager manager = new ExtensionManager(); | 407 ExtensionManager manager = new ExtensionManager(); |
| 408 manager.processPlugins(plugins); | 408 manager.processPlugins(plugins); |
| 409 // | 409 // |
| 410 // Create the sockets and start listening for requests. | 410 // Create the sockets and start listening for requests. |
| 411 // | 411 // |
| 412 socketServer = new SocketServer(analysisServerOptions, defaultSdk, service, | 412 socketServer = new SocketServer(analysisServerOptions, defaultSdk, service, |
| 413 serverPlugin, packageResolverProvider); | 413 serverPlugin, packageResolverProvider); |
| 414 httpServer = new HttpAnalysisServer(socketServer); | 414 httpServer = new HttpAnalysisServer(socketServer); |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 uuidFile.parent.createSync(recursive: true); | 563 uuidFile.parent.createSync(recursive: true); |
| 564 uuidFile.writeAsStringSync(uuid); | 564 uuidFile.writeAsStringSync(uuid); |
| 565 } catch (exception, stackTrace) { | 565 } catch (exception, stackTrace) { |
| 566 service.logPriorityException(exception, stackTrace); | 566 service.logPriorityException(exception, stackTrace); |
| 567 // Slightly alter the uuid to indicate it was not persisted | 567 // Slightly alter the uuid to indicate it was not persisted |
| 568 uuid = 'temp-$uuid'; | 568 uuid = 'temp-$uuid'; |
| 569 } | 569 } |
| 570 return uuid; | 570 return uuid; |
| 571 } | 571 } |
| 572 } | 572 } |
| OLD | NEW |