| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 /** | 5 /** |
| 6 * Support for interacting with an analysis server that is running in a separate | 6 * Support for interacting with an analysis server that is running in a separate |
| 7 * process. | 7 * process. |
| 8 */ | 8 */ |
| 9 import 'dart:async'; | 9 import 'dart:async'; |
| 10 import 'dart:collection'; | 10 import 'dart:collection'; |
| (...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 if (diagnosticPort != null) { | 682 if (diagnosticPort != null) { |
| 683 arguments.add('--port'); | 683 arguments.add('--port'); |
| 684 arguments.add(diagnosticPort.toString()); | 684 arguments.add(diagnosticPort.toString()); |
| 685 } | 685 } |
| 686 if (sdkPath != null) { | 686 if (sdkPath != null) { |
| 687 arguments.add('--sdk=$sdkPath'); | 687 arguments.add('--sdk=$sdkPath'); |
| 688 } | 688 } |
| 689 if (useAnalysisHighlight2) { | 689 if (useAnalysisHighlight2) { |
| 690 arguments.add('--useAnalysisHighlight2'); | 690 arguments.add('--useAnalysisHighlight2'); |
| 691 } | 691 } |
| 692 if (enableNewAnalysisDriver) { | 692 if (!enableNewAnalysisDriver) { |
| 693 arguments.add('--enable-new-analysis-driver'); | 693 arguments.add('--disable-new-analysis-driver'); |
| 694 } | 694 } |
| 695 // stdout.writeln('Launching $serverPath'); | 695 // stdout.writeln('Launching $serverPath'); |
| 696 // stdout.writeln('$dartBinary ${arguments.join(' ')}'); | 696 // stdout.writeln('$dartBinary ${arguments.join(' ')}'); |
| 697 _process = await Process.start(dartBinary, arguments); | 697 _process = await Process.start(dartBinary, arguments); |
| 698 _process.exitCode.then((int code) { | 698 _process.exitCode.then((int code) { |
| 699 if (code != 0) { | 699 if (code != 0) { |
| 700 throw new StateError('Server terminated with exit code $code'); | 700 throw new StateError('Server terminated with exit code $code'); |
| 701 } | 701 } |
| 702 }); | 702 }); |
| 703 _listenToOutput(); | 703 _listenToOutput(); |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1090 if (buffer.length > 0) { | 1090 if (buffer.length > 0) { |
| 1091 buffer.writeln(); | 1091 buffer.writeln(); |
| 1092 buffer.writeln(); | 1092 buffer.writeln(); |
| 1093 } | 1093 } |
| 1094 buffer.writeln(filePath); | 1094 buffer.writeln(filePath); |
| 1095 _writeErrors(' Expected ', expectedErrors); | 1095 _writeErrors(' Expected ', expectedErrors); |
| 1096 buffer.writeln(); | 1096 buffer.writeln(); |
| 1097 _writeErrors(' Found ', actualErrors); | 1097 _writeErrors(' Found ', actualErrors); |
| 1098 } | 1098 } |
| 1099 } | 1099 } |
| OLD | NEW |