Closed ulysses4ever closed 3 years ago
The problem stems from a difference I hadn't realized that the module where a method is defined (the info I get from the MethodInstance
interface) is not the same as the module where the function was introduced. It is relatively easy to get the latter, as shown in ea8c6bfcf8. Although some constructors (a special case of a function call) is still problematic. We decided to discard constructor calls in 7e36018f55.
Example: when analyzing
JSON
, we fail when trying to resolvelower
.At this point we bail out the same way as with #2: simply counting such cases.