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

Function isPropertySymbolTypeRelated

test/fixtures/snapshot/typescript.js:66326–66331  ·  view source on GitHub ↗
(sourceProp, targetProp, getTypeOfSourceProperty, reportErrors, intersectionState)

Source from the content-addressed store, hash-verified

66324 return result || properties;
66325 }
66326 function isPropertySymbolTypeRelated(sourceProp, targetProp, getTypeOfSourceProperty, reportErrors, intersectionState) {
66327 var targetIsOptional = strictNullChecks && !!(ts.getCheckFlags(targetProp) & 48 /* CheckFlags.Partial */);
66328 var effectiveTarget = addOptionality(getNonMissingTypeOfSymbol(targetProp), /*isProperty*/ false, targetIsOptional);
66329 var effectiveSource = getTypeOfSourceProperty(sourceProp);
66330 return isRelatedTo(effectiveSource, effectiveTarget, 3 /* RecursionFlags.Both */, reportErrors, /*headMessage*/ undefined, intersectionState);
66331 }
66332 function propertyRelatedTo(source, target, sourceProp, targetProp, getTypeOfSourceProperty, reportErrors, intersectionState, skipOptional) {
66333 var sourcePropFlags = ts.getDeclarationModifierFlagsFromSymbol(sourceProp);
66334 var targetPropFlags = ts.getDeclarationModifierFlagsFromSymbol(targetProp);

Callers 1

propertyRelatedToFunction · 0.85

Calls 3

addOptionalityFunction · 0.85
isRelatedToFunction · 0.85

Tested by

no test coverage detected