Class: SFRP::Raw::FuncTypeAnnotation

Inherits:
Struct
  • Object
show all
Defined in:
lib/sfrp/raw/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



143
144
145
# File 'lib/sfrp/raw/elements.rb', line 143

def arg_tas
  @arg_tas
end

#ret_taObject

Returns the value of attribute ret_ta

Returns:

  • (Object)

    the current value of ret_ta



143
144
145
# File 'lib/sfrp/raw/elements.rb', line 143

def ret_ta
  @ret_ta
end

#spObject

Returns the value of attribute sp

Returns:

  • (Object)

    the current value of sp



143
144
145
# File 'lib/sfrp/raw/elements.rb', line 143

def sp
  @sp
end

Instance Method Details

#to_flat(set, ns) ⇒ Object



144
145
146
147
# File 'lib/sfrp/raw/elements.rb', line 144

def to_flat(set, ns)
  flat_arg_tas = arg_tas.map { |ta| ta.to_flat(set, ns) }
  Flat::FuncTypeAnnotation.new(ret_ta.to_flat(set, ns), flat_arg_tas, sp)
end