(key: string)
| 318 | |
| 319 | export class ContextKeyDefinedExpr implements IContextKeyExpression { |
| 320 | public static create(key: string): ContextKeyExpression { |
| 321 | const staticValue = STATIC_VALUES.get(key); |
| 322 | if (typeof staticValue === 'boolean') { |
| 323 | return staticValue ? ContextKeyTrueExpr.INSTANCE : ContextKeyFalseExpr.INSTANCE; |
| 324 | } |
| 325 | return new ContextKeyDefinedExpr(key); |
| 326 | } |
| 327 | |
| 328 | public readonly type = ContextKeyExprType.Defined; |
| 329 |