Introduce AbstractFunctionDecl -- a base class for ConstructorDecl,

DestructorDecl, FuncDecl -- and move some of the common concepts and logic
into it

No functionality change.


Swift SVN r8090
This commit is contained in:
Dmitri Hrybenko
2013-09-11 04:04:01 +00:00
parent e6bfc39e04
commit 3cc01cf7d6
34 changed files with 599 additions and 511 deletions

View File

@@ -649,9 +649,9 @@ public:
Builder.addTextChunk(Name);
Builder.addLeftParen();
auto *FE = FD->getFuncExpr();
auto Patterns = FE->getArgParamPatterns();
auto Patterns = FD->getArgParamPatterns();
unsigned FirstIndex = 0;
if (!IsImlicitlyCurriedInstanceMethod && FE->getImplicitSelfDecl())
if (!IsImlicitlyCurriedInstanceMethod && FD->getImplicitSelfDecl())
FirstIndex = 1;
addPatternParameters(Builder, Patterns[FirstIndex]);
Builder.addRightParen();