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:
Dmitri Hrybenko
2013-09-09 19:57:27 +00:00
parent 485e1f4eb5
commit 1e23c936e0
18 changed files with 67 additions and 65 deletions

View File

@@ -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;