mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Rename ImplicitClosureExpr -> AutoClosureExpr
Swift SVN r8304
This commit is contained in:
@@ -37,7 +37,7 @@ static unsigned getFuncNaturalUncurryLevel(PipeClosureExpr *CE) {
|
||||
return Level;
|
||||
}
|
||||
|
||||
static unsigned getFuncNaturalUncurryLevel(ImplicitClosureExpr *CE) {
|
||||
static unsigned getFuncNaturalUncurryLevel(AutoClosureExpr *CE) {
|
||||
assert(CE->getParamPatterns().size() >= 1 && "no arguments for func?!");
|
||||
unsigned Level = CE->getParamPatterns().size() - 1;
|
||||
// Functions with captures have an extra uncurry level for the capture
|
||||
@@ -197,7 +197,7 @@ SILDeclRef::SILDeclRef(SILDeclRef::Loc baseLoc,
|
||||
"no param patterns for function?!");
|
||||
naturalUncurryLevel = getFuncNaturalUncurryLevel(PCE);
|
||||
} else {
|
||||
auto *CE = baseLoc.dyn_cast<ImplicitClosureExpr *>();
|
||||
auto *CE = baseLoc.dyn_cast<AutoClosureExpr *>();
|
||||
loc = CE;
|
||||
kind = Kind::Func;
|
||||
assert(CE->getParamPatterns().size() >= 1 &&
|
||||
|
||||
Reference in New Issue
Block a user