(context: IContext)
| 1007 | } |
| 1008 | |
| 1009 | public evaluate(context: IContext): boolean { |
| 1010 | for (let i = 0, len = this.expr.length; i < len; i++) { |
| 1011 | if (!this.expr[i].evaluate(context)) { |
| 1012 | return false; |
| 1013 | } |
| 1014 | } |
| 1015 | return true; |
| 1016 | } |
| 1017 | |
| 1018 | private static _normalizeArr(arr: ReadonlyArray<ContextKeyExpression | null | undefined>): ContextKeyExpression[] { |
| 1019 | const expr: ContextKeyExpression[] = []; |