mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Rename GenericContext::isGeneric to hasGenericParamList
`isGeneric` is a misleading name because this method checks for the existence of a `GenericParamList`, which is not implied by genericity.
This commit is contained in:
@@ -1880,7 +1880,7 @@ void AsyncConverter::addAsyncFuncReturnType(
|
||||
|
||||
void AsyncConverter::addResultTypeAnnotationIfNecessary(
|
||||
const FuncDecl *FD, const AsyncHandlerDesc &HandlerDesc) {
|
||||
if (FD->isGeneric()) {
|
||||
if (FD->hasGenericParamList()) {
|
||||
OS << tok::colon << " ";
|
||||
addAsyncFuncReturnType(HandlerDesc);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user