@@ -576,7 +564,7 @@ export class ContextKeyAndExpr implements ContextKeyExpr {
}
publicequals(other:ContextKeyExpression):boolean{
if(otherinstanceofContextKeyAndExpr){
if(other.type===this.type){
if(this.expr.length!==other.expr.length){
returnfalse;
}
...
...
@@ -607,12 +595,12 @@ export class ContextKeyAndExpr implements ContextKeyExpr {
continue;
}
if(einstanceofContextKeyAndExpr){
if(e.type===ContextKeyExprType.And){
expr.push(...e.expr);
continue;
}
if(einstanceofContextKeyOrExpr){
if(e.type===ContextKeyExprType.Or){
// Not allowed, because we don't have parens!
thrownewError(`It is not allowed to have an or expression here due to lack of parens! For example "a && (b||c)" is not supported, use "(a&&b) || (a&&c)" instead.`);
}
...
...
@@ -650,7 +638,7 @@ export class ContextKeyAndExpr implements ContextKeyExpr {