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

Function getFile

lib/web/CodeMirror/addon/tern/tern.js:150–158  ·  view source on GitHub ↗
(ts, name, c)

Source from the content-addressed store, hash-verified

148 var bigDoc = 250;
149
150 function getFile(ts, name, c) {
151 var buf = ts.docs[name];
152 if (buf)
153 c(docValue(ts, buf));
154 else if (ts.options.getFile)
155 ts.options.getFile(name, c);
156 else
157 c(null);
158 }
159
160 function findDoc(ts, doc, name) {
161 for (var n in ts.docs) {

Callers 2

tern.jsFile · 0.70
WorkerServerFunction · 0.70

Calls 3

docValueFunction · 0.85
getFileMethod · 0.80
cFunction · 0.50

Tested by

no test coverage detected