-redef class Ndata_type_more
- redef fun accept_objc(v) do
- v.enter_visit(n_more_type)
- end
-end
-
-redef class Ndata_type_otype
- redef fun accept_objc(v) do
- if v.is_variable then
- v.attribute_objc.return_type = n_class.text
- else if v.is_method then
- v.method_objc.return_type = n_class.text
- else
- v.param.return_type = n_class.text
- end
- end
-end
-
-redef class Nmore_type_stype
- redef fun accept_objc(v) do
- v.enter_visit(n_specific_type)
- end
-end
-
-redef class Nmore_type_ptype
- redef fun accept_objc(v) do
- v.enter_visit(n_primitive_type)
- end
-end
-
-redef class Nspecific_type_i
- redef fun accept_objc(v) do
- if v.is_variable then
- v.attribute_objc.return_type = "id"
- else if v.is_method then
- v.method_objc.return_type = "id"
- else
- v.param.return_type = "id"
- end
- end
-end
-
-redef class Nspecific_type_b
- redef fun accept_objc(v) do
- if v.is_variable then
- v.attribute_objc.return_type = "Bool"
- else if v.is_method then
- v.method_objc.return_type = "Bool"
- else
- v.param.return_type = "Bool"
- end
- end
-end
-
-redef class Nspecific_type_val
- redef fun accept_objc(v) do
- if v.is_variable then
- v.attribute_objc.return_type = "va_list"
- else if v.is_method then
- v.method_objc.return_type = "va_list"
- else
- v.param.return_type = "va_list"
- end
- end
-end
-
-redef class Nspecific_type_v
- redef fun accept_objc(v) do
- if v.is_variable then
- v.attribute_objc.return_type = "void"
- else if v.is_method then
- v.method_objc.return_type = "void"
- else
- v.param.return_type = "void"
- end
- end
-end
-
-redef class Nprimitive_type_ui8
- redef fun accept_objc(v) do
- if v.is_variable then
- v.attribute_objc.return_type = "uint8_t"
- else if v.is_method then
- v.method_objc.return_type = "uint8_t"
- else
- v.param.return_type = "uint8_t"
- end
- end
-end
-
-redef class Nprimitive_type_ui16
- redef fun accept_objc(v) do
- if v.is_variable then
- v.attribute_objc.return_type = "uint16_t"
- else if v.is_method then
- v.method_objc.return_type = "uint16_t"
- else
- v.param.return_type = "uint16_t"
- end
- end
-end
-
-redef class Nprimitive_type_ui32
- redef fun accept_objc(v) do
- if v.is_variable then
- v.attribute_objc.return_type = "uint32_t"
- else if v.is_method then
- v.method_objc.return_type = "uint32_t"
- else
- v.param.return_type = "uint32_t"
- end
- end
-end
-
-redef class Nprimitive_type_ui64
- redef fun accept_objc(v) do
- if v.is_variable then
- v.attribute_objc.return_type = "uint64_t"
- else if v.is_method then
- v.method_objc.return_type = "uint64_t"
- else
- v.param.return_type = "uint64_t"
- end
- end
-end
-
-redef class Nprimitive_type_i8
- redef fun accept_objc(v) do
- if v.is_variable then
- v.attribute_objc.return_type = "int8_t"
- else if v.is_method then
- v.method_objc.return_type = "int8_t"
- else
- v.param.return_type = "int8_t"
- end
- end
-end
-
-redef class Nprimitive_type_i16
- redef fun accept_objc(v) do
- if v.is_variable then
- v.attribute_objc.return_type = "int16_t"
- else if v.is_method then
- v.method_objc.return_type = "int16_t"
- else
- v.param.return_type = "int16_t"
- end
- end
-end
-
-redef class Nprimitive_type_i32
- redef fun accept_objc(v) do
- if v.is_variable then
- v.attribute_objc.return_type = "int32_t"
- else if v.is_method then
- v.method_objc.return_type = "int32_t"
- else
- v.param.return_type = "int32_t"
- end