File tree Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -144,15 +144,34 @@ export class RenderComponenet extends RendererComponent {
144
144
}
145
145
146
146
let parsed ;
147
- if ( reflection . comment . text ) {
147
+ if ( reflection . comment . text ) {
148
148
parsed = this . parser . joinByCharacter ( dataObj [ Constants . COMMENT ] [ Constants . TEXT ] , '\n' ) ;
149
149
reflection . comment . text = parsed ;
150
150
}
151
151
152
- if ( reflection . comment . shortText ) {
152
+ if ( reflection . comment . shortText ) {
153
153
parsed = this . parser . joinByCharacter ( dataObj [ Constants . COMMENT ] [ Constants . SHORT_TEXT ] , '\n' ) ;
154
154
reflection . comment . shortText = parsed ;
155
155
}
156
+
157
+ if ( reflection . comment . tags && dataObj [ Constants . COMMENT ] [ Constants . TAGS ] ) {
158
+ reflection . comment . tags . forEach ( tag => {
159
+ const tagFromJson = dataObj [ Constants . COMMENT ] [ Constants . TAGS ] [ tag . tagName ] ;
160
+ tag . tagName = tagFromJson [ Constants . COMMENT ] . tagName ;
161
+ tag . text = this . parser . joinByCharacter ( tagFromJson [ Constants . COMMENT ] . text , '\n' ) ;
162
+ return tag ;
163
+ } ) ;
164
+ }
165
+
166
+ if ( reflection . parameters && dataObj [ Constants . COMMENT ] [ Constants . PARAMS ] ) {
167
+ reflection . parameters . forEach ( param => {
168
+ const paramFromJson = dataObj [ Constants . COMMENT ] [ Constants . PARAMS ] [ param . name ] ;
169
+ if ( paramFromJson ) {
170
+ param . comment . text = this . parser . joinByCharacter ( paramFromJson [ Constants . COMMENT ] . text , '\n' ) ;
171
+ return param ;
172
+ }
173
+ } ) ;
174
+ }
156
175
}
157
176
158
177
/**
You can’t perform that action at this time.
0 commit comments