MCPcopy Create free account
hub / github.com/nodejs/node / collectFreeIdentifiers

Function collectFreeIdentifiers

test/fixtures/snapshot/typescript.js:152508–152512  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

152506 return name;
152507 }
152508 function collectFreeIdentifiers(file) {
152509 var map = ts.createMultiMap();
152510 forEachFreeIdentifier(file, function (id) { return map.add(id.text, id); });
152511 return map;
152512 }
152513 /**
152514 * A free identifier is an identifier that can be accessed through name lookup as a local variable.
152515 * In the expression `x.y`, `x` is a free identifier, but `y` is not.

Callers 1

convertFileToEsModuleFunction · 0.85

Calls 2

forEachFreeIdentifierFunction · 0.85
addMethod · 0.65

Tested by

no test coverage detected