| 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 /** | 306 /** |
| 307 * The package resolver provider used to override the way package URI's are | 307 * The package resolver provider used to override the way package URI's are |
| 308 * resolved in some contexts. | 308 * resolved in some contexts. |
| 309 */ | 309 */ |
| 310 ResolverProvider packageResolverProvider; | 310 ResolverProvider packageResolverProvider; |
| 311 | 311 |
| 312 /** | 312 /** |
| 313 * If this flag is `true`, then single analysis context should be used for | 313 * If this flag is `true`, then single analysis context should be used for |
| 314 * analysis of multiple analysis roots, special files that could otherwise | 314 * analysis of multiple analysis roots, special files that could otherwise |
| 315 * cause creating additional contexts, such as `pubspec.yaml`, or `.packages`, | 315 * cause creating additional contexts, such as `pubspec.yaml`, or `.packages`, |
| 316 * or `.analysis_options` are ignored. | 316 * or analysis options are ignored. |
| 317 */ | 317 */ |
| 318 bool useSingleContextManager = false; | 318 bool useSingleContextManager = false; |
| 319 | 319 |
| 320 /** | 320 /** |
| 321 * The plugins that are defined outside the analysis_server package. | 321 * The plugins that are defined outside the analysis_server package. |
| 322 */ | 322 */ |
| 323 List<Plugin> _userDefinedPlugins = <Plugin>[]; | 323 List<Plugin> _userDefinedPlugins = <Plugin>[]; |
| 324 | 324 |
| 325 SocketServer socketServer; | 325 SocketServer socketServer; |
| 326 | 326 |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 */ | 611 */ |
| 612 static void _rollLogFiles(String path, int numOld) { | 612 static void _rollLogFiles(String path, int numOld) { |
| 613 for (int i = numOld - 1; i >= 0; i--) { | 613 for (int i = numOld - 1; i >= 0; i--) { |
| 614 try { | 614 try { |
| 615 String oldPath = i == 0 ? path : '$path.$i'; | 615 String oldPath = i == 0 ? path : '$path.$i'; |
| 616 new File(oldPath).renameSync('$path.${i+1}'); | 616 new File(oldPath).renameSync('$path.${i+1}'); |
| 617 } catch (e) {} | 617 } catch (e) {} |
| 618 } | 618 } |
| 619 } | 619 } |
| 620 } | 620 } |
| OLD | NEW |