class NONE_I inherit TYPE_I redefine dump, is_none, is_void, is_bit, is_basic, is_reference, same_as, description, sk_value, generate_cecil_value, hash_code, cecil_value, append_signature, generated_id, generate_gen_type_il end TYPE_C redefine is_void, is_bit, is_pointer end SHARED_C_LEVEL feature -- Status report element_type: INTEGER_8 is -- NONE element type do Result := feature {MD_SIGNATURE_CONSTANTS}.Element_type_object end feature level: INTEGER is -- Level for generated C code do Result := C_ref end is_none: BOOLEAN is True -- Is the type a none type ? is_void: BOOLEAN is False -- A NONE type is not a void C type. is_basic: BOOLEAN is False -- A NONE type is not a basic type. is_bit: BOOLEAN is False -- A NONE type is not a bit. is_reference: BOOLEAN is True -- A NONE type is a reference is_pointer: BOOLEAN is True -- A NONE type is a pointer append_signature (st: STRUCTURED_TEXT) is do st.add_string ("NONE") end dump (buffer: GENERATION_BUFFER) is -- Debug purpose do buffer.putstring ("NONE") end il_type_name (a_prefix: STRING): STRING is -- Name of current class type. once Result := "none" end same_as (other: TYPE_I): BOOLEAN is -- Is `other' the equal to Current ? do Result := other.is_none end description: ATTR_DESC is -- Type description for skeleton do Result := Reference_c_type.description end generate_cecil_value (buffer: GENERATION_BUFFER) is -- Generate Cecil type value. do buffer.putstring ("SK_DTYPE") end c_string: STRING is "EIF_REFERENCE" -- String generated for the type. c_string_id: INTEGER is -- String ID generated for type. once Result := Names_heap.eif_reference_name_id end union_tag: STRING is "rarg" separate_get_macro: STRING is "not_implemented" -- String generated to access the argument to a separate call separate_send_macro: STRING is "not_implemented" -- String generated to return the result of a separate call hash_code: INTEGER is -- Hash code for current type once Result := None_code end associated_reference: CLASS_TYPE is -- Void do end sk_value: INTEGER is -- Generate SK value associated to the current type. do Result := Sk_ref end cecil_value: INTEGER is do Result := Sk_dtype end generate_union (buffer: GENERATION_BUFFER) is -- Generate discriminant of C structure "item" associated -- to the current C type in `buffer'. do buffer.putstring ("it_ref") end generate_sk_value (buffer: GENERATION_BUFFER) is -- Generate SK value associated to current C type in `buffer'. do buffer.putstring ("SK_REF") end type_a: NONE_A is do create Result end c_type: TYPE_C is -- C type do Result := Current end feature -- Generic conformance generated_id (final_mode : BOOLEAN) : INTEGER is -- Id corresponding to current type. do Result := None_type end feature -- Generic conformace for IL generate_gen_type_il (il_generator: IL_CODE_GENERATOR; use_info: BOOLEAN) is -- `use_info' is true iff we generate code for a -- creation instruction. do il_generator.generate_none_type_instance end end -- class NONE_I