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

Function serializeIndexSignatures

test/fixtures/snapshot/typescript.js:55236–55251  ·  view source on GitHub ↗
(input, baseType)

Source from the content-addressed store, hash-verified

55234 return results;
55235 }
55236 function serializeIndexSignatures(input, baseType) {
55237 var results = [];
55238 for (var _i = 0, _a = getIndexInfosOfType(input); _i < _a.length; _i++) {
55239 var info = _a[_i];
55240 if (baseType) {
55241 var baseInfo = getIndexInfoOfType(baseType, info.keyType);
55242 if (baseInfo) {
55243 if (isTypeIdenticalTo(info.type, baseInfo.type)) {
55244 continue; // elide identical index signatures
55245 }
55246 }
55247 }
55248 results.push(indexInfoToIndexSignatureDeclarationHelper(info, context, /*typeNode*/ undefined));
55249 }
55250 return results;
55251 }
55252 function serializeBaseType(t, staticType, rootName) {
55253 var ref = trySerializeAsTypeReference(t, 111551 /* SymbolFlags.Value */);
55254 if (ref) {

Callers 2

serializeInterfaceFunction · 0.85
serializeAsClassFunction · 0.85

Calls 5

getIndexInfosOfTypeFunction · 0.85
getIndexInfoOfTypeFunction · 0.85
isTypeIdenticalToFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…