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

Function analyzeFile

lib/web/tern/tern.js:281–289  ·  view source on GitHub ↗
(srv, file)

Source from the content-addressed store, hash-verified

279 }
280
281 function analyzeFile(srv, file) {
282 infer.withContext(srv.cx, function() {
283 file.scope = srv.cx.topScope;
284 srv.signal("beforeLoad", file);
285 infer.analyze(file.ast, file.name, file.scope);
286 srv.signal("afterLoad", file);
287 });
288 return file;
289 }
290
291 function ensureFile(srv, name, parent, text) {
292 var known = srv.findFile(name);

Callers 1

analyzeAllFunction · 0.85

Calls 1

signalMethod · 0.80

Tested by

no test coverage detected