Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursive source code inspection #4

Open
wajda opened this issue Jul 4, 2023 · 0 comments
Open

Recursive source code inspection #4

wajda opened this issue Jul 4, 2023 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@wajda
Copy link
Contributor

wajda commented Jul 4, 2023

The source code inspector should run recursively and inspect all called functions, including ones from other modules.
The result of the inspection should be a DAG where node represent functions (with their source code) and edges represent invocations.
The resulted DAG should be serialised as a plain pseudo python file in the format, and included into the source_code property of the python_function operation:

$The_source_code_of_the_root_function_fn_here

### ==============================================
### module: AAA
### ==============================================

from BBB import xxx


### func: f1
def f1():
    ...
    f2()
    ...


### func: f2 
def f2():
    ...
    xxx()
    ...


### ==============================================
### module: BBB
### ==============================================

### func: xxx
def xxx():
    ...
@wajda wajda added the enhancement New feature or request label Jul 4, 2023
@wajda wajda added this to Spline Jul 4, 2023
@github-project-automation github-project-automation bot moved this to New in Spline Jul 4, 2023
@wajda wajda added this to the 0.2.0 milestone Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: New
Development

No branches or pull requests

1 participant