class Solargraph::Source::Chain::Call

def with_params type, context

Returns:
  • (ComplexType) -

Parameters:
  • context (ComplexType) --
  • type (ComplexType) --
def with_params type, context
  return type unless type.to_s.include?('$')
  ComplexType.try_parse(type.to_s.gsub('$', context.value_types.map(&:rooted_tag).join(', ')).gsub('<>', ''))
end