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

Method equals

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

Source from the content-addressed store, hash-verified

992 }
993
994 public equals(other: ContextKeyExpression): boolean {
995 if (other.type === this.type) {
996 if (this.expr.length !== other.expr.length) {
997 return false;
998 }
999 for (let i = 0, len = this.expr.length; i < len; i++) {
1000 if (!this.expr[i].equals(other.expr[i])) {
1001 return false;
1002 }
1003 }
1004 return true;
1005 }
1006 return false;
1007 }
1008
1009 public evaluate(context: IContext): boolean {
1010 for (let i = 0, len = this.expr.length; i < len; i++) {

Callers

nothing calls this directly

Calls 1

equalsMethod · 0.65

Tested by

no test coverage detected