(other: ContextKeyExpression)
| 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++) { |