Commit graph

5 commits

Author SHA1 Message Date
Kevin Turcios
eceac13fc3 Merge remote-tracking branch 'origin/main' into omni-java
# Conflicts:
#	.claude/rules/architecture.md
#	.claude/rules/code-style.md
#	.github/workflows/claude.yml
#	.github/workflows/duplicate-code-detector.yml
#	codeflash/api/aiservice.py
#	codeflash/cli_cmds/console.py
#	codeflash/cli_cmds/logging_config.py
#	codeflash/code_utils/deduplicate_code.py
#	codeflash/discovery/discover_unit_tests.py
#	codeflash/languages/base.py
#	codeflash/languages/code_replacer.py
#	codeflash/languages/javascript/mocha_runner.py
#	codeflash/languages/javascript/support.py
#	codeflash/languages/python/support.py
#	codeflash/optimization/function_optimizer.py
#	codeflash/verification/parse_test_output.py
#	codeflash/verification/verification_utils.py
#	codeflash/verification/verifier.py
#	packages/codeflash/package-lock.json
#	packages/codeflash/package.json
#	tests/languages/javascript/test_support_dispatch.py
#	tests/test_codeflash_capture.py
#	tests/test_languages/test_javascript_test_runner.py
#	tests/test_multi_file_code_replacement.py
2026-03-04 01:52:32 -05:00
Sarthak Agarwal
fa56eb7abe refactor 2026-02-11 02:05:54 +05:30
Saurabh Misra
e392e6bbf3 Fix class method export detection for JavaScript/TypeScript
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>
2026-02-01 23:45:19 +00:00
misrasaurabh1
198487bf81 format and lint all 2026-01-29 01:39:48 -08:00
ali
8a869bd31f
multi-file context support for js/ts 2026-01-20 19:33:20 +02:00