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