File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -23,22 +23,22 @@ class IndexBy < Base
23
23
24
24
def_node_matcher :on_bad_each_with_object , <<~PATTERN
25
25
(block
26
- ({send csend} _ :each_with_object (hash))
26
+ (call _ :each_with_object (hash))
27
27
(args (arg $_el) (arg _memo))
28
- ({send csend} (lvar _memo) :[]= $!`_memo (lvar _el)))
28
+ (call (lvar _memo) :[]= $!`_memo (lvar _el)))
29
29
PATTERN
30
30
31
31
def_node_matcher :on_bad_to_h , <<~PATTERN
32
32
(block
33
- ({send csend} _ :to_h)
33
+ (call _ :to_h)
34
34
(args (arg $_el))
35
35
(array $_ (lvar _el)))
36
36
PATTERN
37
37
38
38
def_node_matcher :on_bad_map_to_h , <<~PATTERN
39
- ({send csend}
39
+ (call
40
40
(block
41
- ({send csend} _ {:map :collect})
41
+ (call _ {:map :collect})
42
42
(args (arg $_el))
43
43
(array $_ (lvar _el)))
44
44
:to_h)
@@ -49,7 +49,7 @@ class IndexBy < Base
49
49
(const _ :Hash)
50
50
:[]
51
51
(block
52
- ({send csend} _ {:map :collect})
52
+ (call _ {:map :collect})
53
53
(args (arg $_el))
54
54
(array $_ (lvar _el))))
55
55
PATTERN
Original file line number Diff line number Diff line change @@ -26,22 +26,22 @@ class IndexWith < Base
26
26
27
27
def_node_matcher :on_bad_each_with_object , <<~PATTERN
28
28
(block
29
- ({send csend} _ :each_with_object (hash))
29
+ (call _ :each_with_object (hash))
30
30
(args (arg $_el) (arg _memo))
31
- ({send csend} (lvar _memo) :[]= (lvar _el) $!`_memo))
31
+ (call (lvar _memo) :[]= (lvar _el) $!`_memo))
32
32
PATTERN
33
33
34
34
def_node_matcher :on_bad_to_h , <<~PATTERN
35
35
(block
36
- ({send csend} _ :to_h)
36
+ (call _ :to_h)
37
37
(args (arg $_el))
38
38
(array (lvar _el) $_))
39
39
PATTERN
40
40
41
41
def_node_matcher :on_bad_map_to_h , <<~PATTERN
42
- ({send csend}
42
+ (call
43
43
(block
44
- ({send csend} _ {:map :collect})
44
+ (call _ {:map :collect})
45
45
(args (arg $_el))
46
46
(array (lvar _el) $_))
47
47
:to_h)
@@ -52,7 +52,7 @@ class IndexWith < Base
52
52
(const _ :Hash)
53
53
:[]
54
54
(block
55
- ({send csend} _ {:map :collect})
55
+ (call _ {:map :collect})
56
56
(args (arg $_el))
57
57
(array (lvar _el) $_)))
58
58
PATTERN
You can’t perform that action at this time.
0 commit comments