| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 /** | 104 /** |
| 105 * The name of the option used to specify if [print] should print to the | 105 * The name of the option used to specify if [print] should print to the |
| 106 * console instead of being intercepted. | 106 * console instead of being intercepted. |
| 107 */ | 107 */ |
| 108 static const String INTERNAL_PRINT_TO_CONSOLE = "internal-print-to-console"; | 108 static const String INTERNAL_PRINT_TO_CONSOLE = "internal-print-to-console"; |
| 109 | 109 |
| 110 /** | 110 /** |
| 111 * The name of the option used to specify if [print] should print to the | 111 * The name of the option used to specify if [print] should print to the |
| 112 * console instead of being intercepted. | 112 * console instead of being intercepted. |
| 113 */ | 113 */ |
| 114 static const String INTERNAL_DELAY_FREQUENCY = 'internal-delay-freqency'; | 114 static const String INTERNAL_DELAY_FREQUENCY = 'internal-delay-frequency'; |
| 115 | 115 |
| 116 /** | 116 /** |
| 117 * The name of the option used to specify the port to which the server will | 117 * The name of the option used to specify the port to which the server will |
| 118 * connect. | 118 * connect. |
| 119 */ | 119 */ |
| 120 static const String PORT_OPTION = "port"; | 120 static const String PORT_OPTION = "port"; |
| 121 | 121 |
| 122 /** | 122 /** |
| 123 * The path to the SDK. | 123 * The path to the SDK. |
| 124 * TODO(paulberry): get rid of this once the 'analysis.updateSdks' request is | 124 * TODO(paulberry): get rid of this once the 'analysis.updateSdks' request is |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 uuidFile.parent.createSync(recursive: true); | 396 uuidFile.parent.createSync(recursive: true); |
| 397 uuidFile.writeAsStringSync(uuid); | 397 uuidFile.writeAsStringSync(uuid); |
| 398 } catch (exception, stackTrace) { | 398 } catch (exception, stackTrace) { |
| 399 service.logPriorityException(exception, stackTrace); | 399 service.logPriorityException(exception, stackTrace); |
| 400 // Slightly alter the uuid to indicate it was not persisted | 400 // Slightly alter the uuid to indicate it was not persisted |
| 401 uuid = 'temp-$uuid'; | 401 uuid = 'temp-$uuid'; |
| 402 } | 402 } |
| 403 return uuid; | 403 return uuid; |
| 404 } | 404 } |
| 405 } | 405 } |
| OLD | NEW |