(line, ch, sticky)
| 973 | |
| 974 | // A Pos instance represents a position within the text. |
| 975 | function Pos(line, ch, sticky) { |
| 976 | if ( sticky === void 0 ) sticky = null; |
| 977 | |
| 978 | if (!(this instanceof Pos)) { return new Pos(line, ch, sticky) } |
| 979 | this.line = line; |
| 980 | this.ch = ch; |
| 981 | this.sticky = sticky; |
| 982 | } |
| 983 | |
| 984 | // Compare two positions, return 0 if they are the same, a negative |
| 985 | // number when a is less, and a positive number otherwise. |
no outgoing calls
no test coverage detected