Skip to content

Commit 9c1de3c

Browse files
committed
dartfmt
1 parent e0904ee commit 9c1de3c

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

lib/src/model/package.dart

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -153,20 +153,19 @@ class Package extends LibraryContainer
153153
bool get isLocal {
154154
if (_isLocal == null) {
155155
_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,
166166
(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) &&
170169
// Regardless of the above rules, do not document as local if
171170
// we excluded this package by name.
172171
!packageGraph.config.isPackageExcluded(name);

0 commit comments

Comments
 (0)