]> git.saurik.com Git - cycript.git/blobdiff - ObjectiveC/Output.cpp
CYONify NSObject with # (different from NSString).
[cycript.git] / ObjectiveC / Output.cpp
index 658a8f51ebc2f2c74faad66460353c2280023584..6fd2229abbe28b64f3bbbe296f4c1c681a8d0a42 100644 (file)
@@ -74,12 +74,6 @@ void CYClassStatement::Output(CYOutput &out, CYFlags flags) const {
     CYClass::Output(out, flags);
 }
 
-void CYEncodedType::Output(CYOutput &out, CYFlags flags) const {
-    out << "@encode(";
-    // XXX: this is seriously wrong
-    out << ")";
-}
-
 void CYField::Output(CYOutput &out) const {
 }
 
@@ -100,6 +94,12 @@ void CYMessage::Output(CYOutput &out, bool replace) const {
     out << code_;
 }
 
+void CYModule::Output(CYOutput &out) const {
+    out << part_;
+    if (next_ != NULL)
+        out << '.' << next_;
+}
+
 void CYBox::Output(CYOutput &out, CYFlags flags) const {
     out << '@';
     value_->Output(out, Precedence(), CYRight(flags));