File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -6603,10 +6603,7 @@ namespace ts {
6603
6603
const start = scanner . getStartPos ( ) ;
6604
6604
let children : JSDocParameterTag [ ] ;
6605
6605
while ( child = tryParse ( ( ) => parseChildParameterOrPropertyTag ( PropertyLikeParse . Parameter , name ) ) ) {
6606
- if ( ! children ) {
6607
- children = [ ] ;
6608
- }
6609
- children . push ( child ) ;
6606
+ children = append ( children , child ) ;
6610
6607
}
6611
6608
if ( children ) {
6612
6609
jsdocTypeLiteral = < JSDocTypeLiteral > createNode ( SyntaxKind . JSDocTypeLiteral , start ) ;
@@ -6723,10 +6720,7 @@ namespace ts {
6723
6720
}
6724
6721
}
6725
6722
else {
6726
- if ( ! jsdocTypeLiteral . jsDocPropertyTags ) {
6727
- jsdocTypeLiteral . jsDocPropertyTags = [ ] as MutableNodeArray < JSDocPropertyTag > ;
6728
- }
6729
- ( jsdocTypeLiteral . jsDocPropertyTags as MutableNodeArray < JSDocPropertyTag > ) . push ( child ) ;
6723
+ jsdocTypeLiteral . jsDocPropertyTags = append ( jsdocTypeLiteral . jsDocPropertyTags as MutableNodeArray < JSDocPropertyTag > , child ) ;
6730
6724
}
6731
6725
}
6732
6726
if ( jsdocTypeLiteral ) {
You can’t perform that action at this time.
0 commit comments