From 90cf684cbbbb84de1f9f9892ddd9e3d54f5cba00 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 15 Sep 2012 20:45:32 -0700 Subject: [PATCH] Allow unnamed arguments with CYTypedParameter. --- ObjectiveC/Replace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ObjectiveC/Replace.cpp b/ObjectiveC/Replace.cpp index 1f6c118..e0601db 100644 --- a/ObjectiveC/Replace.cpp +++ b/ObjectiveC/Replace.cpp @@ -224,7 +224,7 @@ CYExpression *CYSendSuper::Replace(CYContext &context) { } CYFunctionParameter *CYTypedParameter::Parameters(CYContext &context) { $T(NULL) - return $ CYFunctionParameter($ CYDeclaration(typed_->identifier_), next_->Parameters(context)); + return $ CYFunctionParameter($ CYDeclaration(typed_->identifier_ ?: context.Unique()), next_->Parameters(context)); } CYExpression *CYTypedParameter::TypeSignature(CYContext &context, CYExpression *prefix) { $T(prefix) -- 2.47.2