mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Rename SpecializeAttr::getSpecializedSgnature()
This commit is contained in:
@@ -907,14 +907,14 @@ bool DeclAttribute::printImpl(ASTPrinter &Printer, const PrintOptions &Options,
|
||||
Printer << "kind: " << kind << ", ";
|
||||
SmallVector<Requirement, 4> requirementsScratch;
|
||||
ArrayRef<Requirement> requirements;
|
||||
if (auto sig = attr->getSpecializedSgnature())
|
||||
if (auto sig = attr->getSpecializedSignature())
|
||||
requirements = sig->getRequirements();
|
||||
|
||||
auto *FnDecl = dyn_cast_or_null<AbstractFunctionDecl>(D);
|
||||
if (FnDecl && FnDecl->getGenericSignature()) {
|
||||
auto genericSig = FnDecl->getGenericSignature();
|
||||
|
||||
if (auto sig = attr->getSpecializedSgnature()) {
|
||||
if (auto sig = attr->getSpecializedSignature()) {
|
||||
requirementsScratch = sig->requirementsNotSatisfiedBy(
|
||||
genericSig);
|
||||
requirements = requirementsScratch;
|
||||
|
||||
Reference in New Issue
Block a user