| 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 |
| 11 import 'package:analysis_server/plugin/plugin.dart'; | |
| 12 import 'package:analysis_server/src/analysis_server.dart'; | 11 import 'package:analysis_server/src/analysis_server.dart'; |
| 13 import 'package:analysis_server/src/plugin/plugin_impl.dart'; | |
| 14 import 'package:analysis_server/src/plugin/server_plugin.dart'; | 12 import 'package:analysis_server/src/plugin/server_plugin.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'; |
| 17 import 'package:analysis_server/src/socket_server.dart'; | 15 import 'package:analysis_server/src/socket_server.dart'; |
| 18 import 'package:analysis_server/starter.dart'; | 16 import 'package:analysis_server/starter.dart'; |
| 19 import 'package:analyzer/file_system/physical_file_system.dart'; | 17 import 'package:analyzer/file_system/physical_file_system.dart'; |
| 20 import 'package:analyzer/instrumentation/file_instrumentation.dart'; | 18 import 'package:analyzer/instrumentation/file_instrumentation.dart'; |
| 21 import 'package:analyzer/instrumentation/instrumentation.dart'; | 19 import 'package:analyzer/instrumentation/instrumentation.dart'; |
| 20 import 'package:analyzer/options.dart'; |
| 21 import 'package:analyzer/plugin/plugin.dart'; |
| 22 import 'package:analyzer/src/generated/engine.dart'; | 22 import 'package:analyzer/src/generated/engine.dart'; |
| 23 import 'package:analyzer/src/generated/incremental_logger.dart'; | 23 import 'package:analyzer/src/generated/incremental_logger.dart'; |
| 24 import 'package:analyzer/src/generated/java_io.dart'; | 24 import 'package:analyzer/src/generated/java_io.dart'; |
| 25 import 'package:analyzer/src/generated/sdk.dart'; | 25 import 'package:analyzer/src/generated/sdk.dart'; |
| 26 import 'package:analyzer/src/generated/sdk_io.dart'; | 26 import 'package:analyzer/src/generated/sdk_io.dart'; |
| 27 import 'package:analyzer/options.dart'; | 27 import 'package:analyzer/src/plugin/plugin_impl.dart'; |
| 28 import 'package:args/args.dart'; | 28 import 'package:args/args.dart'; |
| 29 | 29 |
| 30 /** | 30 /** |
| 31 * Initializes incremental logger. | 31 * Initializes incremental logger. |
| 32 * | 32 * |
| 33 * Supports following formats of [spec]: | 33 * Supports following formats of [spec]: |
| 34 * | 34 * |
| 35 * "console" - log to the console; | 35 * "console" - log to the console; |
| 36 * "file:/some/file/name" - log to the file, overwritten on start. | 36 * "file:/some/file/name" - log to the file, overwritten on start. |
| 37 */ | 37 */ |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 uuidFile.parent.createSync(recursive: true); | 410 uuidFile.parent.createSync(recursive: true); |
| 411 uuidFile.writeAsStringSync(uuid); | 411 uuidFile.writeAsStringSync(uuid); |
| 412 } catch (exception, stackTrace) { | 412 } catch (exception, stackTrace) { |
| 413 service.logPriorityException(exception, stackTrace); | 413 service.logPriorityException(exception, stackTrace); |
| 414 // Slightly alter the uuid to indicate it was not persisted | 414 // Slightly alter the uuid to indicate it was not persisted |
| 415 uuid = 'temp-$uuid'; | 415 uuid = 'temp-$uuid'; |
| 416 } | 416 } |
| 417 return uuid; | 417 return uuid; |
| 418 } | 418 } |
| 419 } | 419 } |
| OLD | NEW |