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

Method cmp

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

Source from the content-addressed store, hash-verified

598 }
599
600 public cmp(other: ContextKeyExpression): number {
601 if (other.type !== this.type) {
602 return this.type - other.type;
603 }
604 if (this.key < other.key) {
605 return -1;
606 }
607 if (this.key > other.key) {
608 return 1;
609 }
610 if (this.value < other.value) {
611 return -1;
612 }
613 if (this.value > other.value) {
614 return 1;
615 }
616 return 0;
617 }
618
619 public equals(other: ContextKeyExpression): boolean {
620 if (other.type === this.type) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected