Class: Furnace::AVM2::ABC::MultinameKindRTQName

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



13
14
15
# File 'lib/furnace-avm2/abc/metadata/multiname_kind_rtqname.rb', line 13

def collect_ns(options)
  # nothing
end

#context_sizeObject



17
18
19
# File 'lib/furnace-avm2/abc/metadata/multiname_kind_rtqname.rb', line 17

def context_size
  1
end

#to_astlet(ns) ⇒ Object



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

def to_astlet(ns)
  node = AST::Node.new(:q, [ ns, name ])
end

#to_sObject



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

def to_s
  "(rt)::#{name || '*'}"
end