mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 07:13:45 -05:00
Fix bug: JSDocPropertyTag is a declaration (#23876)
This commit is contained in:
@@ -6065,7 +6065,8 @@ namespace ts {
|
||||
|| kind === SyntaxKind.TypeAliasDeclaration
|
||||
|| kind === SyntaxKind.TypeParameter
|
||||
|| kind === SyntaxKind.VariableDeclaration
|
||||
|| kind === SyntaxKind.JSDocTypedefTag;
|
||||
|| kind === SyntaxKind.JSDocTypedefTag
|
||||
|| kind === SyntaxKind.JSDocPropertyTag;
|
||||
}
|
||||
|
||||
function isDeclarationStatementKind(kind: SyntaxKind) {
|
||||
|
||||
15
tests/cases/fourslash/findAllRefsTypedef.ts
Normal file
15
tests/cases/fourslash/findAllRefsTypedef.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
// @allowJs: true
|
||||
|
||||
// @Filename: /a.js
|
||||
/////**
|
||||
//// * @typedef I {Object}
|
||||
//// * @prop [|p|] {number}
|
||||
//// */
|
||||
////
|
||||
/////** @type {I} */
|
||||
////let x;
|
||||
////x.[|p|];
|
||||
|
||||
verify.rangesReferenceEachOther();
|
||||
Reference in New Issue
Block a user