From: Jay Freeman (saurik) Date: Sun, 16 Sep 2012 03:45:32 +0000 (-0700) Subject: Allow unnamed arguments with CYTypedParameter. X-Git-Tag: v0.9.461^0 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/90cf684cbbbb84de1f9f9892ddd9e3d54f5cba00 Allow unnamed arguments with CYTypedParameter. --- 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)