X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/931b816a74a6791a373085a3f53b1dab592baf55..2b0ddce2b9c3e24fb95f78afaa88e326c61c3085:/Output.cpp?ds=inline diff --git a/Output.cpp b/Output.cpp index edd262f..647f47e 100644 --- a/Output.cpp +++ b/Output.cpp @@ -20,7 +20,7 @@ void CYArgument::Output(std::ostream &out, bool send) const { } if (next_ != NULL) { if (!send) - if (next_->name_ != NULL) + if (next_->name_ == NULL) out << ','; else out << ' '; @@ -288,10 +288,20 @@ void CYReturn::Output(std::ostream &out) const { void CYSelector::Output(std::ostream &out) const { out << '"'; - out << ""; + if (name_ != NULL) + name_->Output(out); out << '"'; } +void CYSelectorPart::Output(std::ostream &out) const { + if (name_ != NULL) + out << *name_; + if (value_) + out << ':'; + if (next_ != NULL) + next_->Output(out); +} + void CYSource::Show(std::ostream &out) const { for (const CYSource *next(this); next != NULL; next = next->next_) next->Output(out, false);