462
}
463
}
464
>
// TODO: ContextKeyExpr.smaller(key, right) accepts only `number` as `right` AND during eval of this node, we just eval to `false` if `right` is not a number
contextkey.ts
465
>
// consequently, package.json linter should _warn_ the user if they're passing undesired things to ops
466
>
case TokenType.Lt:
467
this._advance();
468
return ContextKeySmallerExpr.create(key, this._value());
470
>
case TokenType.LtEq:
471
this._advance();
472
return ContextKeySmallerEqualsExpr.create(key, this._value());
474
>
case TokenType.Gt:
475
this._advance();
476
return ContextKeyGreaterExpr.create(key, this._value());
478
>
case TokenType.GtEq:
479
this._advance();
480
return ContextKeyGreaterEqualsExpr.create(key, this._value());
482
>
case TokenType.In:
483
this._advance();
484
return ContextKeyExpr.in(key, this._value());
486
>
default:
487
return ContextKeyExpr.has(key);
489
>
}
490
491
case TokenType.EOF: