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

Function visitObjectType

test/fixtures/snapshot/typescript.js:47901–47920  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

47899 visitType(interfaceT.thisType);
47900 }
47901 function visitObjectType(type) {
47902 var resolved = resolveStructuredTypeMembers(type);
47903 for (var _i = 0, _a = resolved.indexInfos; _i < _a.length; _i++) {
47904 var info = _a[_i];
47905 visitType(info.keyType);
47906 visitType(info.type);
47907 }
47908 for (var _b = 0, _c = resolved.callSignatures; _b < _c.length; _b++) {
47909 var signature = _c[_b];
47910 visitSignature(signature);
47911 }
47912 for (var _d = 0, _e = resolved.constructSignatures; _d < _e.length; _d++) {
47913 var signature = _e[_d];
47914 visitSignature(signature);
47915 }
47916 for (var _f = 0, _g = resolved.properties; _f < _g.length; _f++) {
47917 var p = _g[_f];
47918 visitSymbol(p);
47919 }
47920 }
47921 function visitSymbol(symbol) {
47922 if (!symbol) {
47923 return false;

Callers 2

visitTypeFunction · 0.85
visitInterfaceTypeFunction · 0.85

Calls 4

visitTypeFunction · 0.85
visitSignatureFunction · 0.85
visitSymbolFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…