[NFC] AST: Turn getParameterList into a method on ValueDecl

This commit is contained in:
Anthony Latsis
2025-03-19 18:45:32 +00:00
parent 012ac5da5d
commit 3d3b1ca50a
18 changed files with 58 additions and 64 deletions

View File

@@ -966,7 +966,7 @@ void SwiftLangSupport::printMemberDeclDescription(const swift::ValueDecl *VD,
OS << ')';
};
if (isa<EnumElementDecl>(VD) || isa<FuncDecl>(VD)) {
if (const auto ParamList = getParameterList(const_cast<ValueDecl *>(VD))) {
if (const auto ParamList = VD->getParameterList()) {
printParams(ParamList);
}
} else if (isa<VarDecl>(VD)) {