Skip to content

Commit b63550c

Browse files
jwrenCommit Bot
authored and
Commit Bot
committed
Change reference from .packages to .dart_tool/package_config.json in the analysis server spec_input.html
Bug: #48272 Change-Id: Ica02829fbf9309327210e67d059d4606bb58b528 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/235282 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Jaime Wren <[email protected]>
1 parent 62628e4 commit b63550c

File tree

6 files changed

+20
-17
lines changed

6 files changed

+20
-17
lines changed

pkg/analysis_server/doc/api.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,8 @@ <h4>parameters:</h4><dl><dt class="field"><b>included: List&lt;<a href="#type_Fi
973973
</p>
974974
<p>
975975
If a package root is a file, then the analyzer
976-
will behave as though that file is a ".packages" file in the
976+
will behave as though that file is a
977+
".dart_tool/package_config.json" file in the
977978
source directory. The effect is the same as specifying the file
978979
as a "--packages" parameter to the Dart VM when
979980
executing any Dart file inside the source directory.

pkg/analysis_server/lib/protocol/protocol_generated.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -2583,9 +2583,9 @@ class AnalysisSetAnalysisRootsParams implements RequestParams {
25832583
/// the normal package: URI resolution mechanism.
25842584
///
25852585
/// If a package root is a file, then the analyzer will behave as though that
2586-
/// file is a ".packages" file in the source directory. The effect is the
2587-
/// same as specifying the file as a "--packages" parameter to the Dart VM
2588-
/// when executing any Dart file inside the source directory.
2586+
/// file is a ".dart_tool/package_config.json" file in the source directory.
2587+
/// The effect is the same as specifying the file as a "--packages" parameter
2588+
/// to the Dart VM when executing any Dart file inside the source directory.
25892589
///
25902590
/// Files in any directories that are not overridden by this mapping have
25912591
/// their package: URI's resolved using the normal pubspec.yaml mechanism. If

pkg/analysis_server/test/integration/support/integration_test_methods.dart

+4-3
Original file line numberDiff line numberDiff line change
@@ -500,9 +500,10 @@ abstract class IntegrationTestMixin {
500500
/// the normal package: URI resolution mechanism.
501501
///
502502
/// If a package root is a file, then the analyzer will behave as though
503-
/// that file is a ".packages" file in the source directory. The effect is
504-
/// the same as specifying the file as a "--packages" parameter to the Dart
505-
/// VM when executing any Dart file inside the source directory.
503+
/// that file is a ".dart_tool/package_config.json" file in the source
504+
/// directory. The effect is the same as specifying the file as a
505+
/// "--packages" parameter to the Dart VM when executing any Dart file
506+
/// inside the source directory.
506507
///
507508
/// Files in any directories that are not overridden by this mapping have
508509
/// their package: URI's resolved using the normal pubspec.yaml mechanism.

pkg/analysis_server/tool/spec/generated/java/AnalysisServer.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,12 @@ public interface AnalysisServer {
216216
* not be analyzed.
217217
* @param packageRoots A mapping from source directories to package roots that should override the
218218
* normal package: URI resolution mechanism. If a package root is a file, then the analyzer
219-
* will behave as though that file is a ".packages" file in the source directory. The
220-
* effect is the same as specifying the file as a "--packages" parameter to the Dart VM
221-
* when executing any Dart file inside the source directory. Files in any directories that
222-
* are not overridden by this mapping have their package: URI's resolved using the normal
223-
* pubspec.yaml mechanism. If this field is absent, or the empty map is specified, that
224-
* indicates that the normal pubspec.yaml mechanism should always be used.
219+
* will behave as though that file is a ".dart_tool/package_config.json" file in the source
220+
* directory. The effect is the same as specifying the file as a "--packages" parameter to
221+
* the Dart VM when executing any Dart file inside the source directory. Files in any
222+
* directories that are not overridden by this mapping have their package: URI's resolved
223+
* using the normal pubspec.yaml mechanism. If this field is absent, or the empty map is
224+
* specified, that indicates that the normal pubspec.yaml mechanism should always be used.
225225
*/
226226
public void analysis_setAnalysisRoots(List<String> included, List<String> excluded, Map<String, String> packageRoots);
227227

pkg/analysis_server/tool/spec/spec_input.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,8 @@ <h4>Options</h4>
870870
</p>
871871
<p>
872872
If a package root is a file, then the analyzer
873-
will behave as though that file is a ".packages" file in the
873+
will behave as though that file is a
874+
".dart_tool/package_config.json" file in the
874875
source directory. The effect is the same as specifying the file
875876
as a "--packages" parameter to the Dart VM when
876877
executing any Dart file inside the source directory.

pkg/analysis_server_client/lib/src/protocol/protocol_generated.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -2583,9 +2583,9 @@ class AnalysisSetAnalysisRootsParams implements RequestParams {
25832583
/// the normal package: URI resolution mechanism.
25842584
///
25852585
/// If a package root is a file, then the analyzer will behave as though that
2586-
/// file is a ".packages" file in the source directory. The effect is the
2587-
/// same as specifying the file as a "--packages" parameter to the Dart VM
2588-
/// when executing any Dart file inside the source directory.
2586+
/// file is a ".dart_tool/package_config.json" file in the source directory.
2587+
/// The effect is the same as specifying the file as a "--packages" parameter
2588+
/// to the Dart VM when executing any Dart file inside the source directory.
25892589
///
25902590
/// Files in any directories that are not overridden by this mapping have
25912591
/// their package: URI's resolved using the normal pubspec.yaml mechanism. If

0 commit comments

Comments
 (0)