We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 031347e commit 650a7f6Copy full SHA for 650a7f6
lib/src/model.dart
@@ -6013,8 +6013,14 @@ class Package extends LibraryContainer
6013
/// was not excluded on the command line.
6014
bool get isLocal {
6015
if (_isLocal == null) {
6016
+ // Document embedder SDK packages only when they are in the same path as
6017
+ // the main package.
6018
+ final partOfEmbedderSdk = packageGraph.hasEmbedderSdk &&
6019
+ packageMeta.isSdk &&
6020
+ packageMeta.resolvedDir
6021
+ .startsWith(packageGraph.packageMeta.resolvedDir);
6022
_isLocal = (packageMeta == packageGraph.packageMeta ||
- packageGraph.hasEmbedderSdk && packageMeta.isSdk ||
6023
+ partOfEmbedderSdk ||
6024
packageGraph.config.autoIncludeDependencies) &&
6025
!packageGraph.config.isPackageExcluded(name);
6026
}
0 commit comments