File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6603,10 +6603,7 @@ namespace ts {
66036603 const start = scanner . getStartPos ( ) ;
66046604 let children : JSDocParameterTag [ ] ;
66056605 while ( child = tryParse ( ( ) => parseChildParameterOrPropertyTag ( PropertyLikeParse . Parameter , name ) ) ) {
6606- if ( ! children ) {
6607- children = [ ] ;
6608- }
6609- children . push ( child ) ;
6606+ children = append ( children , child ) ;
66106607 }
66116608 if ( children ) {
66126609 jsdocTypeLiteral = < JSDocTypeLiteral > createNode ( SyntaxKind . JSDocTypeLiteral , start ) ;
@@ -6723,10 +6720,7 @@ namespace ts {
67236720 }
67246721 }
67256722 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 ) ;
67306724 }
67316725 }
67326726 if ( jsdocTypeLiteral ) {
You can’t perform that action at this time.
0 commit comments