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

Function getFlowTypeOfDestructuring

test/fixtures/snapshot/typescript.js:55796–55799  ·  view source on GitHub ↗
(node, declaredType)

Source from the content-addressed store, hash-verified

55794 // We construct a synthetic element access expression corresponding to 'obj.x' such that the control
55795 // flow analyzer doesn't have to handle all the different syntactic forms.
55796 function getFlowTypeOfDestructuring(node, declaredType) {
55797 var reference = getSyntheticElementAccess(node);
55798 return reference ? getFlowTypeOfReference(reference, declaredType) : declaredType;
55799 }
55800 function getSyntheticElementAccess(node) {
55801 var parentAccess = getParentElementAccess(node);
55802 if (parentAccess && parentAccess.flowNode) {

Calls 2

getFlowTypeOfReferenceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…