File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -838,6 +838,12 @@ class ObjcMethodReferenceCollector: public SourceEntityWalker {
838
838
continue ;
839
839
}
840
840
out.object ([&] {
841
+ if (auto *parent = dyn_cast_or_null<clang::NamedDecl>(clangD
842
+ ->getParent ())) {
843
+ auto pName = parent->getName ();
844
+ if (!pName.empty ())
845
+ out.attribute (" type" , pName);
846
+ }
841
847
out.attribute (" method" , clangD->getNameAsString ());
842
848
out.attribute (" location" , Loc.printToString (SM));
843
849
});
Original file line number Diff line number Diff line change @@ -14,4 +14,5 @@ public func testProperties(_ x: FooClassBase) {
14
14
15
15
// CHECK-DAG: fooBaseInstanceFunc0
16
16
// CHECK-DAG: fooBaseInstanceFunc1
17
+ // CHECK-DAG: "type": "FooClassBase"
17
18
// CHECK-DAG: SOURCE_DIR/test/IDE/Inputs/mock-sdk/Foo.framework/Headers/Foo.h
You can’t perform that action at this time.
0 commit comments