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

Function indexInfoRelatedTo

test/fixtures/snapshot/typescript.js:66785–66796  ·  view source on GitHub ↗
(sourceInfo, targetInfo, reportErrors)

Source from the content-addressed store, hash-verified

66783 return result;
66784 }
66785 function indexInfoRelatedTo(sourceInfo, targetInfo, reportErrors) {
66786 var related = isRelatedTo(sourceInfo.type, targetInfo.type, 3 /* RecursionFlags.Both */, reportErrors);
66787 if (!related && reportErrors) {
66788 if (sourceInfo.keyType === targetInfo.keyType) {
66789 reportError(ts.Diagnostics._0_index_signatures_are_incompatible, typeToString(sourceInfo.keyType));
66790 }
66791 else {
66792 reportError(ts.Diagnostics._0_and_1_index_signatures_are_incompatible, typeToString(sourceInfo.keyType), typeToString(targetInfo.keyType));
66793 }
66794 }
66795 return related;
66796 }
66797 function indexSignaturesRelatedTo(source, target, sourceIsPrimitive, reportErrors, intersectionState) {
66798 if (relation === identityRelation) {
66799 return indexSignaturesIdenticalTo(source, target);

Callers 2

typeRelatedToIndexInfoFunction · 0.85

Calls 3

isRelatedToFunction · 0.85
reportErrorFunction · 0.85
typeToStringFunction · 0.85

Tested by

no test coverage detected