X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/9a39f7051ad983d4377917e66222727dcbe6c099..e7ff015817107dbac9373c19ce851178e4f3c791:/Replace.cpp diff --git a/Replace.cpp b/Replace.cpp index 3f02fa0..83a5c47 100644 --- a/Replace.cpp +++ b/Replace.cpp @@ -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)