(state: DeclarationScanState, char: string)
| 290 | } |
| 291 | |
| 292 | function updateDeclarationQuote(state: DeclarationScanState, char: string): boolean { |
| 293 | if (state.quote) { |
| 294 | if (char === state.quote) state.quote = null; |
| 295 | return true; |
| 296 | } |
| 297 | if (char === '"' || char === "'") { |
| 298 | state.quote = char; |
| 299 | return true; |
| 300 | } |
| 301 | return false; |
| 302 | } |
| 303 | |
| 304 | function updateDeclarationBracketDepth(state: DeclarationScanState, char: string): void { |
| 305 | if (char === '[') { |
no outgoing calls
no test coverage detected