X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/46f4f308790f8c412abb5f81f278822aef198e20..5b75838211f16d9c88fb1bae3193e3693a1bee39:/ObjectiveC/Output.mm diff --git a/ObjectiveC/Output.mm b/ObjectiveC/Output.mm index c90418d..a2d765c 100644 --- a/ObjectiveC/Output.mm +++ b/ObjectiveC/Output.mm @@ -76,7 +76,9 @@ void CYClassStatement::Output(CYOutput &out, CYFlags flags) const { } void CYEncodedType::Output(CYOutput &out, CYFlags flags) const { + out << "@encode("; // XXX: this is seriously wrong + out << ")"; } void CYField::Output(CYOutput &out) const { @@ -104,6 +106,14 @@ void CYBox::Output(CYOutput &out, CYFlags flags) const { value_->Output(out, Precedence(), CYRight(flags)); } +void CYObjCBlock::Output(CYOutput &out, CYFlags flags) const { + // XXX: this is seriously wrong + out << "^("; + out << ")"; + out << "{"; + out << "}"; +} + void CYProtocol::Output(CYOutput &out) const { name_->Output(out, CYAssign::Precedence_, CYNoFlags); if (next_ != NULL)