-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add Callgraph #185
Add Callgraph #185
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think, that's a good start. Please add an entry to CHANGELOG, and merge the master branch to your PR in order to simplify the test suite.
…n be access it later: cu.callgraph
…pdate constructor and make astStore public - Refactored `getFunctionName` to use a switch statement for better type safety. - Introduced `forEachExpression` helper function to handle expression processing recursively and improve code maintainability. - Updated constructor to remove `astStore` and pass it via the `build()` method, while making `astStore` a public property. - Updated Ir constructor add CallGraph - Remove from git .dot output file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is much better now. We need to:
- update the changelog
- introduce some tests in
test/tactIR.spec.ts
- write a separate tool to dump the callgraph in the supported formats
Add tests. create Dump callgraph ( in detectors can add this line ( DumpCallGraph.run(cu); )
Remake DumpCallgraph similar other dumps tool.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good. Let's fix minor issues before merging it.
We also need an entry in |
Co-authored-by: Georgiy Komarov <[email protected]>
Co-authored-by: Georgiy Komarov <[email protected]>
Co-authored-by: Georgiy Komarov <[email protected]>
Co-authored-by: Georgiy Komarov <[email protected]>
Co-authored-by: Georgiy Komarov <[email protected]>
Co-authored-by: Georgiy Komarov <[email protected]>
Co-authored-by: Georgiy Komarov <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Closes #91
CHANGELOG.md
yarn test-all