(_expr: ReadonlyArray<ContextKeyExpression | null | undefined>)
| 955 | export class ContextKeyAndExpr implements IContextKeyExpression { |
| 956 | |
| 957 | public static create(_expr: ReadonlyArray<ContextKeyExpression | null | undefined>): ContextKeyExpression | undefined { |
| 958 | const expr = ContextKeyAndExpr._normalizeArr(_expr); |
| 959 | if (expr.length === 0) { |
| 960 | return undefined; |
| 961 | } |
| 962 | |
| 963 | if (expr.length === 1) { |
| 964 | return expr[0]; |
| 965 | } |
| 966 | |
| 967 | return new ContextKeyAndExpr(expr); |
| 968 | } |
| 969 | |
| 970 | public readonly type = ContextKeyExprType.And; |
| 971 |
nothing calls this directly
no test coverage detected