Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
class ObjcMethod
super ObjcProperty
- # Scope: '+' for a static class method, and '-' for an instance method
- var scope: Char is noinit, writable
+ # Is this a static class method declared with '+'? Otherwise it's an instance method.
+ var is_class_property: Bool = false is writable
# Parameters of the method
var params = new Array[ObjcParam]
do
var method = new ObjcMethod
method.return_type = n_signature_return_type.to_type
- method.scope = if n_scope.is_class_property then '-' else '+'
+ method.is_class_property = n_scope.is_class_property
for n_param in n_parameter.children do
var param = n_param.to_param