mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +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:
@@ -1156,9 +1156,9 @@ void Serializer::writeDecl(const Decl *D) {
|
||||
|
||||
// Write both argument and body parameters. This is important for proper
|
||||
// error messages with selector-style declarations.
|
||||
for (auto pattern : fn->getBody()->getArgParamPatterns())
|
||||
for (auto pattern : fn->getFuncExpr()->getArgParamPatterns())
|
||||
writePattern(pattern);
|
||||
for (auto pattern : fn->getBody()->getBodyParamPatterns())
|
||||
for (auto pattern : fn->getFuncExpr()->getBodyParamPatterns())
|
||||
writePattern(pattern);
|
||||
|
||||
if (fn->getAttrs().isConversion())
|
||||
|
||||
Reference in New Issue
Block a user