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:
@@ -629,7 +629,7 @@ swift::FragileFunctionKindRequest::evaluate(Evaluator &evaluator,
|
||||
bool DeclContext::isInnermostContextGeneric() const {
|
||||
if (auto Decl = getAsDecl())
|
||||
if (auto GC = Decl->getAsGenericContext())
|
||||
return GC->isGeneric();
|
||||
return GC->hasGenericParamList();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user