Class: SFRP::Flat::FuncTypeAnnotation
- Inherits:
-
Struct
- Object
- Struct
- SFRP::Flat::FuncTypeAnnotation
- Defined in:
- lib/sfrp/flat/elements.rb
Instance Attribute Summary collapse
-
#arg_tas ⇒ Object
Returns the value of attribute arg_tas.
-
#ret_ta ⇒ Object
Returns the value of attribute ret_ta.
-
#sp ⇒ Object
Returns the value of attribute sp.
Instance Method Summary collapse
Instance Attribute Details
#arg_tas ⇒ Object
Returns the value of attribute arg_tas
72 73 74 |
# File 'lib/sfrp/flat/elements.rb', line 72 def arg_tas @arg_tas end |
#ret_ta ⇒ Object
Returns the value of attribute ret_ta
72 73 74 |
# File 'lib/sfrp/flat/elements.rb', line 72 def ret_ta @ret_ta end |
#sp ⇒ Object
Returns the value of attribute sp
72 73 74 |
# File 'lib/sfrp/flat/elements.rb', line 72 def sp @sp end |
Instance Method Details
#to_poly ⇒ Object
73 74 75 |
# File 'lib/sfrp/flat/elements.rb', line 73 def to_poly Poly::FuncTypeAnnotation.new(ret_ta.to_poly, arg_tas.map(&:to_poly)) end |