(node: SyntaxNode)
| 200 | * in a member's type. Objective-C shares it (objc.ts). |
| 201 | */ |
| 202 | export function definingDeclaration(node: SyntaxNode): SyntaxNode | null { |
| 203 | if (!isClassLikeDefinition(node)) return null; |
| 204 | const parent = node.parent; |
| 205 | return parent?.type === 'declaration' && getChildByField(parent, 'type')?.id === node.id ? parent : null; |
| 206 | } |
| 207 | |
| 208 | /** |
| 209 | * The name of an unnamed class, struct, union or enum that a declaration |
no test coverage detected