mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
swift-module-digester: don't include private setters.
This commit is contained in:
@@ -1257,8 +1257,10 @@ static SDKNode *constructVarNode(SDKContext &Ctx, ValueDecl *VD) {
|
||||
if (auto VAD = dyn_cast<AbstractStorageDecl>(VD)) {
|
||||
if (auto Getter = VAD->getGetter())
|
||||
Var->addChild(constructFunctionNode(Ctx, Getter, SDKNodeKind::DeclGetter));
|
||||
if (auto Setter = VAD->getSetter())
|
||||
Var->addChild(constructFunctionNode(Ctx, Setter, SDKNodeKind::DeclSetter));
|
||||
if (auto Setter = VAD->getSetter()) {
|
||||
if (Setter->getFormalAccess() > AccessLevel::Internal)
|
||||
Var->addChild(constructFunctionNode(Ctx, Setter, SDKNodeKind::DeclSetter));
|
||||
}
|
||||
}
|
||||
return Var;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user