(cur, offsetLine, offsetCh)
| 11980 | return ret; |
| 11981 | } |
| 11982 | function offsetCursor(cur, offsetLine, offsetCh) { |
| 11983 | if (typeof offsetLine === 'object') { |
| 11984 | offsetCh = offsetLine.ch; |
| 11985 | offsetLine = offsetLine.line; |
| 11986 | } |
| 11987 | return Pos(cur.line + offsetLine, cur.ch + offsetCh); |
| 11988 | } |
| 11989 | function getOffset(anchor, head) { |
| 11990 | return { |
| 11991 | line: head.line - anchor.line, |
no outgoing calls
no test coverage detected