(doc, code, from, to, origin)
| 2521 | } |
| 2522 | |
| 2523 | function replaceRange(doc, code, from, to, origin) { |
| 2524 | if (!to) to = from; |
| 2525 | if (posLess(to, from)) { var tmp = to; to = from; from = tmp; } |
| 2526 | if (typeof code == "string") code = splitLines(code); |
| 2527 | makeChange(doc, {from: from, to: to, text: code, origin: origin}, null); |
| 2528 | } |
| 2529 | |
| 2530 | // POSITION OBJECT |
| 2531 |
no test coverage detected