File tree 3 files changed +14
-2
lines changed
3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -5831,7 +5831,6 @@ namespace ts {
5831
5831
5832
5832
if ( ! name ) {
5833
5833
parseErrorAtPosition ( pos , 0 , Diagnostics . Identifier_expected ) ;
5834
- return undefined ;
5835
5834
}
5836
5835
5837
5836
let preName : Identifier , postName : Identifier ;
Original file line number Diff line number Diff line change @@ -2989,7 +2989,8 @@ namespace ts {
2989
2989
switch ( tag . kind ) {
2990
2990
case SyntaxKind . JSDocTypeTag :
2991
2991
case SyntaxKind . JSDocParameterTag :
2992
- let tagWithExpression = < JSDocTypeTag | JSDocParameterTag > tag ;
2992
+ case SyntaxKind . JSDocReturnTag :
2993
+ let tagWithExpression = < JSDocTypeTag | JSDocParameterTag | JSDocReturnTag > tag ;
2993
2994
if ( tagWithExpression . typeExpression ) {
2994
2995
insideJsDocTagExpression = tagWithExpression . typeExpression . pos < position && position < tagWithExpression . typeExpression . end ;
2995
2996
}
Original file line number Diff line number Diff line change 22
22
////
23
23
////// @pa /*7*/
24
24
////var v7;
25
+ ////
26
+ /////** @param { n/*8*/ } */
27
+ ////var v8;
28
+ ////
29
+ /////** @return { n/*9*/ } */
30
+ ////var v9;
25
31
26
32
goTo . marker ( '1' ) ;
27
33
verify . completionListContains ( "constructor" ) ;
@@ -48,3 +54,9 @@ verify.completionListIsEmpty();
48
54
goTo . marker ( '7' ) ;
49
55
verify . completionListIsEmpty ( ) ;
50
56
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