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

Statix Stratego API root scope retrieval #84

Open
jessetilro opened this issue Nov 19, 2021 · 0 comments
Open

Statix Stratego API root scope retrieval #84

jessetilro opened this issue Nov 19, 2021 · 0 comments

Comments

@jessetilro
Copy link

Short description
I would like an additional strategy in the Statix Stratego API that retrieves the root scope from the scope graph of a given analysis result.

Problem description.
Current analysis related strategies in the Stratego API operate on a given Scope term, but there is no simple way yet to retrieve the root scope of an analysis to bootstrap the utilization of these strategies.

Describe the solution you'd like
A stx-get-root-scope strategy that maps a given analysis result to the root Scope term would solve this problem.

Describe alternatives you've considered
Retrieving the root Scope term as a property of an AST node is already possible, but this seems more of a workaround as I believe it should still be possible to query the scope graph while disregarding the AST.

Additional context
N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants