diff options
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/query2/engine/BinaryOperatorExpression.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/query2/engine/BinaryOperatorExpression.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/query2/engine/BinaryOperatorExpression.java b/src/main/java/com/google/devtools/build/lib/query2/engine/BinaryOperatorExpression.java index 8da82b2f72..987e8fd9b4 100644 --- a/src/main/java/com/google/devtools/build/lib/query2/engine/BinaryOperatorExpression.java +++ b/src/main/java/com/google/devtools/build/lib/query2/engine/BinaryOperatorExpression.java @@ -53,19 +53,19 @@ public class BinaryOperatorExpression extends QueryExpression { } @Override - public <T> void eval(QueryEnvironment<T> env, Callback<T> callback) + public <T> void eval(QueryEnvironment<T> env, VariableContext<T> context, Callback<T> callback) throws QueryException, InterruptedException { if (operator == TokenKind.PLUS || operator == TokenKind.UNION) { for (QueryExpression operand : operands) { - env.eval(operand, callback); + env.eval(operand, context, callback); } return; } // We cannot do differences with partial results. So we fully evaluate the operands - Set<T> lhsValue = QueryUtil.evalAll(env, operands.get(0)); + Set<T> lhsValue = QueryUtil.evalAll(env, context, operands.get(0)); for (int i = 1; i < operands.size(); i++) { - Set<T> rhsValue = QueryUtil.evalAll(env, operands.get(i)); + Set<T> rhsValue = QueryUtil.evalAll(env, context, operands.get(i)); switch (operator) { case INTERSECT: case CARET: |