(method: SyntaxNode, decl: SyntaxNode, source: string)
| 168 | * own name is a type the method names (`Children() []Node`). |
| 169 | */ |
| 170 | export function goInterfaceMethodTypeNames(method: SyntaxNode, decl: SyntaxNode, source: string): SyntaxNode[] { |
| 171 | const params = goTypeParameterNames(decl, source); |
| 172 | const names: SyntaxNode[] = []; |
| 173 | for (const field of ['parameters', 'result']) { |
| 174 | const part = getChildByField(method, field); |
| 175 | if (part) collectGoTypeNames(part, params, source, names); |
| 176 | } |
| 177 | return names; |
| 178 | } |
| 179 | |
| 180 | export const goExtractor: LanguageExtractor = { |
| 181 | functionTypes: ['function_declaration'], |
no test coverage detected