MCPcopy Create free account
hub / github.com/Wscats/vscode-explore / cmp

Method cmp

contextKeyExpr/src/contextkey.ts:393–410  ·  view source on GitHub ↗
(other: ContextKeyExpression)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected