MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / resolveDoc

Function resolveDoc

lib/web/CodeMirror/addon/tern/tern.js:172–176  ·  view source on GitHub ↗
(ts, id)

Source from the content-addressed store, hash-verified

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

Callers 1

tern.jsFile · 0.85

Calls 1

findDocFunction · 0.85

Tested by

no test coverage detected