X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/0f07012d6046b615c9f6d070d5db80b6ba794cee..ccd33bdc275e7b4b7cc18d484ec68976354e48e2:/ObjectiveC/Output.cpp diff --git a/ObjectiveC/Output.cpp b/ObjectiveC/Output.cpp index 658a8f5..d67971f 100644 --- a/ObjectiveC/Output.cpp +++ b/ObjectiveC/Output.cpp @@ -74,12 +74,6 @@ 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 { } @@ -87,6 +81,11 @@ void CYImport::Output(CYOutput &out, CYFlags flags) const { out << "@import"; } +void CYInstanceLiteral::Output(CYOutput &out, CYFlags flags) const { + out << '#'; + number_->Output(out, CYRight(flags)); +} + void CYMessage::Output(CYOutput &out, bool replace) const { out << (instance_ ? '-' : '+'); @@ -100,6 +99,12 @@ void CYMessage::Output(CYOutput &out, bool replace) const { out << code_; } +void CYModule::Output(CYOutput &out) const { + out << part_; + if (next_ != NULL) + out << '.' << next_; +} + void CYBox::Output(CYOutput &out, CYFlags flags) const { out << '@'; value_->Output(out, Precedence(), CYRight(flags));