File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5831,7 +5831,6 @@ namespace ts {
58315831
58325832 if ( ! name ) {
58335833 parseErrorAtPosition ( pos , 0 , Diagnostics . Identifier_expected ) ;
5834- return undefined ;
58355834 }
58365835
58375836 let preName : Identifier , postName : Identifier ;
Original file line number Diff line number Diff line change @@ -2989,7 +2989,8 @@ namespace ts {
29892989 switch ( tag . kind ) {
29902990 case SyntaxKind . JSDocTypeTag :
29912991 case SyntaxKind . JSDocParameterTag :
2992- let tagWithExpression = < JSDocTypeTag | JSDocParameterTag > tag ;
2992+ case SyntaxKind . JSDocReturnTag :
2993+ let tagWithExpression = < JSDocTypeTag | JSDocParameterTag | JSDocReturnTag > tag ;
29932994 if ( tagWithExpression . typeExpression ) {
29942995 insideJsDocTagExpression = tagWithExpression . typeExpression . pos < position && position < tagWithExpression . typeExpression . end ;
29952996 }
Original file line number Diff line number Diff line change 2222////
2323////// @pa /*7*/
2424////var v7;
25+ ////
26+ /////** @param { n/*8*/ } */
27+ ////var v8;
28+ ////
29+ /////** @return { n/*9*/ } */
30+ ////var v9;
2531
2632goTo . marker ( '1' ) ;
2733verify . completionListContains ( "constructor" ) ;
@@ -48,3 +54,9 @@ verify.completionListIsEmpty();
4854goTo . marker ( '7' ) ;
4955verify . completionListIsEmpty ( ) ;
5056
57+ goTo . marker ( '8' ) ;
58+ verify . completionListContains ( 'number' ) ;
59+
60+ goTo . marker ( '9' ) ;
61+ verify . completionListContains ( 'number' ) ;
62+
You can’t perform that action at this time.
0 commit comments