-redef class Ntype_type
- redef fun accept_objc(v) do
- v.enter_visit(n_data_type)
- end
-end
-
-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