@@ -20,24 +20,21 @@ const {
2020 deprecatedBlock,
2121 inheritDocTag,
2222} = parseDocComment (doc );
23- const throwsBlocks = customBlocks .filter (
24- (block ) =>
25- // Throws blocks are defined by the `@throws` tag.
26- block .blockTag .tagNameWithUpperCase === StandardTags .throws .tagNameWithUpperCase ,
27- );
28- const exampleBlocks = customBlocks .filter (
29- (block ) =>
30- // Example blocks are defined by the `@example` tag.
31- block .blockTag .tagNameWithUpperCase === StandardTags .example .tagNameWithUpperCase ,
32- );
33- const modifierTags = modifierTagSet .nodes .filter (
34- (tag ) =>
35- // Do not display the `@public` and `@packageDocumentation` tags.
36- ! [
37- StandardTags .packageDocumentation .tagNameWithUpperCase ,
38- StandardTags .public .tagNameWithUpperCase ,
39- ].includes (tag .tagNameWithUpperCase ),
40- );
23+ const throwsBlocks = customBlocks .filter ((block ) => {
24+ // Throws blocks are defined by the `@throws` tag.
25+ return block .blockTag .tagNameWithUpperCase === StandardTags .throws .tagNameWithUpperCase ;
26+ });
27+ const exampleBlocks = customBlocks .filter ((block ) => {
28+ // Example blocks are defined by the `@example` tag.
29+ return block .blockTag .tagNameWithUpperCase === StandardTags .example .tagNameWithUpperCase ;
30+ });
31+ const modifierTags = modifierTagSet .nodes .filter ((tag ) => {
32+ // Do not display the `@public` and `@packageDocumentation` tags.
33+ return ! [
34+ StandardTags .packageDocumentation .tagNameWithUpperCase ,
35+ StandardTags .public .tagNameWithUpperCase ,
36+ ].includes (tag .tagNameWithUpperCase );
37+ });
4138---
4239
4340{
0 commit comments