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

Function invertDependencies

scripts/compareAPIs.js:221–234  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

219}
220
221function invertDependencies() {
222 let changedUpstream = new Map();
223 for (let [key, value] of dependantOnLinks.entries()) {
224 for (let name of value) {
225 if (changedUpstream.has(name)) {
226 changedUpstream.get(name).push(key);
227 } else {
228 changedUpstream.set(name, [key]);
229 }
230 }
231 }
232
233 return changedUpstream;
234}
235
236// takes an interface name and follows all the interfaces dependencies to
237// see if the interface changed as a result of a dependency changing

Callers 1

compareFunction · 0.85

Calls 3

pushMethod · 0.80
hasMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected