]> git.saurik.com Git - cycript.git/commitdiff
Move brackets from parts to pattern: it's simpler.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 23 Dec 2015 08:25:37 +0000 (00:25 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 23 Dec 2015 08:25:37 +0000 (00:25 -0800)
Analyze.cpp

index c6e5777e59b1d873078c56c015850c7aab4f3e84..ffc7c09b16e676fb57190e6432d630e13cd0c5ab 100644 (file)
@@ -138,15 +138,10 @@ static CXChildVisitResult CYChildVisit(CXCursor cursor, CXCursor parent, CXClien
                 goto skip;
 
             CYFieldBaton baton;
-
-            baton.types << "[";
-            baton.names << "[";
             clang_visitChildren(cursor, &CYFieldVisit, &baton);
-            baton.types << "]";
-            baton.names << "]";
 
             name += "$cy";
-            value << "new Type(" << baton.types.str() << "," << baton.names.str() << ")";
+            value << "new Type([" << baton.types.str() << "],[" << baton.names.str() << "])";
         } break;
 
         case CXCursor_TypedefDecl: {