mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[NFC] AST: Turn getParameterList into a method on ValueDecl
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user