@@ -153,20 +153,19 @@ class Package extends LibraryContainer
153
153
bool get isLocal {
154
154
if (_isLocal == null ) {
155
155
_isLocal = (
156
- // Document as local if this is the default package.
157
- packageMeta == packageGraph.packageMeta ||
158
- // Assume we want to document an embedded SDK as local if
159
- // it has libraries defined in the default package.
160
- // TODO(jcollins-g): Handle case where embedder SDKs can be
161
- // assembled from multiple locations?
162
- packageGraph.hasEmbedderSdk &&
163
- packageMeta.isSdk &&
164
- libraries.any (
165
- (l) => path. isWithin ( packageGraph.packageMeta.dir.path,
156
+ // Document as local if this is the default package.
157
+ packageMeta == packageGraph.packageMeta ||
158
+ // Assume we want to document an embedded SDK as local if
159
+ // it has libraries defined in the default package.
160
+ // TODO(jcollins-g): Handle case where embedder SDKs can be
161
+ // assembled from multiple locations?
162
+ packageGraph.hasEmbedderSdk &&
163
+ packageMeta.isSdk &&
164
+ libraries.any ((l) => path. isWithin (
165
+ packageGraph.packageMeta.dir.path,
166
166
(l.element.source.fullName))) ||
167
- // autoIncludeDependencies means everything is local.
168
- packageGraph.config.autoIncludeDependencies
169
- ) &&
167
+ // autoIncludeDependencies means everything is local.
168
+ packageGraph.config.autoIncludeDependencies) &&
170
169
// Regardless of the above rules, do not document as local if
171
170
// we excluded this package by name.
172
171
! packageGraph.config.isPackageExcluded (name);
0 commit comments