]> git.saurik.com Git - cycript.git/blobdiff - Output.cpp
Fixed argument serialization comma bug.
[cycript.git] / Output.cpp
index edd262fdd819dc5b87f9b1a53128ce157e2a369c..647f47e0f0c34438ce3964c373d92a9a41c2fc19 100644 (file)
@@ -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 << "<unimplemented>";
+    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);