From 3d7325735367aeb99e20e70b2dbde227c5c6fdb1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Tue, 1 Sep 2015 10:48:49 -0400 Subject: [PATCH] contrib/objcwrapper: replace `scope` by `is_class_property` MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- contrib/objcwrapper/src/objc_model.nit | 4 ++-- contrib/objcwrapper/src/objc_visitor.nit | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/objcwrapper/src/objc_model.nit b/contrib/objcwrapper/src/objc_model.nit index 26a4df6..3ce3946 100644 --- a/contrib/objcwrapper/src/objc_model.nit +++ b/contrib/objcwrapper/src/objc_model.nit @@ -67,8 +67,8 @@ end 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] diff --git a/contrib/objcwrapper/src/objc_visitor.nit b/contrib/objcwrapper/src/objc_visitor.nit index 3657b6c..0c131cc 100644 --- a/contrib/objcwrapper/src/objc_visitor.nit +++ b/contrib/objcwrapper/src/objc_visitor.nit @@ -75,7 +75,7 @@ redef class Nsignature_block_signature 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 -- 1.7.9.5