When checking if a function is exported for reference finding, the
is_function_exported() method now accepts an optional class_name
parameter. For class methods, it checks whether the containing class
is exported (either as a named export or default export).
This fixes the issue where class methods like `BloomFilter.getHashValues`
would incorrectly show "Function getHashValues is not exported from..."
warnings when the BloomFilter class was actually exported.
Changes:
- treesitter_utils.py: Extended is_function_exported() to check class
exports when class_name parameter is provided
- find_references.py: Added class_name parameter throughout the call
chain to pass class context
- support.py: Pass function.class_name when calling find_references
- Added tests for class method export detection scenarios
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>