| 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 test.integration.analysis; | 5 library test.integration.analysis; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 import 'dart:convert'; | 9 import 'dart:convert'; |
| 10 import 'dart:io'; | 10 import 'dart:io'; |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 findRoot(Platform.script.toFilePath(windows: Platform.isWindows)); | 606 findRoot(Platform.script.toFilePath(windows: Platform.isWindows)); |
| 607 String serverPath = normalize(join(rootDir, 'bin', 'server.dart')); | 607 String serverPath = normalize(join(rootDir, 'bin', 'server.dart')); |
| 608 List<String> arguments = []; | 608 List<String> arguments = []; |
| 609 if (debugServer) { | 609 if (debugServer) { |
| 610 arguments.add('--debug'); | 610 arguments.add('--debug'); |
| 611 } | 611 } |
| 612 if (profileServer) { | 612 if (profileServer) { |
| 613 arguments.add('--observe'); | 613 arguments.add('--observe'); |
| 614 arguments.add('--pause-isolates-on-exit'); | 614 arguments.add('--pause-isolates-on-exit'); |
| 615 } | 615 } |
| 616 if (Platform.packageRoot.isNotEmpty) { | 616 if (Platform.packageRoot != null) { |
| 617 arguments.add('--package-root=${Platform.packageRoot}'); | 617 arguments.add('--package-root=${Platform.packageRoot}'); |
| 618 } | 618 } |
| 619 arguments.add('--checked'); | 619 arguments.add('--checked'); |
| 620 arguments.add(serverPath); | 620 arguments.add(serverPath); |
| 621 if (diagnosticPort != null) { | 621 if (diagnosticPort != null) { |
| 622 arguments.add('--port'); | 622 arguments.add('--port'); |
| 623 arguments.add(diagnosticPort.toString()); | 623 arguments.add(diagnosticPort.toString()); |
| 624 } | 624 } |
| 625 if (useAnalysisHighlight2) { | 625 if (useAnalysisHighlight2) { |
| 626 arguments.add('--useAnalysisHighlight2'); | 626 arguments.add('--useAnalysisHighlight2'); |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 883 void populateMismatches(item, List<MismatchDescriber> mismatches); | 883 void populateMismatches(item, List<MismatchDescriber> mismatches); |
| 884 | 884 |
| 885 /** | 885 /** |
| 886 * Create a [MismatchDescriber] describing a mismatch with a simple string. | 886 * Create a [MismatchDescriber] describing a mismatch with a simple string. |
| 887 */ | 887 */ |
| 888 MismatchDescriber simpleDescription(String description) => | 888 MismatchDescriber simpleDescription(String description) => |
| 889 (Description mismatchDescription) { | 889 (Description mismatchDescription) { |
| 890 mismatchDescription.add(description); | 890 mismatchDescription.add(description); |
| 891 }; | 891 }; |
| 892 } | 892 } |
| OLD | NEW |