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

Function goStdlibMethodKey

src/resolution/callback-synthesizer.ts:837–839  ·  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

835 * spelled so it is no directory of the project's.
836 */
837function goStdlibMethodKey(importPath: string | null, name: string): string {
838 return GO_EXPORTED_NAME.test(name) ? name : `std:${importPath ?? ''}\0${name}`;
839}
840/** What a Go type has, or an interface asks for. */
841interface GoMethodNames {
842 /**

Callers 1

goImplementsEdgesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected