mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Remove value-side JSDoc type lookup fallback
This commit is contained in:
@@ -4444,14 +4444,7 @@ namespace ts {
|
||||
return unknownSymbol;
|
||||
}
|
||||
|
||||
let symbol = resolveEntityName(typeReferenceName, SymbolFlags.Type);
|
||||
if (!symbol && node.kind === SyntaxKind.JSDocTypeReference) {
|
||||
// If the reference didn't resolve to a type, try seeing if results to a
|
||||
// value. If it does, get the type of that value.
|
||||
symbol = resolveEntityName(typeReferenceName, SymbolFlags.Value);
|
||||
}
|
||||
|
||||
return symbol || unknownSymbol;
|
||||
return resolveEntityName(typeReferenceName, SymbolFlags.Type) || unknownSymbol;
|
||||
}
|
||||
|
||||
function getTypeReferenceType(node: TypeReferenceNode | ExpressionWithTypeArguments | JSDocTypeReference, symbol: Symbol) {
|
||||
|
||||
Reference in New Issue
Block a user