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

Function getTypeOfInitializer

test/fixtures/snapshot/typescript.js:69767–69773  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

69765 return getTypeWithDefault(type, node.initializer);
69766 }
69767 function getTypeOfInitializer(node) {
69768 // Return the cached type if one is available. If the type of the variable was inferred
69769 // from its initializer, we'll already have cached the type. Otherwise we compute it now
69770 // without caching such that transient types are reflected.
69771 var links = getNodeLinks(node);
69772 return links.resolvedType || getTypeOfExpression(node);
69773 }
69774 function getInitialTypeOfVariableDeclaration(node) {
69775 if (node.initializer) {
69776 return getTypeOfInitializer(node.initializer);

Calls 2

getNodeLinksFunction · 0.85
getTypeOfExpressionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…