(other: ContextKeyExpression)
| 391 | } |
| 392 | |
| 393 | public cmp(other: ContextKeyExpression): number { |
| 394 | if (other.type !== this.type) { |
| 395 | return this.type - other.type; |
| 396 | } |
| 397 | if (this.key < other.key) { |
| 398 | return -1; |
| 399 | } |
| 400 | if (this.key > other.key) { |
| 401 | return 1; |
| 402 | } |
| 403 | if (this.value < other.value) { |
| 404 | return -1; |
| 405 | } |
| 406 | if (this.value > other.value) { |
| 407 | return 1; |
| 408 | } |
| 409 | return 0; |
| 410 | } |
| 411 | |
| 412 | public equals(other: ContextKeyExpression): boolean { |
| 413 | if (other.type === this.type) { |
nothing calls this directly
no outgoing calls
no test coverage detected