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

Function dartDirectiveFile

src/resolution/dart-libraries.ts:550–553  ·  view source on GitHub ↗
(from: string, uri: string, context: ResolutionContext)

Source from the content-addressed store, hash-verified

548 * which.
549 */
550export function dartDirectiveFile(from: string, uri: string, context: ResolutionContext): string | null {
551 const files = resolveDartUri(from, uri, context, memoFor(context));
552 return files.length === 1 ? files[0]! : null;
553}
554
555/** The files declaring `library <name>;`. */
556function libraryFilesNamed(name: string, context: ResolutionContext, memo: Memo): readonly string[] {

Callers 1

resolveViaImportFunction · 0.90

Calls 2

resolveDartUriFunction · 0.85
memoForFunction · 0.70

Tested by

no test coverage detected