Class: Furnace::AVM2::ABC::MultinameKindGenericName

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

Overview

Undocumented

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



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

def collect_ns(options)
  name.collect_ns(options)
  parameters.each { |type| type.collect_ns(options) }
end

#to_astletObject



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

def to_astlet
  AST::Node.new(:generic, [ name.to_astlet, parameters.map(&:to_astlet) ])
end

#to_sObject



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

def to_s
  "#{name.to_s}<#{parameters.map(&:to_s).join(",")}>"
end