]> git.saurik.com Git - cycript.git/blobdiff - Cycript.y
Output all message declarations (not just one or the first and last), flesh out some...
[cycript.git] / Cycript.y
index e51a0ec95b40893081bea2a8886f93761dcbc14e..cef2a42a36b1fbbf266b149efe54eaf8d373b80d 100644 (file)
--- a/Cycript.y
+++ b/Cycript.y
@@ -1184,7 +1184,7 @@ ClassMessageDeclaration
     ;
 
 ClassMessageDeclarationListOpt
-    : ClassMessageDeclarationListOpt ClassMessageDeclaration { if ($1) { $1->SetNext($2); $$ = $1; } else $$ = $2; }
+    : ClassMessageDeclarationListOpt ClassMessageDeclaration { $2->SetNext($1); $$ = $2; }
     | { $$ = NULL; }
     ;