Skip to content
New issue

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

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

Already on GitHub? # to your account

Make Invoke edges bi-directional #2011

Closed
KuechA opened this issue Jan 30, 2025 · 3 comments · Fixed by #2012
Closed

Make Invoke edges bi-directional #2011

KuechA opened this issue Jan 30, 2025 · 3 comments · Fixed by #2012

Comments

@KuechA
Copy link
Contributor

KuechA commented Jan 30, 2025

Currently, we can use the Invoke edge to reach a FunctionDeclaration from a CallExpression. However, it is handy to have an opportunity to follow the edges in the opposite way too (e.g. invokedBy or callSite). We can probably implement this with the edges magic quite easily

@oxisto
Copy link
Member

oxisto commented Jan 30, 2025

Not possible, since the mirror collection only supports mirroring between same node types and we would need to mirror between a CallExpression and a FunctionDeclaration :(

@oxisto
Copy link
Member

oxisto commented Jan 30, 2025

Not possible, since the mirror collection only supports mirroring between same node types and we would need to mirror between a CallExpression and a FunctionDeclaration :(

Ok It is possible, but the unwrapping is not really possible.

@oxisto oxisto linked a pull request Jan 30, 2025 that will close this issue
@oxisto
Copy link
Member

oxisto commented Jan 30, 2025

Not possible, since the mirror collection only supports mirroring between same node types and we would need to mirror between a CallExpression and a FunctionDeclaration :(

Ok It is possible, but the unwrapping is not really possible.

Ok unwrapping is also possible with some (tolerable) pain

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants