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

Function goStdlibMethodKey

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

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

Callers 1

goImplementsEdgesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected