Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6f135be

Browse files
committed
Block on super location
1 parent 4057dfa commit 6f135be

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/syntax_tree/translation/parser.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1576,7 +1576,11 @@ def visit_method_add_block(node)
15761576
s(
15771577
type,
15781578
[visit(node.call), arguments, visit(node.block.bodystmt)],
1579-
nil
1579+
smap_collection(
1580+
srange_node(node.block.opening),
1581+
srange_length(node.block.end_char, node.block.opening.is_a?(Kw) ? -3 : -1),
1582+
srange_node(node)
1583+
)
15801584
)
15811585
else
15821586
visit_command_call(

0 commit comments

Comments
 (0)