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

Method cmp

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

Source from the content-addressed store, hash-verified

666 }
667
668 public cmp(other: ContextKeyExpression): number {
669 if (other.type !== this.type) {
670 return this.type - other.type;
671 }
672 if (this.key < other.key) {
673 return -1;
674 }
675 if (this.key > other.key) {
676 return 1;
677 }
678 if (this.value < other.value) {
679 return -1;
680 }
681 if (this.value > other.value) {
682 return 1;
683 }
684 return 0;
685 }
686
687 public equals(other: ContextKeyExpression): boolean {
688 if (other.type === this.type) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected