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

Function cppNamespaceAliasWalk

src/resolution/cpp-namespaces.ts:56–63  ·  view source on GitHub ↗
(context: ResolutionContext)

Source from the content-addressed store, hash-verified

54 * and U+2029 end a line in one and not the other).
55 */
56export function cppNamespaceAliasWalk(context: ResolutionContext): { add(file: string, source: string): void; finish(): void } | null {
57 if (CPP_NS_ALIASES.has(context)) return null;
58 const aliases = new Map<string, string>();
59 return {
60 add: (file, source) => addNamespaceAliases(file, source, aliases),
61 finish: () => { CPP_NS_ALIASES.set(context, aliases); },
62 };
63}
64
65/**
66 * The project's namespace-opening macros — `#define FMT_BEGIN_NAMESPACE

Callers 2

readMethod · 0.90

Calls 3

addNamespaceAliasesFunction · 0.85
hasMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected