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 {
849849      return  " interface_type"  ;
850850    if  (isa<clang::ObjCCategoryDecl>(clangD))
851851      return  " category_type"  ;
852+     if  (isa<clang::ObjCProtocolDecl>(clangD))
853+       return  " protocol_type"  ;
852854    return  " type"  ;
853855  }
854856public: 
Original file line number Diff line number Diff line change 77
88import  Foo
99
10- public  func  testProperties( _ x:  FooClassBase )  { 
10+ public  func  testProperties( _ x:  FooClassBase ,  _ y :   FooProtocolBase )  { 
1111  _ =  x. fooBaseInstanceFunc0 ( ) 
1212  x. fooBaseInstanceFunc1 ( 1.2 ) 
1313  _ =  FooClassBase . fooBaseClassFunc0 ( ) 
14+   y. fooProtoFunc ( ) 
1415} 
1516
1617// CHECK-DAG: "instance_method": "fooBaseInstanceFunc0"
1718// CHECK-DAG: "instance_method": "fooBaseInstanceFunc1:"
1819// CHECK-DAG: "class_method": "fooBaseClassFunc0"
1920// CHECK-DAG: "interface_type": "FooClassBase"
21+ // CHECK-DAG: "protocol_type": "FooProtocolBase"
2022// CHECK-DAG: "declared_at": "SOURCE_DIR/test/IDE/Inputs/mock-sdk/Foo.framework/Headers/Foo.h
2123// CHECK-DAG: "referenced_at_file_id": 1
2224// CHECK-DAG: "file_id": 1,
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments