(node: SyntaxNode, source: string)
| 122 | * an error, and reads as any other declaration here. |
| 123 | */ |
| 124 | export 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 |
no test coverage detected