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

Function optionalChainContainsReference

test/fixtures/snapshot/typescript.js:69406–69414  ·  view source on GitHub ↗
(source, target)

Source from the content-addressed store, hash-verified

69404 return false;
69405 }
69406 function optionalChainContainsReference(source, target) {
69407 while (ts.isOptionalChain(source)) {
69408 source = source.expression;
69409 if (isMatchingReference(source, target)) {
69410 return true;
69411 }
69412 }
69413 return false;
69414 }
69415 function isDiscriminantProperty(type, name) {
69416 if (type && type.flags & 1048576 /* TypeFlags.Union */) {
69417 var prop = getUnionOrIntersectionProperty(type, name);

Callers 6

getTypeAtSwitchClauseFunction · 0.85
narrowTypeByTruthinessFunction · 0.85
narrowTypeByTypeofFunction · 0.85
narrowTypeByInstanceofFunction · 0.85

Calls 1

isMatchingReferenceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…