Class: SFRP::Raw::TypeAnnotationType

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



150
151
152
# File 'lib/sfrp/raw/elements.rb', line 150

def arg_tas
  @arg_tas
end

#spObject

Returns the value of attribute sp

Returns:

  • (Object)

    the current value of sp



150
151
152
# File 'lib/sfrp/raw/elements.rb', line 150

def sp
  @sp
end

#tconst_refObject

Returns the value of attribute tconst_ref

Returns:

  • (Object)

    the current value of tconst_ref



150
151
152
# File 'lib/sfrp/raw/elements.rb', line 150

def tconst_ref
  @tconst_ref
end

Instance Method Details

#to_flat(set, ns) ⇒ Object



151
152
153
154
155
# File 'lib/sfrp/raw/elements.rb', line 151

def to_flat(set, ns)
  ab_tc_name = set.tconst(ns, tconst_ref, sp).absolute_name
  flat_arg_tas = arg_tas.map { |ta| ta.to_flat(set, ns) }
  Flat::TypeAnnotationType.new(ab_tc_name, flat_arg_tas, sp)
end