Skip to content

Commit

Permalink
Remove unneeded intermediate vertexes for rbs
Browse files Browse the repository at this point in the history
  • Loading branch information
mame committed Aug 10, 2024
1 parent 335fe6d commit 39e434f
Show file tree
Hide file tree
Showing 10 changed files with 132 additions and 98 deletions.
4 changes: 3 additions & 1 deletion lib/typeprof/core/ast/call.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ def install0(genv)
@changes.add_edge(genv, @block_body.lenv.get_var(var), @lenv.get_var(var))
end

block = Block.new(self, blk_f_args, @block_body.lenv.next_boxes)
blk_f_ary_arg = Vertex.new(self)
@changes.add_masgn_box(genv, blk_f_ary_arg, blk_f_args, nil, nil) # TODO: support splat "do |a, *b, c|"
block = Block.new(self, blk_f_ary_arg, blk_f_args, @block_body.lenv.next_boxes)
blk_ty = Source.new(Type::Proc.new(genv, block))
elsif @block_pass
blk_ty = @block_pass.install(genv)
Expand Down
Loading

0 comments on commit 39e434f

Please sign in to comment.