@@ -11,10 +11,9 @@ import 'package:dartdoc/src/model/container.dart';
1111import 'package:dartdoc/src/model/library.dart' ;
1212import 'package:dartdoc/src/model/model_element.dart' ;
1313import 'package:dartdoc/src/model/package_graph.dart' ;
14- import 'package:dartdoc/src/model/privacy.dart' ;
1514
1615/// Something that has a name.
17- mixin Nameable implements Privacy {
16+ mixin Nameable {
1817 String get name;
1918
2019 /// A qualified name, mostly for use in the web search functionality, and for
@@ -27,7 +26,16 @@ mixin Nameable implements Privacy {
2726 /// The name to use in breadcrumbs in the rendered documentation.
2827 String get breadcrumbName => name;
2928
30- @override
29+ /// Whether this is "package-public."
30+ ///
31+ /// A "package-public" element satisfies the following requirements:
32+ /// * is not documented with the `@nodoc` directive,
33+ /// * for a library, is found in a package's top-level 'lib' directory, and
34+ /// not found in it's 'lib/src' directory,
35+ /// * for a library member, is in a _public_ library's exported namespace, and
36+ /// is not privately named, nor an unnamed extension,
37+ /// * for a container (class, enum, extension, extension type, mixin) member,
38+ /// is in a _public_ container, and is not privately named.
3139 bool get isPublic => name.isNotEmpty && ! name.startsWith ('_' );
3240
3341 @override
0 commit comments