how to understand from where a function call is made? #2520
Unanswered
code2graph
asked this question in
Q&A
Replies: 1 comment
-
You need to recursively parse all files that represent imports to find out where the function was defined. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using TreeSitter to parse python codes. I need to determine from which file a function is called.
For example, I need to understand
check_files_in_directory
is invoked fromGPT4Readability.utils
. I already captured all the function calls.But now I have to find out from which file
check_files_in_directory
is called. I am struggling to understand what would the logic to do it. Can anyone please suggest?Beta Was this translation helpful? Give feedback.
All reactions