X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/c5b15840ab1bb70218506531f9a73fe2d112b007..d3865d294299f1d5404b59f4482ebb116c8fcee0:/ObjectiveC/Output.cpp diff --git a/ObjectiveC/Output.cpp b/ObjectiveC/Output.cpp index 76838d8..7d21d6f 100644 --- a/ObjectiveC/Output.cpp +++ b/ObjectiveC/Output.cpp @@ -49,6 +49,9 @@ void CYImplementation::Output(CYOutput &out, CYFlags flags) const { } void CYImplementationField::Output(CYOutput &out) const { + out << *typed_; + out.Terminate(); + out << '\n'; } void CYInstanceLiteral::Output(CYOutput &out, CYFlags flags) const { @@ -60,8 +63,8 @@ void CYMessage::Output(CYOutput &out) const { out << (instance_ ? '-' : '+'); CYForEach (parameter, parameters_) - if (parameter->tag_ != NULL) { - out << ' ' << *parameter->tag_; + if (parameter->name_ != NULL) { + out << ' ' << *parameter->name_; if (parameter->type_ != NULL) out << ':' << *parameter->type_->identifier_; } @@ -89,7 +92,7 @@ void CYProtocol::Output(CYOutput &out) const { } void CYSelector::Output(CYOutput &out, CYFlags flags) const { - out << "@selector" << '(' << name_ << ')'; + out << "@selector" << '(' << parts_ << ')'; } void CYSelectorPart::Output(CYOutput &out) const {