| 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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 } | 379 } |
| 380 | 380 |
| 381 AnalysisServerOptions analysisServerOptions = new AnalysisServerOptions(); | 381 AnalysisServerOptions analysisServerOptions = new AnalysisServerOptions(); |
| 382 analysisServerOptions.enableIncrementalResolutionApi = | 382 analysisServerOptions.enableIncrementalResolutionApi = |
| 383 results[ENABLE_INCREMENTAL_RESOLUTION_API]; | 383 results[ENABLE_INCREMENTAL_RESOLUTION_API]; |
| 384 analysisServerOptions.enableIncrementalResolutionValidation = | 384 analysisServerOptions.enableIncrementalResolutionValidation = |
| 385 results[INCREMENTAL_RESOLUTION_VALIDATION]; | 385 results[INCREMENTAL_RESOLUTION_VALIDATION]; |
| 386 analysisServerOptions.enablePubSummaryManager = | 386 analysisServerOptions.enablePubSummaryManager = |
| 387 results[ENABLE_PUB_SUMMARY_MANAGER]; | 387 results[ENABLE_PUB_SUMMARY_MANAGER]; |
| 388 analysisServerOptions.finerGrainedInvalidation = | 388 analysisServerOptions.finerGrainedInvalidation = |
| 389 true /*results[FINER_GRAINED_INVALIDATION]*/; | 389 results[FINER_GRAINED_INVALIDATION]; |
| 390 analysisServerOptions.noErrorNotification = results[NO_ERROR_NOTIFICATION]; | 390 analysisServerOptions.noErrorNotification = results[NO_ERROR_NOTIFICATION]; |
| 391 analysisServerOptions.noIndex = results[NO_INDEX]; | 391 analysisServerOptions.noIndex = results[NO_INDEX]; |
| 392 analysisServerOptions.useAnalysisHighlight2 = | 392 analysisServerOptions.useAnalysisHighlight2 = |
| 393 results[USE_ANALISYS_HIGHLIGHT2]; | 393 results[USE_ANALISYS_HIGHLIGHT2]; |
| 394 analysisServerOptions.fileReadMode = results[FILE_READ_MODE]; | 394 analysisServerOptions.fileReadMode = results[FILE_READ_MODE]; |
| 395 | 395 |
| 396 _initIncrementalLogger(results[INCREMENTAL_RESOLUTION_LOG]); | 396 _initIncrementalLogger(results[INCREMENTAL_RESOLUTION_LOG]); |
| 397 | 397 |
| 398 // | 398 // |
| 399 // Process all of the plugins so that extensions are registered. | 399 // Process all of the plugins so that extensions are registered. |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 637 */ | 637 */ |
| 638 static void _rollLogFiles(String path, int numOld) { | 638 static void _rollLogFiles(String path, int numOld) { |
| 639 for (int i = numOld - 1; i >= 0; i--) { | 639 for (int i = numOld - 1; i >= 0; i--) { |
| 640 try { | 640 try { |
| 641 String oldPath = i == 0 ? path : '$path.$i'; | 641 String oldPath = i == 0 ? path : '$path.$i'; |
| 642 new File(oldPath).renameSync('$path.${i+1}'); | 642 new File(oldPath).renameSync('$path.${i+1}'); |
| 643 } catch (e) {} | 643 } catch (e) {} |
| 644 } | 644 } |
| 645 } | 645 } |
| 646 } | 646 } |
| OLD | NEW |