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

Function goStdlibMethodKey

src/resolution/callback-synthesizer.ts:901–903  ·  view source on GitHub ↗

* goMethodKey for a method of a standard-library type: its name, and * for an unexported one (`testing.TB`'s `private`) the declaring package, * spelled so it is no directory of the project's.

(importPath: string | null, name: string)

Source from the content-addressed store, hash-verified

899 * spelled so it is no directory of the project's.
900 */
901function goStdlibMethodKey(importPath: string | null, name: string): string {
902 return GO_EXPORTED_NAME.test(name) ? name : `std:${importPath ?? ''}\0${name}`;
903}
904/** What a Go type has, or an interface asks for. */
905interface GoMethodNames {
906 /**

Callers 1

goImplementsEdgesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected