Class: SFRP::Flat::FuncCallExp
- Inherits:
-
Struct
- Object
- Struct
- SFRP::Flat::FuncCallExp
- Defined in:
- lib/sfrp/flat/expression.rb
Instance Attribute Summary collapse
-
#arg_exps ⇒ Object
Returns the value of attribute arg_exps.
-
#func_str ⇒ Object
Returns the value of attribute func_str.
-
#sp ⇒ Object
Returns the value of attribute sp.
Instance Method Summary collapse
- #alpha_convert(table, serial) ⇒ Object
- #lift_node_ref(collected_node_refs) ⇒ Object
- #to_poly ⇒ Object
Instance Attribute Details
#arg_exps ⇒ Object
Returns the value of attribute arg_exps
3 4 5 |
# File 'lib/sfrp/flat/expression.rb', line 3 def arg_exps @arg_exps end |
#func_str ⇒ Object
Returns the value of attribute func_str
3 4 5 |
# File 'lib/sfrp/flat/expression.rb', line 3 def func_str @func_str end |
#sp ⇒ Object
Returns the value of attribute sp
3 4 5 |
# File 'lib/sfrp/flat/expression.rb', line 3 def sp @sp end |
Instance Method Details
#alpha_convert(table, serial) ⇒ Object
9 10 11 12 |
# File 'lib/sfrp/flat/expression.rb', line 9 def alpha_convert(table, serial) args = arg_exps.map { |e| e.alpha_convert(table, serial) } FuncCallExp.new(func_str, args) end |
#lift_node_ref(collected_node_refs) ⇒ Object
4 5 6 7 |
# File 'lib/sfrp/flat/expression.rb', line 4 def lift_node_ref(collected_node_refs) args = arg_exps.map { |e| e.lift_node_ref(collected_node_refs) } FuncCallExp.new(func_str, args, sp) end |
#to_poly ⇒ Object
14 15 16 |
# File 'lib/sfrp/flat/expression.rb', line 14 def to_poly P.call_e(func_str, *arg_exps.map(&:to_poly)) end |