contrib/objcwrapper: each ObjcProperty keeps track of its declaring class
[nit.git] / contrib / objcwrapper / src / objc_model.nit
index 26a4df6..21a34fa 100644 (file)
@@ -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]
@@ -93,6 +93,9 @@ end
 
 # Property of an `ObjcClass`
 class ObjcProperty
+       # Introducing class
+       var objc_class: ObjcClass
+
        # Is this property to be commented out?
        var is_commented = false is writable
 end