]> git.saurik.com Git - cycript.git/blobdiff - ObjectiveC/Syntax.hpp
When messages took no arguments, type returned NULL.
[cycript.git] / ObjectiveC / Syntax.hpp
index a9a9798b649fd9df413cdf554d4f122dc32bbe5f..580ea3adbaddbdf7a468be134c6724d1257c0994 100644 (file)
@@ -77,6 +77,16 @@ struct CYSelector :
 struct CYField :
     CYNext<CYField>
 {
+    CYExpression *type_;
+    CYIdentifier *name_;
+
+    CYField(CYExpression *type, CYIdentifier *name, CYField *next = NULL) :
+        CYNext<CYField>(next),
+        type_(type),
+        name_(name)
+    {
+    }
+
     CYStatement *Replace(CYContext &context) const;
     void Output(CYOutput &out) const;
 };