* 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)
| 835 | * spelled so it is no directory of the project's. |
| 836 | */ |
| 837 | function 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. */ |
| 841 | interface GoMethodNames { |
| 842 | /** |