Skip to content

Fix for analysis hints #2014

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/src/model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5671,7 +5671,7 @@ class PackageGraph {
lib ??= Library(e.enclosingElement.library, packageGraph);
// (TODO:keertip) Find a better way to exclude members of extensions
// when libraries are specified using the "--include" flag
if (lib?.isDocumented) {
if (lib?.isDocumented == true) {
return ModelElement.from(e, lib, packageGraph);
}
}
Expand Down
3 changes: 1 addition & 2 deletions test/model_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2100,13 +2100,12 @@ void main() {
});

group('Extension', () {
Extension ext, anExt, fancyList;
Extension ext, fancyList;
Method s;
List<Extension> extensions;

setUpAll(() {
ext = exLibrary.extensions.firstWhere((e) => e.name == 'AppleExtension');
anExt = exLibrary.extensions.firstWhere((e) => e.name == 'AnExtension');
fancyList = exLibrary.extensions.firstWhere((e) => e.name == 'FancyList');
extensions = exLibrary.publicExtensions.toList();
});
Expand Down