Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(453)

Side by Side Diff: pkg/analysis_server/test/integration/integration_tests.dart

Issue 2606283005: Enable the new analysis driver by default, use --disable-new-analysis-driver to disable. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 if (diagnosticPort != null) { 691 if (diagnosticPort != null) {
692 arguments.add('--port'); 692 arguments.add('--port');
693 arguments.add(diagnosticPort.toString()); 693 arguments.add(diagnosticPort.toString());
694 } 694 }
695 if (sdkPath != null) { 695 if (sdkPath != null) {
696 arguments.add('--sdk=$sdkPath'); 696 arguments.add('--sdk=$sdkPath');
697 } 697 }
698 if (useAnalysisHighlight2) { 698 if (useAnalysisHighlight2) {
699 arguments.add('--useAnalysisHighlight2'); 699 arguments.add('--useAnalysisHighlight2');
700 } 700 }
701 if (enableNewAnalysisDriver) { 701 if (!enableNewAnalysisDriver) {
702 arguments.add('--enable-new-analysis-driver'); 702 arguments.add('--disable-new-analysis-driver');
703 } 703 }
704 // print('Launching $serverPath'); 704 // print('Launching $serverPath');
705 // print('$dartBinary ${arguments.join(' ')}'); 705 // print('$dartBinary ${arguments.join(' ')}');
706 return Process.start(dartBinary, arguments).then((Process process) { 706 return Process.start(dartBinary, arguments).then((Process process) {
707 _process = process; 707 _process = process;
708 process.exitCode.then((int code) { 708 process.exitCode.then((int code) {
709 if (code != 0) { 709 if (code != 0) {
710 _badDataFromServer('server terminated with exit code $code'); 710 _badDataFromServer('server terminated with exit code $code');
711 } 711 }
712 }); 712 });
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
962 void populateMismatches(item, List<MismatchDescriber> mismatches); 962 void populateMismatches(item, List<MismatchDescriber> mismatches);
963 963
964 /** 964 /**
965 * Create a [MismatchDescriber] describing a mismatch with a simple string. 965 * Create a [MismatchDescriber] describing a mismatch with a simple string.
966 */ 966 */
967 MismatchDescriber simpleDescription(String description) => 967 MismatchDescriber simpleDescription(String description) =>
968 (Description mismatchDescription) { 968 (Description mismatchDescription) {
969 mismatchDescription.add(description); 969 mismatchDescription.add(description);
970 }; 970 };
971 } 971 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698