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

Function declaringFileAnswers

src/resolution/ambient-modules.ts:775–777  ·  view source on GitHub ↗
(declaringFile: string, fromFile: string, context: ResolutionContext)

Source from the content-addressed store, hash-verified

773
774/** Whether a `declare module` in `declaringFile` counts for a file in `fromFile` (see reachesProgram). */
775export function declaringFileAnswers(declaringFile: string, fromFile: string, context: ResolutionContext): boolean {
776 return reachesProgram(declaringFile, isTestCode(declaringFile), fromFile, isTestCode(fromFile), context);
777}
778
779/** The script declarations of `specifier` an import in `fromFile` can mean (see reachesProgram), the files nearest it first. */
780function declarationsFor(specifier: string, fromFile: string, context: ResolutionContext): AmbientModule[] {

Callers 1

reachesAmbientModuleFunction · 0.90

Calls 2

reachesProgramFunction · 0.85
isTestCodeFunction · 0.70

Tested by

no test coverage detected