workflow_objc icon indicating copy to clipboard operation
workflow_objc copied to clipboard

Workflow skipping meta class if methodList of class is empty

Open mostobriv opened this issue 1 year ago • 1 comments

If methodList for ClassInfo is empty or nullptr, workflow just skip such class completely ignoring metaclass, thus info about classes with only class methods (+[...]) not being applied to database.

There is piece of code, responsible for skipping iteration: https://github.com/Vector35/workflow_objc/blob/3bbf294dba4c46a8e42a426ea4f561a72896a2b6/InfoHandler.cpp#L245-L246

And there is the part that applying info gathered from metaclass: https://github.com/Vector35/workflow_objc/blob/3bbf294dba4c46a8e42a426ea4f561a72896a2b6/InfoHandler.cpp#L277-L291

I think it should be placed earlier on iteration or mb consider to change response to empty methods list as in the same loop ivar's being applied also, i'm not yet much familiar with objective-c internals, but mb there is some cases when class haven't methods but ivars.

mostobriv avatar May 01 '24 14:05 mostobriv