File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed
src/lib/converter/plugins Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ var CommentPlugin = (function (_super) {
102
102
var rawComment = comment_1 . getRawComment ( node ) ;
103
103
if ( ! rawComment )
104
104
return ;
105
- if ( reflection . kindOf ( index_3 . ReflectionKind . FunctionOrMethod ) ) {
105
+ if ( reflection . kindOf ( index_3 . ReflectionKind . FunctionOrMethod ) || ( reflection . kindOf ( index_3 . ReflectionKind . Event ) && reflection [ 'signatures' ] ) ) {
106
106
var comment = comment_1 . parseComment ( rawComment , reflection . comment ) ;
107
107
this . applyModifiers ( reflection , comment ) ;
108
108
}
Original file line number Diff line number Diff line change @@ -70,7 +70,9 @@ var ImplementsPlugin = (function (_super) {
70
70
if ( target instanceof index_1 . SignatureReflection && target . parameters &&
71
71
source instanceof index_1 . SignatureReflection && source . parameters ) {
72
72
for ( var index = 0 , count = target . parameters . length ; index < count ; index ++ ) {
73
- target . parameters [ index ] . comment . copyFrom ( source . parameters [ index ] . comment ) ;
73
+ if ( target . parameters [ index ] . comment ) {
74
+ target . parameters [ index ] . comment . copyFrom ( source . parameters [ index ] . comment ) ;
75
+ }
74
76
}
75
77
}
76
78
}
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ export class CommentPlugin extends ConverterComponent
169
169
var rawComment = getRawComment ( node ) ;
170
170
if ( ! rawComment ) return ;
171
171
172
- if ( reflection . kindOf ( ReflectionKind . FunctionOrMethod ) ) {
172
+ if ( reflection . kindOf ( ReflectionKind . FunctionOrMethod ) || ( reflection . kindOf ( ReflectionKind . Event ) && reflection [ 'signatures' ] ) ) {
173
173
var comment = parseComment ( rawComment , reflection . comment ) ;
174
174
this . applyModifiers ( reflection , comment ) ;
175
175
} else if ( reflection . kindOf ( ReflectionKind . Module ) ) {
Original file line number Diff line number Diff line change @@ -83,7 +83,9 @@ export class ImplementsPlugin extends ConverterComponent
83
83
if ( target instanceof SignatureReflection && target . parameters &&
84
84
source instanceof SignatureReflection && source . parameters ) {
85
85
for ( var index = 0 , count = target . parameters . length ; index < count ; index ++ ) {
86
- target . parameters [ index ] . comment . copyFrom ( source . parameters [ index ] . comment ) ;
86
+ if ( target . parameters [ index ] . comment ) {
87
+ target . parameters [ index ] . comment . copyFrom ( source . parameters [ index ] . comment ) ;
88
+ }
87
89
}
88
90
}
89
91
}
You can’t perform that action at this time.
0 commit comments