Class: SFRP::Raw::VConstCallExp
- Inherits:
-
Struct
- Object
- Struct
- SFRP::Raw::VConstCallExp
- Defined in:
- lib/sfrp/raw/expression.rb
Instance Attribute Summary collapse
-
#arg_exps ⇒ Object
Returns the value of attribute arg_exps.
-
#sp ⇒ Object
Returns the value of attribute sp.
-
#vconst_ref ⇒ Object
Returns the value of attribute vconst_ref.
Instance Method Summary collapse
Instance Attribute Details
#arg_exps ⇒ Object
Returns the value of attribute arg_exps
20 21 22 |
# File 'lib/sfrp/raw/expression.rb', line 20 def arg_exps @arg_exps end |
#sp ⇒ Object
Returns the value of attribute sp
20 21 22 |
# File 'lib/sfrp/raw/expression.rb', line 20 def sp @sp end |
#vconst_ref ⇒ Object
Returns the value of attribute vconst_ref
20 21 22 |
# File 'lib/sfrp/raw/expression.rb', line 20 def vconst_ref @vconst_ref end |
Instance Method Details
#blame_side_effect ⇒ Object
25 26 27 |
# File 'lib/sfrp/raw/expression.rb', line 25 def blame_side_effect arg_exps.each(&:blame_side_effect) end |
#to_flat(set, ns) ⇒ Object
29 30 31 32 33 |
# File 'lib/sfrp/raw/expression.rb', line 29 def to_flat(set, ns) ab_vc_name = set.vconst(ns, vconst_ref, sp).absolute_name args = arg_exps.map { |e| e.to_flat(set, ns) } Flat::VConstCallExp.new(ab_vc_name, args, sp) end |
#vconst_refs ⇒ Object
21 22 23 |
# File 'lib/sfrp/raw/expression.rb', line 21 def vconst_refs [vconst_ref, *arg_exps.flat_map(&:vconst_refs)] end |