Find Uses of Field - Automation #6258
-
The It seems to be bottlenecked by how many Are there any other things I can try here? Sure would be nice if I had the option to cache decompile results for all functions, even in a limited capacity for cases like this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
That is a lot of functions. I imagine if we naively cached all decompilation, that memory would be exhausted. It seems like a different approach to the issue would better fit this use case. I'm envisioning a pass through all functions in which every data type use and field use is recorded. Once you have that info, you can later have any query check the pre-recorded data. |
Beta Was this translation helpful? Give feedback.
This is a feature that we are unlikely to work on any time soon. This is something you can explore if you have the inclination to get your hands dirtier than most. The way the type usage is processed now is a bit of a conceptual 'exploration', not as polished as our framework APIs.
The code is mostly well-written and tested, but is admittedly hard to understand. I will provide a course grained overview of the classes involved in the process here.
You have started your path an a relatively good place by looking at
ReferenceUtils
. That class will findapplied types
anddiscovered types
(using the Decompiler). The code for finding the discovered types is this: