Does the graph contain a class/struct named `name`'s last segment?
(name: string, ref: UnresolvedRef, context: ResolutionContext)
| 800 | |
| 801 | /** Does the graph contain a class/struct named `name`'s last segment? */ |
| 802 | function cppClassExists(name: string, ref: UnresolvedRef, context: ResolutionContext): boolean { |
| 803 | const last = cppLastSegment(name); |
| 804 | return context |
| 805 | .getNodesByName(last) |
| 806 | .some((n) => (n.kind === 'class' || n.kind === 'struct') && n.language === ref.language); |
| 807 | } |
| 808 | |
| 809 | /** |
| 810 | * Infer the class produced by a C++ call/construction expression, using return |
no test coverage detected