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

Function linkedDocs

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

Source from the content-addressed store, hash-verified

5179 eventMixin(Doc);
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
5195 function attachDoc(cm, doc) {
5196 if (doc.cm) throw new Error("This document is already in use.");

Callers 5

makeChangeNoReadonlyFunction · 0.70
makeChangeFromHistoryFunction · 0.70
markTextSharedFunction · 0.70
codemirror.jsFile · 0.70
historyChangeFromChangeFunction · 0.70

Calls 1

propagateFunction · 0.70

Tested by

no test coverage detected