Class: SFRP::Flat::FuncTypeAnnotation

Inherits:
Struct
  • Object
show all
Defined in:
lib/sfrp/flat/elements.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#arg_tasObject

Returns the value of attribute arg_tas

Returns:

  • (Object)

    the current value of arg_tas



72
73
74
# File 'lib/sfrp/flat/elements.rb', line 72

def arg_tas
  @arg_tas
end

#ret_taObject

Returns the value of attribute ret_ta

Returns:

  • (Object)

    the current value of ret_ta



72
73
74
# File 'lib/sfrp/flat/elements.rb', line 72

def ret_ta
  @ret_ta
end

#spObject

Returns the value of attribute sp

Returns:

  • (Object)

    the current value of sp



72
73
74
# File 'lib/sfrp/flat/elements.rb', line 72

def sp
  @sp
end

Instance Method Details

#to_polyObject



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