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) =>
5555bool isPublic (Element e) {
5656 if (isPrivate (e)) return false ;
5757 // 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
5959 if (e is PropertyAccessorElement && e.isSynthetic) {
6060 var accessor = (e as PropertyAccessorElement );
6161 if (accessor.correspondingSetter != null &&
@@ -70,7 +70,9 @@ bool isPublic(Element e) {
7070 }
7171
7272 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 ;
7476 return true ;
7577}
7678
Original file line number Diff line number Diff line change @@ -263,6 +263,11 @@ class unDocumented {
263263 String s;
264264}
265265
266+ /// @nodoc
267+ class unDocumented2 {
268+ String s;
269+ }
270+
266271abstract class _PrivateAbstractClass {
267272 void test () {
268273 print ("Hello World" );
You can’t perform that action at this time.
0 commit comments