(key: string)
| 785 | export class ContextKeyNotExpr implements IContextKeyExpression { |
| 786 | |
| 787 | public static create(key: string): ContextKeyExpression { |
| 788 | const staticValue = STATIC_VALUES.get(key); |
| 789 | if (typeof staticValue === 'boolean') { |
| 790 | return (staticValue ? ContextKeyFalseExpr.INSTANCE : ContextKeyTrueExpr.INSTANCE); |
| 791 | } |
| 792 | return new ContextKeyNotExpr(key); |
| 793 | } |
| 794 | |
| 795 | public readonly type = ContextKeyExprType.Not; |
| 796 |