MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / declaredIn

Function declaredIn

src/resolution/callback-synthesizer.ts:2951–2951  ·  view source on GitHub ↗
(f: string)

Source from the content-addressed store, hash-verified

2949 return m ? m[2]! : null;
2950 };
2951 const declaredIn = (f: string) => ctx.getNodesInFile(f).filter((n) => n.name === name && CONSTANT_KINDS.has(n.kind));
2952 const js = /\.(?:[cm]?[jt]sx?)$/.test(file);
2953 const language: Language = /\.tsx$/.test(file) ? 'tsx' : /\.[cm]?ts$/.test(file) ? 'typescript' : file.endsWith('.jsx') ? 'jsx' : 'javascript';
2954 const importedFile = (local: string): string | null => {

Callers 1

constantEventNameFunction · 0.70

Calls 2

hasMethod · 0.80
getNodesInFileMethod · 0.65

Tested by

no test coverage detected