mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user