Js/check type tags (#24967)

* Check the type expression of `@type` tags

* Update existing tests and baselines
This commit is contained in:
Nathan Shively-Sanders
2018-06-14 13:11:52 -07:00
committed by GitHub
parent 34b9c4dbad
commit 57e652dd02
10 changed files with 96 additions and 9 deletions

View File

@@ -22601,6 +22601,10 @@ namespace ts {
checkSourceElement(node.typeExpression);
}
function checkJSDocTypeTag(node: JSDocTypeTag) {
checkSourceElement(node.typeExpression);
}
function checkJSDocParameterTag(node: JSDocParameterTag) {
checkSourceElement(node.typeExpression);
if (!getParameterSymbolFromJSDoc(node)) {
@@ -25562,6 +25566,8 @@ namespace ts {
case SyntaxKind.JSDocTypedefTag:
case SyntaxKind.JSDocCallbackTag:
return checkJSDocTypeAliasTag(node as JSDocTypedefTag);
case SyntaxKind.JSDocTypeTag:
return checkJSDocTypeTag(node as JSDocTypeTag);
case SyntaxKind.JSDocParameterTag:
return checkJSDocParameterTag(node as JSDocParameterTag);
case SyntaxKind.JSDocFunctionType: