Class: SFRP::Raw::VConst
- Inherits:
-
Struct
- Object
- Struct
- SFRP::Raw::VConst
- Defined in:
- lib/sfrp/raw/elements.rb
Instance Attribute Summary collapse
-
#native_str ⇒ Object
Returns the value of attribute native_str.
-
#ns ⇒ Object
Returns the value of attribute ns.
-
#param_tas ⇒ Object
Returns the value of attribute param_tas.
-
#rname ⇒ Object
Returns the value of attribute rname.
-
#sp ⇒ Object
Returns the value of attribute sp.
-
#tconst_rname ⇒ Object
Returns the value of attribute tconst_rname.
Instance Method Summary collapse
Instance Attribute Details
#native_str ⇒ Object
Returns the value of attribute native_str
34 35 36 |
# File 'lib/sfrp/raw/elements.rb', line 34 def native_str @native_str end |
#ns ⇒ Object
Returns the value of attribute ns
34 35 36 |
# File 'lib/sfrp/raw/elements.rb', line 34 def ns @ns end |
#param_tas ⇒ Object
Returns the value of attribute param_tas
34 35 36 |
# File 'lib/sfrp/raw/elements.rb', line 34 def param_tas @param_tas end |
#rname ⇒ Object
Returns the value of attribute rname
34 35 36 |
# File 'lib/sfrp/raw/elements.rb', line 34 def rname @rname end |
#sp ⇒ Object
Returns the value of attribute sp
34 35 36 |
# File 'lib/sfrp/raw/elements.rb', line 34 def sp @sp end |
#tconst_rname ⇒ Object
Returns the value of attribute tconst_rname
34 35 36 |
# File 'lib/sfrp/raw/elements.rb', line 34 def tconst_rname @tconst_rname end |
Instance Method Details
#absolute_name ⇒ Object
35 36 37 |
# File 'lib/sfrp/raw/elements.rb', line 35 def absolute_name ns.absolute_name(rname) end |
#gen_flat(src_set, dest_set) ⇒ Object
39 40 41 42 43 |
# File 'lib/sfrp/raw/elements.rb', line 39 def gen_flat(src_set, dest_set) tconst_str = src_set.tconst(ns, Ref.new(tconst_rname), sp).absolute_name flat_param_tas = param_tas.map { |ta| ta.to_flat(src_set, ns) } dest_set << Flat::VConst.new(absolute_name, tconst_str, native_str, flat_param_tas, sp) end |