@@ -13,32 +13,32 @@ module Crytic::Mutant
13
13
def matches ?(node : Crystal ::And | Crystal ::Or )
14
14
node_location = node.location
15
15
return false if node_location.nil?
16
- return is_same (node_location, location) if name_location.nil?
16
+ return same? (node_location, location) if name_location.nil?
17
17
18
- is_same (node_location, location) && is_same (node.end_location, name_location)
18
+ same? (node_location, location) && same? (node.end_location, name_location)
19
19
end
20
20
21
21
def matches ?(node : Crystal ::ASTNode )
22
22
node_location = node.location
23
23
return false if node_location.nil?
24
- return is_same (node_location, location) if name_location.nil?
24
+ return same? (node_location, location) if name_location.nil?
25
25
26
- is_same (node_location, location) && is_same (node.name_location, name_location)
26
+ same? (node_location, location) && same? (node.name_location, name_location)
27
27
end
28
28
29
- private def is_same (location : Crystal ::Location , other : Crystal ::Location ) : Bool
29
+ private def same? (location : Crystal ::Location , other : Crystal ::Location ) : Bool
30
30
location.line_number == other.line_number && location.column_number == other.column_number
31
31
end
32
32
33
- private def is_same (location : Nil , other : Nil ) : Bool
33
+ private def same? (location : Nil , other : Nil ) : Bool
34
34
false
35
35
end
36
36
37
- private def is_same (location : Crystal ::Location , other : Nil ) : Bool
37
+ private def same? (location : Crystal ::Location , other : Nil ) : Bool
38
38
false
39
39
end
40
40
41
- private def is_same (location : Nil , other : Crystal ::Location ) : Bool
41
+ private def same? (location : Nil , other : Crystal ::Location ) : Bool
42
42
false
43
43
end
44
44
end
0 commit comments