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

Function getTypeNamesForErrorDisplay

test/fixtures/snapshot/typescript.js:52278–52286  ·  view source on GitHub ↗
(left, right)

Source from the content-addressed store, hash-verified

52276 return result;
52277 }
52278 function getTypeNamesForErrorDisplay(left, right) {
52279 var leftStr = symbolValueDeclarationIsContextSensitive(left.symbol) ? typeToString(left, left.symbol.valueDeclaration) : typeToString(left);
52280 var rightStr = symbolValueDeclarationIsContextSensitive(right.symbol) ? typeToString(right, right.symbol.valueDeclaration) : typeToString(right);
52281 if (leftStr === rightStr) {
52282 leftStr = getTypeNameForErrorDisplay(left);
52283 rightStr = getTypeNameForErrorDisplay(right);
52284 }
52285 return [leftStr, rightStr];
52286 }
52287 function getTypeNameForErrorDisplay(type) {
52288 return typeToString(type, /*enclosingDeclaration*/ undefined, 64 /* TypeFormatFlags.UseFullyQualifiedType */);
52289 }

Callers 3

reportRelationErrorFunction · 0.85
reportUnmatchedPropertyFunction · 0.85
reportOperatorErrorFunction · 0.85

Calls 3

typeToStringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…