(b0: number, b1: number, o0: number, o1: number)
| 400 | const diff = (base: ModuleTokens, other: ModuleTokens): Hunk[] => { |
| 401 | const hunks: Hunk[] = [] |
| 402 | const compare = (b0: number, b1: number, o0: number, o1: number) => |
| 403 | hunks.push( |
| 404 | ...diffOf( |
| 405 | base.texts, |
| 406 | other.texts, |
| 407 | ...tokensIn(base, b0, b1), |
| 408 | ...tokensIn(other, o0, o1) |
| 409 | ) |
| 410 | ) |
| 411 | const compareEnds = (b: number, o: number) => { |
| 412 | const end = base.statements[b][1] |
| 413 | const otherEnd = other.statements[o][1] |