MCPcopy Create free account
hub / github.com/getsentry/XcodeBuildMCP / countBraces

Function countBraces

src/utils/swift-test-discovery.ts:85–95  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

83}
84
85function countBraces(line: string): number {
86 let delta = 0;
87 for (const character of line) {
88 if (character === '{') {
89 delta += 1;
90 } else if (character === '}') {
91 delta -= 1;
92 }
93 }
94 return delta;
95}
96
97function countParentheses(line: string): number {
98 let delta = 0;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected