* 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)
| 899 | * spelled so it is no directory of the project's. |
| 900 | */ |
| 901 | function 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. */ |
| 905 | interface GoMethodNames { |
| 906 | /** |