Fix bug: JSDocPropertyTag is a declaration (#23876)

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

No files matched your search

+2 -1
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) {
@@ -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();