File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
src/lib/converter/plugins Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -386,9 +386,10 @@ export class CommentPlugin extends ConverterComponent {
386
386
) ;
387
387
388
388
if ( tag ) {
389
- parameter . comment = new Comment (
390
- Comment . cloneDisplayParts ( tag . content )
391
- ) ;
389
+ if ( ! parameter . comment ) {
390
+ parameter . comment = new Comment ( ) ;
391
+ }
392
+ parameter . comment . summary = Comment . cloneDisplayParts ( tag . content ) ;
392
393
}
393
394
} ) ;
394
395
@@ -542,6 +543,18 @@ function moveNestedParamTags(comment: Comment, parameter: ParameterReflection) {
542
543
}
543
544
}
544
545
} ,
546
+ reference ( ) {
547
+ comment . blockTags . filter (
548
+ ( t ) =>
549
+ t . tag === "@param" &&
550
+ t . name ?. startsWith ( `${ parameter . name } .` )
551
+ ) . forEach ( tag => {
552
+ if ( ! parameter . comment ) {
553
+ parameter . comment = new Comment ( ) ;
554
+ }
555
+ parameter . comment . blockTags . push ( tag ) ;
556
+ } )
557
+ } ,
545
558
// #1876, also do this for unions/intersections.
546
559
union ( u ) {
547
560
u . types . forEach ( ( t ) => t . visit ( visitor ) ) ;
You can’t perform that action at this time.
0 commit comments