]> git.saurik.com Git - cycript.git/blobdiff - Replace.cpp
Provide some kind of feedback while running ?gc.
[cycript.git] / Replace.cpp
index 3f02fa0a38a1b22b886a6375cb34b25f76a62a8e..83a5c47328840c8238115c6908ac47563dafa51b 100644 (file)
@@ -873,12 +873,16 @@ 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"))));
 }
 
 CYStatement *CYTypeDefinition::Replace(CYContext &context) {
-    return $E($ CYAssign($V(typed_->identifier_), typed_->type_->Replace(context)));
+    return $E($ CYAssign($V(typed_->identifier_), typed_->Replace(context)));
 }
 
 CYExpression *CYTypeModifier::Replace(CYContext &context, CYExpression *type) { $T(type)