X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/f2f0d1d14705a8dc96cb6787ff1e1d170efabc90..5b75838211f16d9c88fb1bae3193e3693a1bee39:/ObjectiveC/Output.mm diff --git a/ObjectiveC/Output.mm b/ObjectiveC/Output.mm index a34826d..a2d765c 100644 --- a/ObjectiveC/Output.mm +++ b/ObjectiveC/Output.mm @@ -1,5 +1,5 @@ /* Cycript - Optimizing JavaScript Compiler/Runtime - * Copyright (C) 2009-2010 Jay Freeman (saurik) + * Copyright (C) 2009-2012 Jay Freeman (saurik) */ /* GNU Lesser General Public License, Version 3 {{{ */ @@ -75,6 +75,12 @@ void CYClassStatement::Output(CYOutput &out, CYFlags flags) const { CYClass::Output(out, flags); } +void CYEncodedType::Output(CYOutput &out, CYFlags flags) const { + out << "@encode("; + // XXX: this is seriously wrong + out << ")"; +} + void CYField::Output(CYOutput &out) const { } @@ -100,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)