Class: SFRP::Raw::Output
- Inherits:
-
Struct
- Object
- Struct
- SFRP::Raw::Output
- Defined in:
- lib/sfrp/raw/elements.rb
Instance Attribute Summary collapse
-
#exps ⇒ Object
Returns the value of attribute 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.
-
#sp ⇒ Object
Returns the value of attribute sp.
Instance Method Summary collapse
Instance Attribute Details
#exps ⇒ Object
Returns the value of attribute exps
99 100 101 |
# File 'lib/sfrp/raw/elements.rb', line 99 def exps @exps end |
#func_ref ⇒ Object
Returns the value of attribute func_ref
99 100 101 |
# File 'lib/sfrp/raw/elements.rb', line 99 def func_ref @func_ref end |
#line_number ⇒ Object
Returns the value of attribute line_number
99 100 101 |
# File 'lib/sfrp/raw/elements.rb', line 99 def line_number @line_number end |
#ns ⇒ Object
Returns the value of attribute ns
99 100 101 |
# File 'lib/sfrp/raw/elements.rb', line 99 def ns @ns end |
#sp ⇒ Object
Returns the value of attribute sp
99 100 101 |
# File 'lib/sfrp/raw/elements.rb', line 99 def sp @sp end |
Instance Method Details
#absolute_name ⇒ Object
104 105 106 |
# File 'lib/sfrp/raw/elements.rb', line 104 def absolute_name ns.absolute_name(rname) end |
#convert ⇒ Object
108 109 110 111 112 |
# File 'lib/sfrp/raw/elements.rb', line 108 def convert exp = FuncCallExp.new(func_ref, exps, false, sp) ta = TypeAnnotationType.new(Ref.new('Unit'), []) Node.new(rname, ns, ta, exp, nil, sp) end |
#rname ⇒ Object
100 101 102 |
# File 'lib/sfrp/raw/elements.rb', line 100 def rname "%output_line#{line_number}" end |