Class: Furnace::AVM2::ABC::TraitClass

Inherits:
Record show all
Defined in:
lib/furnace-avm2/abc/metadata/trait_class.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

#collect_ns(options) ⇒ Object



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

def collect_ns(options)
  # dummy
end

#to_astlet(trait) ⇒ Object



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

def to_astlet(trait)
  AST::Node.new(:class, [trait.name.to_astlet, klass.instance.name.to_astlet])
end