(file, start, end)
| 611 | }; |
| 612 | |
| 613 | function charDistanceBetween(file, start, end) { |
| 614 | var diff = end - start, m; |
| 615 | if (file.hasAstral) { |
| 616 | astral.lastIndex = start; |
| 617 | while ((m = astral.exec(file.text)) && m.index < end) diff--; |
| 618 | } |
| 619 | return diff; |
| 620 | } |
| 621 | |
| 622 | function asLineChar(file, pos) { |
| 623 | if (!file) return {line: 0, ch: 0}; |
no outgoing calls
no test coverage detected
searching dependent graphs…