Class: Furnace::AVM2::ABC::TraitMethod

Inherits:
Record show all
Defined in:
lib/furnace-avm2/abc/metadata/trait_method.rb

Instance Attribute Summary

Attributes inherited from Binary::Record

#root

Instance Method Summary collapse

Methods inherited from Record

abc_array_of, flag, pool_array, pool_array_of, pool_ref, subset, xlat_direct, xlat_field, xlat_inverse

Methods inherited from Binary::Record

#byte_length, codegen, codegen_each, inherited, #inspect, method_missing, register, #to_hash, trace, trace_scope, trace_value

Instance Method Details

#bodyObject



6
7
8
# File 'lib/furnace-avm2/abc/metadata/trait_method.rb', line 6

def body
  root.method_body_at(method_idx)
end

#collect_ns(options) ⇒ Object



14
15
16
17
# File 'lib/furnace-avm2/abc/metadata/trait_method.rb', line 14

def collect_ns(options)
  method.collect_ns(options)
  body.collect_ns(options) if body
end

#to_astlet(trait) ⇒ Object



10
11
12
# File 'lib/furnace-avm2/abc/metadata/trait_method.rb', line 10

def to_astlet(trait)
  method.to_astlet(method_idx, trait.name.to_astlet)
end