mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Rename FuncDecl::getBody() to FuncDecl::getFuncExpr()
ConstructorDecl::getBody() and DestructorDecl::getBody() return 'BraceStmt *'. After changing the AST representation for functions, FuncDecl::getBody() will return 'BraceStmt *' and FuncDecl::getFuncExpr() will be gone. Swift SVN r8050
This commit is contained in:
@@ -648,7 +648,7 @@ public:
|
||||
Builder.addLeadingDot();
|
||||
Builder.addTextChunk(Name);
|
||||
Builder.addLeftParen();
|
||||
auto *FE = FD->getBody();
|
||||
auto *FE = FD->getFuncExpr();
|
||||
auto Patterns = FE->getArgParamPatterns();
|
||||
unsigned FirstIndex = 0;
|
||||
if (!IsImlicitlyCurriedInstanceMethod && FE->getImplicitSelfDecl())
|
||||
@@ -1071,7 +1071,7 @@ void CodeCompletionCallbacksImpl::doneParsing() {
|
||||
return;
|
||||
|
||||
if (auto *FD = dyn_cast_or_null<FuncDecl>(DelayedParsedDecl))
|
||||
CurDeclContext = FD->getBody();
|
||||
CurDeclContext = FD->getFuncExpr();
|
||||
|
||||
if (ParsedExpr && !typecheckParsedExpr())
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user