* Returns 0 if the values are equal, otherwise compares against * start, if start is equal, compares against end. * * @param {TokenRange} other Range to compare with. * @returns {Number}
(other)
| 269 | * @returns {Number} |
| 270 | */ |
| 271 | compare(other) { |
| 272 | const compareStart = this.start.compare(other.start); |
| 273 | return compareStart !== 0 ? compareStart : this.end.compare(other.end); |
| 274 | } |
| 275 | |
| 276 | toString() { |
| 277 | return util.format(']%s, %s]', |