File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ bool isPrivate(Element e) =>
55
55
bool isPublic (Element e) {
56
56
if (isPrivate (e)) return false ;
57
57
// check to see if element is part of the public api, that is it does not
58
- // have a '# nodoc' in the documentation comment
58
+ // have a '<nodoc>' or '@ nodoc' in the documentation comment
59
59
if (e is PropertyAccessorElement && e.isSynthetic) {
60
60
var accessor = (e as PropertyAccessorElement );
61
61
if (accessor.correspondingSetter != null &&
@@ -70,7 +70,9 @@ bool isPublic(Element e) {
70
70
}
71
71
72
72
var docComment = e.documentationComment;
73
- if (docComment != null && docComment.contains ('<nodoc>' )) return false ;
73
+ if (docComment != null &&
74
+ (docComment.contains ('<nodoc>' ) || docComment.contains ('@nodoc' )))
75
+ return false ;
74
76
return true ;
75
77
}
76
78
Original file line number Diff line number Diff line change @@ -263,6 +263,11 @@ class unDocumented {
263
263
String s;
264
264
}
265
265
266
+ /// @nodoc
267
+ class unDocumented2 {
268
+ String s;
269
+ }
270
+
266
271
abstract class _PrivateAbstractClass {
267
272
void test () {
268
273
print ("Hello World" );
You can’t perform that action at this time.
0 commit comments