X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/1e8d80477a3e058a30c477955f1e0c56deb6e956..307a439f88889d960e82d98c5765cca7ea5df321:/Analyze.cpp

diff --git a/Analyze.cpp b/Analyze.cpp
index 5bf4914..9a056e5 100644
--- a/Analyze.cpp
+++ b/Analyze.cpp
@@ -502,6 +502,10 @@ static CXChildVisitResult CYChildVisit(CXCursor cursor, CXCursor parent, CXClien
         } break;
 
         case CXCursor_EnumDecl: {
+            // the enum constants are implemented separately *also*
+            // XXX: maybe move output logic to function we can call
+            result = CXChildVisit_Recurse;
+
             if (spelling[0] == '\0')
                 goto skip;
             // XXX: this was blindly copied from StructDecl
@@ -520,10 +524,6 @@ static CXChildVisitResult CYChildVisit(CXCursor cursor, CXCursor parent, CXClien
             value << ".withName(\"" << name << "\")";
             name = "$cye" + name;
             flags = CYBridgeType;
-
-            // the enum constants are implemented separately *also*
-            // XXX: maybe move output logic to function we can call
-            result = CXChildVisit_Recurse;
         } break;
 
         case CXCursor_MacroDefinition: {