(text: string, openBrace: number)
| 261 | // ── CSS / Anime extraction ─────────────────────────────────────────────────── |
| 262 | |
| 263 | function readBalancedBlock(text: string, openBrace: number): { body: string; end: number } | null { |
| 264 | if (text[openBrace] !== "{") return null; |
| 265 | let depth = 0; |
| 266 | for (let i = openBrace; i < text.length; i++) { |
| 267 | const ch = text[i]; |
| 268 | if (ch === "{") depth++; |
| 269 | else if (ch === "}") { |
| 270 | depth--; |
| 271 | if (depth === 0) { |
| 272 | return { body: text.slice(openBrace + 1, i), end: i + 1 }; |
| 273 | } |
| 274 | } |
| 275 | } |
| 276 | return null; |
| 277 | } |
| 278 | |
| 279 | function parseDeclarations(body: string): string[] { |
| 280 | return body |
no outgoing calls
no test coverage detected