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

Function collectLibs

test/fixtures/snapshot/typescript.js:108411–108419  ·  view source on GitHub ↗
(sourceFile, ret)

Source from the content-addressed store, hash-verified

108409 return ret;
108410 }
108411 function collectLibs(sourceFile, ret) {
108412 ts.forEach(sourceFile.libReferenceDirectives, function (ref) {
108413 var lib = host.getLibFileFromReference(ref);
108414 if (lib) {
108415 ret.set(ts.toFileNameLowerCase(ref.fileName), true);
108416 }
108417 });
108418 return ret;
108419 }
108420 function filterBindingPatternInitializers(name) {
108421 if (name.kind === 79 /* SyntaxKind.Identifier */) {
108422 return name;

Callers 1

transformRootFunction · 0.85

Calls 2

forEachMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected