MCPcopy Index your code
hub / github.com/ternjs/tern / findFile

Function findFile

lib/bootstrap.js:55–60  ·  view source on GitHub ↗
(file, projectDir, fallbackDir, options)

Source from the content-addressed store, hash-verified

53}
54
55function findFile(file, projectDir, fallbackDir, options) {
56 var local = path.resolve(projectDir, file);
57 if (!options.disableLoadingLocal && fs.existsSync(local)) return local;
58 var shared = path.resolve(fallbackDir, file);
59 if (fs.existsSync(shared)) return shared;
60}
61
62var distDir = path.resolve(__dirname, "..");
63

Callers 2

findDefsFunction · 0.85
loadPluginsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…