File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -849,6 +849,8 @@ class ObjcMethodReferenceCollector: public SourceEntityWalker {
849
849
return " interface_type" ;
850
850
if (isa<clang::ObjCCategoryDecl>(clangD))
851
851
return " category_type" ;
852
+ if (isa<clang::ObjCProtocolDecl>(clangD))
853
+ return " protocol_type" ;
852
854
return " type" ;
853
855
}
854
856
public:
Original file line number Diff line number Diff line change 7
7
8
8
import Foo
9
9
10
- public func testProperties( _ x: FooClassBase ) {
10
+ public func testProperties( _ x: FooClassBase , _ y : FooProtocolBase ) {
11
11
_ = x. fooBaseInstanceFunc0 ( )
12
12
x. fooBaseInstanceFunc1 ( 1.2 )
13
13
_ = FooClassBase . fooBaseClassFunc0 ( )
14
+ y. fooProtoFunc ( )
14
15
}
15
16
16
17
// CHECK-DAG: "instance_method": "fooBaseInstanceFunc0"
17
18
// CHECK-DAG: "instance_method": "fooBaseInstanceFunc1:"
18
19
// CHECK-DAG: "class_method": "fooBaseClassFunc0"
19
20
// CHECK-DAG: "interface_type": "FooClassBase"
21
+ // CHECK-DAG: "protocol_type": "FooProtocolBase"
20
22
// CHECK-DAG: "declared_at": "SOURCE_DIR/test/IDE/Inputs/mock-sdk/Foo.framework/Headers/Foo.h
21
23
// CHECK-DAG: "referenced_at_file_id": 1
22
24
// CHECK-DAG: "file_id": 1,
You can’t perform that action at this time.
0 commit comments