MCPcopy Index your code
hub / github.com/adobe/react-spectrum / visit

Function visit

scripts/compareAPIs.js:202–216  ·  view source on GitHub ↗
(iname)

Source from the content-addressed store, hash-verified

200 let visited = new Set();
201 let changedDeps = [];
202 function visit(iname) {
203 if (visited.has(iname)) {
204 return;
205 }
206 visited.add(iname);
207 let dependencies = dependantOnLinks.get(iname);
208 if (dependencies && dependencies.length > 0) {
209 for (let dep of dependencies) {
210 if (allChanged.has(dep)) {
211 changedDeps.push(dep);
212 }
213 visit(dep);
214 }
215 }
216 }
217 visit(iname);
218 return changedDeps;
219}

Callers 5

followDependenciesFunction · 0.70
extractStarter.mjsFile · 0.70
createFeedFunction · 0.70

Calls 3

pushMethod · 0.80
hasMethod · 0.65
addMethod · 0.65

Tested by

no test coverage detected