We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c657fcc commit ea3fd9eCopy full SHA for ea3fd9e
ruby/lib/cucumber/tag_expressions/parser.rb
@@ -26,13 +26,9 @@ def parse(infix_expression)
26
27
private
28
29
- def assoc_correct?(token, value)
30
- operator_types.dig(token, :assoc) == value
31
- end
32
-
33
def lower_precedence?(operation)
34
- (assoc_correct?(operation, :left) && precedence(operation) <= precedence(@operators.last)) ||
35
- (assoc_correct?(operation, :right) && precedence(operation) < precedence(@operators.last))
+ (operator_types.dig(operation, :assoc) == :left && precedence(operation) <= precedence(@operators.last)) ||
+ (operator_types.dig(operation, :assoc) == :right && precedence(operation) < precedence(@operators.last))
36
end
37
38
def operator?(token)
0 commit comments