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

Function goAliasTypeNames

src/extraction/languages/go.ts:124–130  ·  view source on GitHub ↗
(node: SyntaxNode, source: string)

Source from the content-addressed store, hash-verified

122 * an error, and reads as any other declaration here.
123 */
124export function goAliasTypeNames(node: SyntaxNode, source: string): SyntaxNode[] {
125 const type = getChildByField(node, 'type');
126 if (!type) return [];
127 const names: SyntaxNode[] = [];
128 collectGoTypeNames(type, goDeclaredNames(node, source), source, names);
129 return names;
130}
131
132/**
133 * The name nodes of the types a Go struct's fields are declared with, in

Callers 1

extractTypeAliasMethod · 0.90

Calls 3

getChildByFieldFunction · 0.90
collectGoTypeNamesFunction · 0.85
goDeclaredNamesFunction · 0.85

Tested by

no test coverage detected