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

Function getFile

static/editor.md/lib/codemirror/addon/tern/tern.js:147–155  ·  view source on GitHub ↗
(ts, name, c)

Source from the content-addressed store, hash-verified

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

Callers 2

tern.jsFile · 0.70
WorkerServerFunction · 0.70

Calls 2

docValueFunction · 0.85
cFunction · 0.50

Tested by

no test coverage detected