MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / unresolved

Function unresolved

__tests__/cpp-base-class-lookup.test.ts:390–396  ·  view source on GitHub ↗

The base names a class's file names that stay unresolved.

(qualifiedName: string, file: string)

Source from the content-addressed store, hash-verified

388
389/** The base names a class's file names that stay unresolved. */
390function unresolved(qualifiedName: string, file: string): string[] {
391 return cg
392 .getUnresolvedReferencesFrom(node(qualifiedName, file).id)
393 .filter((r) => r.referenceKind === 'extends' || r.referenceKind === 'implements')
394 .map((r) => r.referenceName)
395 .sort();
396}
397
398describe('a C++ base class is the one name lookup finds from the deriving class', () => {
399 it('finds the base in the namespaces around the class, not a namesake elsewhere', () => {

Callers 1

Calls 3

mapMethod · 0.80
nodeFunction · 0.70

Tested by

no test coverage detected