Argyrios Kyrtzidis | f76b897 | 2012-02-28 23:39:24 +0000 | [diff] [blame^] | 1 | @interface I |
| 2 | @property (readonly) id prop; |
| 3 | -(id)prop; |
| 4 | @end |
| 5 | |
| 6 | @interface I() |
| 7 | @property (assign,readwrite) id prop; |
| 8 | @end |
| 9 | |
| 10 | @implementation I |
| 11 | @synthesize prop = _prop; |
| 12 | @end |
| 13 | |
| 14 | // RUN: c-index-test -index-file %s | FileCheck %s |
| 15 | // CHECK: [indexDeclaration]: kind: objc-class | name: I | {{.*}} | loc: 1:12 |
| 16 | // CHECK: [indexDeclaration]: kind: objc-instance-method | name: prop | {{.*}} | loc: 3:2 |
| 17 | // CHECK: [indexDeclaration]: kind: objc-property | name: prop | {{.*}} | loc: 2:25 |
| 18 | // CHECK: [indexDeclaration]: kind: objc-category | name: | {{.*}} | loc: 6:12 |
| 19 | // CHECK: [indexDeclaration]: kind: objc-instance-method | name: setProp: | {{.*}} | loc: 7:33 |
| 20 | // CHECK: [indexDeclaration]: kind: objc-property | name: prop | {{.*}} | loc: 7:33 |
| 21 | |
| 22 | // CHECK: [indexDeclaration]: kind: objc-ivar | name: _prop | {{.*}} | loc: 11:20 |
| 23 | // CHECK: [indexDeclaration]: kind: objc-instance-method | name: prop | {{.*}} | loc: 11:13 | {{.*}} | lexical-container: [I:10:17] |
| 24 | // CHECK: [indexDeclaration]: kind: objc-instance-method | name: setProp: | {{.*}} | loc: 11:13 | {{.*}} | lexical-container: [I:10:17] |