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

Function getInitialOrAssignedType

test/fixtures/snapshot/typescript.js:70431–70436  ·  view source on GitHub ↗
(flow)

Source from the content-addressed store, hash-verified

70429 }
70430 }
70431 function getInitialOrAssignedType(flow) {
70432 var node = flow.node;
70433 return getNarrowableTypeForReference(node.kind === 254 /* SyntaxKind.VariableDeclaration */ || node.kind === 203 /* SyntaxKind.BindingElement */ ?
70434 getInitialType(node) :
70435 getAssignedType(node), reference);
70436 }
70437 function getTypeAtFlowAssignment(flow) {
70438 var node = flow.node;
70439 // Assignments only narrow the computed type if the declared type is a union type. Thus, we

Callers 1

getTypeAtFlowAssignmentFunction · 0.85

Calls 3

getInitialTypeFunction · 0.85
getAssignedTypeFunction · 0.85

Tested by

no test coverage detected