Skip to content

Commit f2d6bbb

Browse files
committed
Merge pull request #1119 from keertip/flutter
for flutter: no docs for dart:_internal and nativewrappers
2 parents b6d90b2 + 595522e commit f2d6bbb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/src/model_utils.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ bool isInExportedLibraries(
4545
.any((lib) => lib == library || lib.exportedLibraries.contains(library));
4646
}
4747

48-
bool isPrivate(Element e) => e.name.startsWith('_');
48+
bool isPrivate(Element e) =>
49+
e.name.startsWith('_') ||
50+
(e is LibraryElement &&
51+
(e.identifier == 'dart:_internal' ||
52+
e.identifier == 'dart:nativewrappers'));
4953

5054
bool isPublic(Element e) {
5155
if (isPrivate(e)) return false;

0 commit comments

Comments
 (0)