@@ -50,9 +50,9 @@ export abstract class ContextKeyExpr {
5050 return new ContextKeyAndExpr ( expr ) ;
5151 }
5252
53- public static deserialize ( serialized : string | null | undefined , strict : boolean = false ) : ContextKeyExpr | null {
53+ public static deserialize ( serialized : string | null | undefined , strict : boolean = false ) : ContextKeyExpr | undefined {
5454 if ( ! serialized ) {
55- return null ;
55+ return undefined ;
5656 }
5757
5858 let pieces = serialized . split ( '&&' ) ;
@@ -143,7 +143,7 @@ export abstract class ContextKeyExpr {
143143 public abstract getType ( ) : ContextKeyExprType ;
144144 public abstract equals ( other : ContextKeyExpr ) : boolean ;
145145 public abstract evaluate ( context : IContext ) : boolean ;
146- public abstract normalize ( ) : ContextKeyExpr | null ;
146+ public abstract normalize ( ) : ContextKeyExpr | undefined ;
147147 public abstract serialize ( ) : string ;
148148 public abstract keys ( ) : string [ ] ;
149149 public abstract map ( mapFnc : IContextKeyExprMapper ) : ContextKeyExpr ;
@@ -519,9 +519,9 @@ export class ContextKeyAndExpr implements ContextKeyExpr {
519519 return expr ;
520520 }
521521
522- public normalize ( ) : ContextKeyExpr | null {
522+ public normalize ( ) : ContextKeyExpr | undefined {
523523 if ( this . expr . length === 0 ) {
524- return null ;
524+ return undefined ;
525525 }
526526
527527 if ( this . expr . length === 1 ) {
@@ -622,7 +622,7 @@ export interface IContextKeyService {
622622
623623 onDidChangeContext : Event < IContextKeyChangeEvent > ;
624624 createKey < T > ( key : string , defaultValue : T | undefined ) : IContextKey < T > ;
625- contextMatchesRules ( rules : ContextKeyExpr | null ) : boolean ;
625+ contextMatchesRules ( rules : ContextKeyExpr | undefined ) : boolean ;
626626 getContextKeyValue < T > ( key : string ) : T | undefined ;
627627
628628 createScoped ( target ?: IContextKeyServiceTarget ) : IContextKeyService ;
0 commit comments