MCPcopy Create free account
hub / github.com/TruthHun/BookStack / resolveDoc

Function resolveDoc

static/editor.md/lib/codemirror/addon/tern/tern.js:169–173  ·  view source on GitHub ↗
(ts, id)

Source from the content-addressed store, hash-verified

167 }
168
169 function resolveDoc(ts, id) {
170 if (typeof id == "string") return ts.docs[id];
171 if (id instanceof CodeMirror) id = id.getDoc();
172 if (id instanceof CodeMirror.Doc) return findDoc(ts, id);
173 }
174
175 function trackChange(ts, doc, change) {
176 var data = findDoc(ts, doc);

Callers 1

tern.jsFile · 0.85

Calls 1

findDocFunction · 0.85

Tested by

no test coverage detected