Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
+redef class ObjcProperty
private fun comment_str: String do if is_commented then
return "#"
else return ""
private fun comment_str: String do if is_commented then
return "#"
else return ""
# Method of an `ObjcClass`
class ObjcMethod
# Method of an `ObjcClass`
class ObjcMethod
# Scope: '+' for a static class method, and '-' for an instance method
var scope: Char is noinit, writable
# Parameters of the method
# Scope: '+' for a static class method, and '-' for an instance method
var scope: Char is noinit, writable
# Parameters of the method
- var params = new Array[Param]
+ var params = new Array[ObjcParam]
# Return type as a `String`
var return_type: String is noinit, writable
# Return type as a `String`
var return_type: String is noinit, writable
# Attribute of an `ObjcClass`
class ObjcAttribute
# Attribute of an `ObjcClass`
class ObjcAttribute
# Name of this attribute
var name: String is noinit, writable
# Name of this attribute
var name: String is noinit, writable
end
# Property of an `ObjcClass`
end
# Property of an `ObjcClass`
# Is this property to be commented out?
var is_commented = false is writable
end
# Parameter of an `ObjcMethod`
# Is this property to be commented out?
var is_commented = false is writable
end
# Parameter of an `ObjcMethod`
# Parameter name, used by the caller (e.g. `withObject` in `withObject: (NSObject*) obj`)
var name: String is noinit, writable
# Parameter name, used by the caller (e.g. `withObject` in `withObject: (NSObject*) obj`)
var name: String is noinit, writable
method.is_commented = true
# Use a placeholder for easier debugging
method.is_commented = true
# Use a placeholder for easier debugging
param.name = "UNKNOWN"
param.return_type = "UNKNOWN"
param.variable_name = "UNKNOWN"
param.name = "UNKNOWN"
param.return_type = "UNKNOWN"
param.variable_name = "UNKNOWN"
redef class Nparameter
# Return null if type is not yet unsupported
redef class Nparameter
# Return null if type is not yet unsupported
- private fun to_param: nullable Param do return null
+ private fun to_param: nullable ObjcParam do return null
end
# Parameters with both a public and an internal name
redef class Nparameter_named
redef fun to_param
do
end
# Parameters with both a public and an internal name
redef class Nparameter_named
redef fun to_param
do
+ var param = new ObjcParam
param.variable_name = n_right.collect_text
param.name = n_left.collect_text
param.variable_name = n_right.collect_text
param.name = n_left.collect_text
redef class Nparameter_single
redef fun to_param
do
redef class Nparameter_single
redef fun to_param
do
+ var param = new ObjcParam
param.name = n_term.collect_text
param.is_single = true
return param
param.name = n_term.collect_text
param.is_single = true
return param