mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Remove AnyFunctionRef::setCaptureInfo()
This commit is contained in:
@@ -75,13 +75,6 @@ public:
|
|||||||
return TheFunction.get<AbstractClosureExpr *>()->getCaptureInfo();
|
return TheFunction.get<AbstractClosureExpr *>()->getCaptureInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
void setCaptureInfo(CaptureInfo captures) const {
|
|
||||||
if (auto *AFD = TheFunction.dyn_cast<AbstractFunctionDecl *>()) {
|
|
||||||
AFD->setCaptureInfo(captures);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
TheFunction.get<AbstractClosureExpr *>()->setCaptureInfo(captures);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool hasType() const {
|
bool hasType() const {
|
||||||
if (auto *AFD = TheFunction.dyn_cast<AbstractFunctionDecl *>())
|
if (auto *AFD = TheFunction.dyn_cast<AbstractFunctionDecl *>())
|
||||||
|
|||||||
Reference in New Issue
Block a user