Skip to content

fix: Use function_name instead of name in Python find_references#1328

Merged
misrasaurabh1 merged 1 commit intomainfrom
FTO-fields
Feb 3, 2026
Merged

fix: Use function_name instead of name in Python find_references#1328
misrasaurabh1 merged 1 commit intomainfrom
FTO-fields

Conversation

@KRRT7
Copy link
Collaborator

@KRRT7 KRRT7 commented Feb 3, 2026

Summary

  • Fix missed attribute rename in find_references where function.name was used instead of function.function_name
  • Add tests for find_references covering simple functions, class methods, and edge cases

Test plan

  • pytest tests/test_languages/test_python_support.py -v passes

Fix missed attribute rename in find_references where function.name was
used instead of function.function_name, causing AttributeError when
finding references for Python functions.

Add tests for find_references covering simple functions, class methods,
no references, and nonexistent function edge cases.
Copy link
Contributor

@Saga4 Saga4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Earlier got a similar optimization in my local.

@misrasaurabh1 misrasaurabh1 merged commit 524163f into main Feb 3, 2026
28 of 29 checks passed
@misrasaurabh1 misrasaurabh1 deleted the FTO-fields branch February 3, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants