(input)
| 310 | } |
| 311 | |
| 312 | function colorizeLines(input) { |
| 313 | let state = {}; |
| 314 | let output = []; |
| 315 | for (let i = 0; i < input.length; i++) { |
| 316 | let line = rewindState(state, input[i]); |
| 317 | state = readState(line); |
| 318 | let temp = Object.assign({}, state); |
| 319 | output.push(unwindState(temp, line)); |
| 320 | } |
| 321 | return output; |
| 322 | } |
| 323 | |
| 324 | /** |
| 325 | * Credit: Matheus Sampaio https://github.com/matheussampaio |
nothing calls this directly
no test coverage detected
searching dependent graphs…