Check fullName has value for typedefTag

This commit is contained in:
Zhengbo Li
2017-02-16 14:04:43 -08:00
parent 896e576374
commit f6e9dad838

View File

@@ -1317,7 +1317,7 @@ namespace ts {
// if the node has a fullName "A.B.C", that means symbol "C" was already bound
// when we visit "fullName"; so when we visit the name "C" as the next child of
// the jsDocTypedefTag, we should skip binding it.
if (n === node.name && node.fullName.kind !== SyntaxKind.Identifier) {
if (node.fullName && n === node.name && node.fullName.kind !== SyntaxKind.Identifier) {
return;
}
bind(n);