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

Method cmp

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

Source from the content-addressed store, hash-verified

798 }
799
800 public cmp(other: ContextKeyExpression): number {
801 if (other.type !== this.type) {
802 return this.type - other.type;
803 }
804 if (this.key < other.key) {
805 return -1;
806 }
807 if (this.key > other.key) {
808 return 1;
809 }
810 return 0;
811 }
812
813 public equals(other: ContextKeyExpression): boolean {
814 if (other.type === this.type) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected