Skip to content

Commit 76ab4ec

Browse files
committed
Simplify requirements for IContextKeyExprMapper
1 parent bf38537 commit 76ab4ec

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/vs/platform/contextkey/common/contextkey.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ export const enum ContextKeyExprType {
1919
}
2020

2121
export interface IContextKeyExprMapper {
22-
mapDefined(key: string): ContextKeyDefinedExpr;
23-
mapNot(key: string): ContextKeyNotExpr;
24-
mapEquals(key: string, value: any): ContextKeyEqualsExpr;
25-
mapNotEquals(key: string, value: any): ContextKeyNotEqualsExpr;
22+
mapDefined(key: string): ContextKeyExpr;
23+
mapNot(key: string): ContextKeyExpr;
24+
mapEquals(key: string, value: any): ContextKeyExpr;
25+
mapNotEquals(key: string, value: any): ContextKeyExpr;
2626
mapRegex(key: string, regexp: RegExp | null): ContextKeyRegexExpr;
2727
}
2828

@@ -190,7 +190,7 @@ function cmp(a: ContextKeyExpr, b: ContextKeyExpr): number {
190190
}
191191

192192
export class ContextKeyDefinedExpr implements ContextKeyExpr {
193-
public static create(key: string): ContextKeyExpr {
193+
public static create(key: string): ContextKeyDefinedExpr {
194194
return new ContextKeyDefinedExpr(key);
195195
}
196196

@@ -424,7 +424,7 @@ export class ContextKeyNotExpr implements ContextKeyExpr {
424424

425425
export class ContextKeyRegexExpr implements ContextKeyExpr {
426426

427-
public static create(key: string, regexp: RegExp | null): ContextKeyExpr {
427+
public static create(key: string, regexp: RegExp | null): ContextKeyRegexExpr {
428428
return new ContextKeyRegexExpr(key, regexp);
429429
}
430430

0 commit comments

Comments
 (0)