MCPcopy Index your code
hub / github.com/github/copilot-sdk / countBraces

Function countBraces

scripts/codegen/typescript.ts:224–231  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

222}
223
224function countBraces(line: string): number {
225 let depth = 0;
226 for (const char of line) {
227 if (char === "{") depth++;
228 if (char === "}") depth--;
229 }
230 return depth;
231}
232
233function normalizeExportBlock(block: string): string {
234 return block

Callers 1

splitExportBlocksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…