Implement <rdar://problem/16021869> the first portion of a function selector should allow implicit arg names

This allows us to use implicit names in protocols and asm name functions, as well
as for the first chunk of selectors.  This feature is particularly useful for
delegate methods.



Swift SVN r13751
This commit is contained in:
Chris Lattner
2014-02-10 17:39:57 +00:00
parent 2e898da8e7
commit c57b0d25b7
5 changed files with 35 additions and 9 deletions

View File

@@ -665,11 +665,13 @@ public:
void setFunctionContext(DeclContext *DC);
};
ParserStatus parseFunctionArguments(SmallVectorImpl<Pattern*> &ArgPatterns,
ParserStatus parseFunctionArguments(Identifier functionName,
SmallVectorImpl<Pattern*> &ArgPatterns,
SmallVectorImpl<Pattern*> &BodyPatterns,
DefaultArgumentInfo &defaultArgs,
bool &HasSelectorStyleSignature);
ParserStatus parseFunctionSignature(SmallVectorImpl<Pattern *> &argPatterns,
ParserStatus parseFunctionSignature(Identifier functionName,
SmallVectorImpl<Pattern *> &argPatterns,
SmallVectorImpl<Pattern *> &bodyPatterns,
DefaultArgumentInfo &defaultArgs,
TypeRepr *&retType,