MCPcopy Index your code
hub / github.com/csev/py4e / propagate

Function propagate

tools/pythonauto/static/codemirror/codemirror.js:5182–5191  ·  view source on GitHub ↗
(doc, skip, sharedHist)

Source from the content-addressed store, hash-verified

5180
5181 function linkedDocs(doc, f, sharedHistOnly) {
5182 function propagate(doc, skip, sharedHist) {
5183 if (doc.linked) for (var i = 0; i < doc.linked.length; ++i) {
5184 var rel = doc.linked[i];
5185 if (rel.doc == skip) continue;
5186 var shared = sharedHist && rel.sharedHist;
5187 if (sharedHistOnly && !shared) continue;
5188 f(rel.doc, shared);
5189 propagate(rel.doc, doc, shared);
5190 }
5191 }
5192 propagate(doc, null, true);
5193 }
5194

Callers 1

linkedDocsFunction · 0.70

Calls 1

fFunction · 0.50

Tested by

no test coverage detected