]> git.saurik.com Git - cycript.git/blobdiff - ObjectiveC/Replace.cpp
Promote all warnings from bison to full-on errors.
[cycript.git] / ObjectiveC / Replace.cpp
index 74a687f467fdb37812cb5c60b9687d0824b287ea..62a28c5398c67a3883b033ff6c23acfa0f754826 100644 (file)
@@ -1,5 +1,5 @@
 /* Cycript - Optimizing JavaScript Compiler/Runtime
- * Copyright (C) 2009-2014  Jay Freeman (saurik)
+ * Copyright (C) 2009-2015  Jay Freeman (saurik)
 */
 
 /* GNU Affero General Public License, Version 3 {{{ */
 
 #include <sstream>
 
-static CYExpression *MessageType(CYContext &context, CYExpression *type, CYMessageParameter *next, CYExpression *extra = NULL) {
+static CYExpression *MessageType(CYContext &context, CYTypedIdentifier *type, CYMessageParameter *next, CYExpression *extra = NULL) {
     if (type == NULL)
         return NULL;
 
-    CYExpression *left($C0($M(type, $S("toString"))));
+    CYExpression *left($C0($M(type->Replace(context), $S("toString"))));
     if (extra != NULL)
         left = $ CYAdd(left, extra);