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

Function linkedDocs

tools/pythonauto/static/codemirrorepl/codemirror.js:6399–6411  ·  view source on GitHub ↗
(doc, f, sharedHistOnly)

Source from the content-addressed store, hash-verified

6397
6398 // Call f for all linked documents.
6399 function linkedDocs(doc, f, sharedHistOnly) {
6400 function propagate(doc, skip, sharedHist) {
6401 if (doc.linked) for (var i = 0; i < doc.linked.length; ++i) {
6402 var rel = doc.linked[i];
6403 if (rel.doc == skip) continue;
6404 var shared = sharedHist && rel.sharedHist;
6405 if (sharedHistOnly && !shared) continue;
6406 f(rel.doc, shared);
6407 propagate(rel.doc, doc, shared);
6408 }
6409 }
6410 propagate(doc, null, true);
6411 }
6412
6413 // Attach a document to an editor.
6414 function attachDoc(cm, doc) {

Callers 6

makeChangeInnerFunction · 0.70
makeChangeFromHistoryFunction · 0.70
markTextSharedFunction · 0.70
detachSharedMarkersFunction · 0.70
codemirror.jsFile · 0.70
historyChangeFromChangeFunction · 0.70

Calls 1

propagateFunction · 0.70

Tested by

no test coverage detected