MCPcopy Create free account
hub / github.com/ternjs/tern / analyzeFile

Function analyzeFile

lib/tern.js:287–295  ·  view source on GitHub ↗
(srv, file)

Source from the content-addressed store, hash-verified

285 }
286
287 function analyzeFile(srv, file) {
288 infer.withContext(srv.cx, function() {
289 file.scope = srv.cx.topScope;
290 srv.signal("beforeLoad", file);
291 infer.analyze(file.ast, file.name, file.scope);
292 srv.signal("afterLoad", file);
293 });
294 return file;
295 }
296
297 function ensureFile(srv, name, parent, text) {
298 var known = srv.findFile(name);

Callers 1

analyzeAllFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected