(line: string)
| 83 | } |
| 84 | |
| 85 | function 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 | |
| 97 | function countParentheses(line: string): number { |
| 98 | let delta = 0; |
no outgoing calls
no test coverage detected