Skip to content

Commit 595522e

Browse files
committed
for flutter: no docs for dart:_internal and nativewrappers
1 parent 4302037 commit 595522e

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)