X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/a4d849b7b60b43b71a5fe406ff0d78ccf197d15d..eb710395df37f75505bcd0d5a9e6216b4673d753:/ObjectiveC/Output.cpp diff --git a/ObjectiveC/Output.cpp b/ObjectiveC/Output.cpp index e2bb0f8..6927938 100644 --- a/ObjectiveC/Output.cpp +++ b/ObjectiveC/Output.cpp @@ -49,7 +49,7 @@ void CYImplementation::Output(CYOutput &out, CYFlags flags) const { } void CYImplementationField::Output(CYOutput &out) const { - out << *typed_; + type_->Output(out, name_); out.Terminate(); out << '\n'; } @@ -65,8 +65,13 @@ void CYMessage::Output(CYOutput &out) const { CYForEach (parameter, parameters_) if (parameter->name_ != NULL) { out << ' ' << *parameter->name_; - if (parameter->type_ != NULL) - out << ':' << *parameter->type_->identifier_; + // XXX: this is off somehow + if (parameter->identifier_ != NULL) { + out << ':'; + if (parameter->type_ != NULL) + out << '(' << *parameter->type_ << ')'; + out << *parameter->identifier_; + } } out << code_; @@ -133,7 +138,7 @@ void CYObjCBlock::Output(CYOutput &out, CYFlags flags) const { out << ',' << ' '; else comma = true; - out << *parameter->typed_; + parameter->type_->Output(out, parameter->name_); } out << ')' << ' ' << '{' << '\n';