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

Function goInterfaceMethodTypeNames

src/extraction/languages/go.ts:170–178  ·  view source on GitHub ↗
(method: SyntaxNode, decl: SyntaxNode, source: string)

Source from the content-addressed store, hash-verified

168 * own name is a type the method names (`Children() []Node`).
169 */
170export 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
180export const goExtractor: LanguageExtractor = {
181 functionTypes: ['function_declaration'],

Callers 1

Calls 3

getChildByFieldFunction · 0.90
collectGoTypeNamesFunction · 0.85
goTypeParameterNamesFunction · 0.70

Tested by

no test coverage detected