mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
ModuleTrace: include ObjC methods' containing type name
This commit is contained in:
@@ -838,6 +838,12 @@ public:
|
||||
continue;
|
||||
}
|
||||
out.object([&] {
|
||||
if (auto *parent = dyn_cast_or_null<clang::NamedDecl>(clangD
|
||||
->getParent())) {
|
||||
auto pName = parent->getName();
|
||||
if (!pName.empty())
|
||||
out.attribute("type", pName);
|
||||
}
|
||||
out.attribute("method", clangD->getNameAsString());
|
||||
out.attribute("location", Loc.printToString(SM));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user