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

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

Issue 1711353003: update setAnalysisRoots to accept package spec file (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge Created 4 years, 10 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 // This file has been automatically generated. Please do not edit it manually. 5 // This file has been automatically generated. Please do not edit it manually.
6 // To regenerate the file, use the script 6 // To regenerate the file, use the script
7 // "pkg/analysis_server/tool/spec/generate_files". 7 // "pkg/analysis_server/tool/spec/generate_files".
8 8
9 /** 9 /**
10 * Convenience methods for running integration tests 10 * Convenience methods for running integration tests
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 * 422 *
423 * A list of the files and directories that should be analyzed. 423 * A list of the files and directories that should be analyzed.
424 * 424 *
425 * excluded ( List<FilePath> ) 425 * excluded ( List<FilePath> )
426 * 426 *
427 * A list of the files and directories within the included directories that 427 * A list of the files and directories within the included directories that
428 * should not be analyzed. 428 * should not be analyzed.
429 * 429 *
430 * packageRoots ( optional Map<FilePath, FilePath> ) 430 * packageRoots ( optional Map<FilePath, FilePath> )
431 * 431 *
432 * A mapping from source directories to target directories that should 432 * A mapping from source directories to package roots that should override
433 * override the normal package: URI resolution mechanism. The analyzer will 433 * the normal package: URI resolution mechanism.
434 * behave as though each source directory in the map contains a special 434 *
435 * If a package root is a directory, then the analyzer will behave as
436 * though the associated source directory in the map contains a special
435 * pubspec.yaml file which resolves any package: URI to the corresponding 437 * pubspec.yaml file which resolves any package: URI to the corresponding
436 * path within the target directory. The effect is the same as specifying 438 * path within that package root directory. The effect is the same as
437 * the target directory as a "--package_root" parameter to the Dart VM when 439 * specifying the package root directory as a "--package_root" parameter to
438 * executing any Dart file inside the source directory. 440 * the Dart VM when executing any Dart file inside the source directory.
441 *
442 * If a package root is a file, then the analyzer will behave as though
443 * that file is a ".packages" file in the source directory. The effect is
444 * the same as specifying the file as a "--packages" parameter to the Dart
445 * VM when executing any Dart file inside the source directory.
439 * 446 *
440 * Files in any directories that are not overridden by this mapping have 447 * Files in any directories that are not overridden by this mapping have
441 * their package: URI's resolved using the normal pubspec.yaml mechanism. 448 * their package: URI's resolved using the normal pubspec.yaml mechanism.
442 * If this field is absent, or the empty map is specified, that indicates 449 * If this field is absent, or the empty map is specified, that indicates
443 * that the normal pubspec.yaml mechanism should always be used. 450 * that the normal pubspec.yaml mechanism should always be used.
444 */ 451 */
445 Future sendAnalysisSetAnalysisRoots(List<String> included, List<String> exclud ed, {Map<String, String> packageRoots}) { 452 Future sendAnalysisSetAnalysisRoots(List<String> included, List<String> exclud ed, {Map<String, String> packageRoots}) {
446 var params = new AnalysisSetAnalysisRootsParams(included, excluded, packageR oots: packageRoots).toJson(); 453 var params = new AnalysisSetAnalysisRootsParams(included, excluded, packageR oots: packageRoots).toJson();
447 return server.send("analysis.setAnalysisRoots", params) 454 return server.send("analysis.setAnalysisRoots", params)
448 .then((result) { 455 .then((result) {
(...skipping 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after
1795 case "execution.launchData": 1802 case "execution.launchData":
1796 expect(params, isExecutionLaunchDataParams); 1803 expect(params, isExecutionLaunchDataParams);
1797 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode r, 'params', params)); 1804 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode r, 'params', params));
1798 break; 1805 break;
1799 default: 1806 default:
1800 fail('Unexpected notification: $event'); 1807 fail('Unexpected notification: $event');
1801 break; 1808 break;
1802 } 1809 }
1803 } 1810 }
1804 } 1811 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/context_manager.dart ('k') | pkg/analysis_server/tool/spec/generated/java/AnalysisServer.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698