(ref: UnresolvedRef, context: ResolutionContext)
| 91 | * its function's. |
| 92 | */ |
| 93 | export function isCppDeclaredTypeRef(ref: UnresolvedRef, context: ResolutionContext): boolean { |
| 94 | if (ref.referenceKind !== 'references' || (ref.language !== 'cpp' && ref.language !== 'c')) return false; |
| 95 | const holder = context.getNodeById?.(ref.fromNodeId); |
| 96 | return !!holder && isCFamily(holder) && (CLASS_KINDS.has(holder.kind) || holder.kind === 'type_alias'); |
| 97 | } |
| 98 | |
| 99 | /** |
| 100 | * The declarations code at `site` can see (visibleFrom), read for code in |
no test coverage detected