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

Function goPackageReaderFor

src/graph/go-package.ts:31–37  ·  view source on GitHub ↗
(cg: { getProjectRoot(): string })

Source from the content-addressed store, hash-verified

29
30/** `goPackageReader` for a graph's project; none when the root can't be had. */
31export function goPackageReaderFor(cg: { getProjectRoot(): string }): GoPackageOf | undefined {
32 try {
33 return goPackageReader(cg.getProjectRoot());
34 } catch {
35 return undefined;
36 }
37}
38
39/**
40 * A `GoPackageOf` for files under `projectRoot`, reading each file's head once.

Callers 6

filesDefiningSymbolFunction · 0.90
findSymbolMatchesMethod · 0.90
homeQualifiersFunction · 0.90
findAllSymbolsFunction · 0.90
mainFunction · 0.90

Calls 2

goPackageReaderFunction · 0.85
getProjectRootMethod · 0.65

Tested by

no test coverage detected