(_expr: ReadonlyArray<ContextKeyExpression | null | undefined>)
| 1085 | export class ContextKeyOrExpr implements IContextKeyExpression { |
| 1086 | |
| 1087 | public static create(_expr: ReadonlyArray<ContextKeyExpression | null | undefined>): ContextKeyExpression | undefined { |
| 1088 | const expr = ContextKeyOrExpr._normalizeArr(_expr); |
| 1089 | if (expr.length === 0) { |
| 1090 | return undefined; |
| 1091 | } |
| 1092 | |
| 1093 | if (expr.length === 1) { |
| 1094 | return expr[0]; |
| 1095 | } |
| 1096 | |
| 1097 | return new ContextKeyOrExpr(expr); |
| 1098 | } |
| 1099 | |
| 1100 | public readonly type = ContextKeyExprType.Or; |
| 1101 |
no test coverage detected