Does the graph contain a class/struct named `name`'s last segment?
(name: string, ref: UnresolvedRef, context: ResolutionContext)
| 714 | |
| 715 | /** Does the graph contain a class/struct named `name`'s last segment? */ |
| 716 | function cppClassExists(name: string, ref: UnresolvedRef, context: ResolutionContext): boolean { |
| 717 | const last = cppLastSegment(name); |
| 718 | return context |
| 719 | .getNodesByName(last) |
| 720 | .some((n) => (n.kind === 'class' || n.kind === 'struct') && n.language === ref.language); |
| 721 | } |
| 722 | |
| 723 | /** |
| 724 | * Infer the class produced by a C++ call/construction expression, using return |
no test coverage detected