class EL_ROUTINE_INFO
Routine info
note
description: "Routine info"
author: "Finnian Reilly"
copyright: "Copyright (c) 2001-2022 Finnian Reilly"
contact: "finnian at eiffel hyphen loop dot com"
license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
date: "2022-11-15 19:56:04 GMT (Tuesday 15th November 2022)"
revision: "3"
class
EL_ROUTINE_INFO
inherit
ANY
EL_MODULE_EIFFEL
create
make
feature {NONE} -- Initialization
make (a_name: STRING; a_type: like type)
do
name := a_name; type := a_type
if attached {like tuple_type} a_type.generic_parameter_type (1) as l_type then
tuple_type := l_type
else
tuple_type := {TUPLE}
end
end
feature -- Access
argument_types: EL_TUPLE_TYPE_ARRAY
do
create Result.make (tuple_type)
end
name: STRING
type: TYPE [ROUTINE]
new_tuple_argument: TUPLE
do
if attached {TUPLE} Eiffel.new_instance_of (tuple_type.type_id) as tuple then
Result := tuple
else
create Result
end
end
feature {NONE} -- Internal attributes
tuple_type: TYPE [TUPLE]
end