mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
ABIChecker: add an API to document that SDKNodeRoot contains single module name. NFC
This commit is contained in:
@@ -2107,6 +2107,13 @@ void SDKNodeRoot::jsonize(json::Output &out) {
|
||||
out.mapOptional(getKeyContent(Ctx, KeyKind::KK_tool_arguments).data(), ToolArgs);
|
||||
}
|
||||
|
||||
llvm::Optional<StringRef> SDKNodeRoot::getSingleModuleName() const {
|
||||
auto rawName = getName();
|
||||
if (rawName == "MULTI_MODULE" || rawName == "NO_MODULE")
|
||||
return llvm::None;
|
||||
return rawName;
|
||||
}
|
||||
|
||||
void SDKNodeConformance::jsonize(json::Output &out) {
|
||||
SDKNode::jsonize(out);
|
||||
output(out, KeyKind::KK_usr, Usr);
|
||||
|
||||
Reference in New Issue
Block a user