X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/b3378a02d0a811be38e530933fb9a57a3012a823..910fdbc41224c34b4f2dc86cb568a51cee8f2a50:/ObjectiveC/Output.mm?ds=inline diff --git a/ObjectiveC/Output.mm b/ObjectiveC/Output.mm index 3f360a8..e406493 100644 --- a/ObjectiveC/Output.mm +++ b/ObjectiveC/Output.mm @@ -61,7 +61,7 @@ void CYClass::Output(CYOutput &out, CYFlags flags) const { out << "return $cyc;"; out << "}("; if (super_ != NULL) - super_->Output(out, CYPA, CYNoFlags); + super_->Output(out, CYAssign::Precedence_, CYNoFlags); else out << "null"; out << "))"; @@ -85,7 +85,7 @@ void CYImport::Output(CYOutput &out, CYFlags flags) const { void CYMessage::Output(CYOutput &out, bool replace) const { out << (instance_ ? '-' : '+'); - for (CYMessageParameter *parameter(parameters_); parameter != NULL; parameter = parameter->next_) + CYForEach (parameter, parameters_) if (parameter->tag_ != NULL) { out << ' ' << *parameter->tag_; if (parameter->name_ != NULL) @@ -96,7 +96,7 @@ void CYMessage::Output(CYOutput &out, bool replace) const { } void CYProtocol::Output(CYOutput &out) const { - name_->Output(out, CYPA, CYNoFlags); + name_->Output(out, CYAssign::Precedence_, CYNoFlags); if (next_ != NULL) out << ',' << ' ' << *next_; } @@ -113,7 +113,7 @@ void CYSelectorPart::Output(CYOutput &out) const { } void CYSend::Output(CYOutput &out, CYFlags flags) const { - for (CYArgument *argument(arguments_); argument != NULL; argument = argument->next_) + CYForEach (argument, arguments_) if (argument->name_ != NULL) { out << ' ' << *argument->name_; if (argument->value_ != NULL) @@ -123,7 +123,7 @@ void CYSend::Output(CYOutput &out, CYFlags flags) const { void CYSendDirect::Output(CYOutput &out, CYFlags flags) const { out << '['; - self_->Output(out, CYPA, CYNoFlags); + self_->Output(out, CYAssign::Precedence_, CYNoFlags); CYSend::Output(out, flags); out << ']'; }