Show "<unknown>" if the name of a declaration is unavailable

This commit is contained in:
Andy Hanson
2016-06-30 06:38:18 -07:00
parent 7b77f6b3fd
commit 0535d55a97
2 changed files with 14 additions and 2 deletions

View File

@@ -412,8 +412,7 @@ namespace ts.NavigationBar {
case SyntaxKind.JSDocTypedefTag:
return getJSDocTypedefTagName(<JSDocTypedefTag>node);
default:
Debug.fail();
return "";
return "<unknown>";
}
}