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

Function deepBraces

__tests__/kernel-deep-nesting.test.ts:109–111  ·  view source on GitHub ↗

The reporter's repro: a C function body of `depth` nested blocks.

(depth: number)

Source from the content-addressed store, hash-verified

107
108/** The reporter's repro: a C function body of `depth` nested blocks. */
109function deepBraces(depth: number): string {
110 return `void foo(void) {\n${'{'.repeat(depth)}${'}'.repeat(depth)}\n}\n`;
111}
112
113const ENV_KEYS = ['CODEGRAPH_KERNEL', 'CODEGRAPH_KERNEL_LANGS', 'CODEGRAPH_KERNEL_PATH'] as const;
114let savedEnv: Record<string, string | undefined>;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected