(line, ch, sticky)
| 1080 | |
| 1081 | // A Pos instance represents a position within the text. |
| 1082 | function Pos(line, ch, sticky) { |
| 1083 | if (sticky === void 0) sticky = null |
| 1084 | |
| 1085 | if (!(this instanceof Pos)) { |
| 1086 | return new Pos(line, ch, sticky) |
| 1087 | } |
| 1088 | this.line = line |
| 1089 | this.ch = ch |
| 1090 | this.sticky = sticky |
| 1091 | } |
| 1092 | |
| 1093 | // Compare two positions, return 0 if they are the same, a negative |
| 1094 | // number when a is less, and a positive number otherwise. |
no outgoing calls
no test coverage detected