]> git.saurik.com Git - cycript.git/blobdiff - Replace.cpp
Add support to @encode, Decode_, and With blocks.
[cycript.git] / Replace.cpp
index 1ddc5c1dfd444f26840531b2f68d262fae6b1231..83a5c47328840c8238115c6908ac47563dafa51b 100644 (file)
@@ -873,6 +873,10 @@ CYExpression *CYTypeArrayOf::Replace_(CYContext &context, CYExpression *type) {
     return next_->Replace(context, $ CYCall($ CYDirectMember(type, $ CYString("arrayOf")), $ CYArgument(size_)));
 }
 
+CYExpression *CYTypeBlockWith::Replace_(CYContext &context, CYExpression *type) {
+    return next_->Replace(context, $ CYCall($ CYDirectMember(type, $ CYString("blockWith")), parameters_->Argument(context)));
+}
+
 CYExpression *CYTypeConstant::Replace_(CYContext &context, CYExpression *type) {
     return next_->Replace(context, $ CYCall($ CYDirectMember(type, $ CYString("constant"))));
 }