File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -2102,8 +2102,14 @@ namespace ts {
2102
2102
if ( isDeclaration ( name . parent ) ) {
2103
2103
return name . parent . name === name ;
2104
2104
}
2105
- const binExp = name . parent . parent ;
2106
- return isBinaryExpression ( binExp ) && getSpecialPropertyAssignmentKind ( binExp ) !== SpecialPropertyAssignmentKind . None && getNameOfDeclaration ( binExp ) === name ;
2105
+ else if ( isQualifiedName ( name . parent ) ) {
2106
+ const tag = name . parent . parent ;
2107
+ return isJSDocParameterTag ( tag ) && tag . name === name . parent ;
2108
+ }
2109
+ else {
2110
+ const binExp = name . parent . parent ;
2111
+ return isBinaryExpression ( binExp ) && getSpecialPropertyAssignmentKind ( binExp ) !== SpecialPropertyAssignmentKind . None && getNameOfDeclaration ( binExp ) === name ;
2112
+ }
2107
2113
default :
2108
2114
return false ;
2109
2115
}
Original file line number Diff line number Diff line change 8
8
//// * @param {string } o.x - a thing, its ok
9
9
//// * @param {number } o.y - another thing
10
10
//// * @param {Object } o.nested - very nested
11
- //// * @param {boolean } o.nested.[|great|] - much greatness
11
+ //// * @param {boolean } o.nested.[|{| "isWriteAccess": true, "isDefinition": true |} great|] - much greatness
12
12
//// * @param {number } o.nested.times - twice? probably!??
13
13
//// */
14
14
//// function f(o) { return o.nested.[|great|]; }
15
15
16
- verify . rangesReferenceEachOther ( ) ;
16
+ verify . singleReferenceGroup ( "(property) great: boolean" ) ;
You can’t perform that action at this time.
0 commit comments