Fix bug: JSDocPropertyTag is a declaration (#23876)

This commit is contained in:
Andy
2018-05-03 14:19:15 -07:00
committed by GitHub
parent 8c07c5b837
commit 406ca06e8e
2 changed files with 17 additions and 1 deletions

View File

@@ -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) {

View 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();