MCPcopy Index your code
hub / github.com/nodejs/node / isDeferredTypeReferenceNode

Function isDeferredTypeReferenceNode

test/fixtures/snapshot/typescript.js:60826–60830  ·  view source on GitHub ↗
(node, hasDefaultTypeArguments)

Source from the content-addressed store, hash-verified

60824 // Return true if the given type reference node is directly aliased or if it needs to be deferred
60825 // because it is possibly contained in a circular chain of eagerly resolved types.
60826 function isDeferredTypeReferenceNode(node, hasDefaultTypeArguments) {
60827 return !!getAliasSymbolForTypeNode(node) || isResolvedByTypeAlias(node) && (node.kind === 183 /* SyntaxKind.ArrayType */ ? mayResolveTypeAlias(node.elementType) :
60828 node.kind === 184 /* SyntaxKind.TupleType */ ? ts.some(node.elements, mayResolveTypeAlias) :
60829 hasDefaultTypeArguments || ts.some(node.typeArguments, mayResolveTypeAlias));
60830 }
60831 // Return true when the given node is transitively contained in type constructs that eagerly
60832 // resolve their constituent types. We include SyntaxKind.TypeReference because type arguments
60833 // of type aliases are eagerly resolved.

Calls 4

isResolvedByTypeAliasFunction · 0.85
mayResolveTypeAliasFunction · 0.85
someMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…