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

Function getInitialType

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

Source from the content-addressed store, hash-verified

69784 return errorType;
69785 }
69786 function getInitialType(node) {
69787 return node.kind === 254 /* SyntaxKind.VariableDeclaration */ ?
69788 getInitialTypeOfVariableDeclaration(node) :
69789 getInitialTypeOfBindingElement(node);
69790 }
69791 function isEmptyArrayAssignment(node) {
69792 return node.kind === 254 /* SyntaxKind.VariableDeclaration */ && node.initializer &&
69793 isEmptyArrayLiteral(node.initializer) ||

Callers 2

getInitialOrAssignedTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…