class TypeProf::Core::RecordBlock
Attributes
Public Class Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/env/method.rb, line 118 def initialize(node) @node = node @used = false @f_args = [] @ret = Vertex.new(node) end
Public Instance Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/env/method.rb, line 131 def accept_args(genv, changes, caller_positionals) @used = true caller_positionals.each_with_index do |a_arg, i| changes.add_edge(genv, a_arg.new_vertex(genv, @node), get_f_arg(i)) end end
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/env/method.rb, line 138 def add_ret(genv, changes, ret) changes.add_edge(genv, ret, @ret) end
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/env/method.rb, line 125 def get_f_arg(i) @f_args[i] ||= Vertex.new(@node) end