Class: SFRP::Raw::Init
- Inherits:
-
Struct
- Object
- Struct
- SFRP::Raw::Init
- Defined in:
- lib/sfrp/raw/elements.rb
Instance Attribute Summary collapse
-
#arg_exps ⇒ Object
Returns the value of attribute arg_exps.
-
#func_ref ⇒ Object
Returns the value of attribute func_ref.
-
#line_number ⇒ Object
Returns the value of attribute line_number.
-
#ns ⇒ Object
Returns the value of attribute ns.
Instance Method Summary collapse
Instance Attribute Details
#arg_exps ⇒ Object
Returns the value of attribute arg_exps
65 66 67 |
# File 'lib/sfrp/raw/elements.rb', line 65 def arg_exps @arg_exps end |
#func_ref ⇒ Object
Returns the value of attribute func_ref
65 66 67 |
# File 'lib/sfrp/raw/elements.rb', line 65 def func_ref @func_ref end |
#line_number ⇒ Object
Returns the value of attribute line_number
65 66 67 |
# File 'lib/sfrp/raw/elements.rb', line 65 def line_number @line_number end |
#ns ⇒ Object
Returns the value of attribute ns
65 66 67 |
# File 'lib/sfrp/raw/elements.rb', line 65 def ns @ns end |
Instance Method Details
#func_rname ⇒ Object
66 67 68 |
# File 'lib/sfrp/raw/elements.rb', line 66 def func_rname "%init#{line_number}" end |
#function ⇒ Object
70 71 72 73 |
# File 'lib/sfrp/raw/elements.rb', line 70 def function exp = FuncCallExp.new(func_ref, arg_exps, true) Function.new(func_rname, ns, nil, [], [], exp, nil, true) end |
#gen_flat(src_set, dest_set) ⇒ Object
75 76 77 78 |
# File 'lib/sfrp/raw/elements.rb', line 75 def gen_flat(src_set, dest_set) function.gen_flat(src_set, dest_set) dest_set.append_init_func_str(function.absolute_name) end |