Expose AST ranges of definition body bounds in save-analysis data #61596
Labels
A-save-analysis
Area: saving results of analyses such as inference and borrowck results to a file.
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-dev-tools
Relevant to the dev-tools subteam, which will review and decide on the PR/issue.
We've recently updated the Firefox searchfox code indexer to do a "position:sticky" trick so that namespaces/class definitions/method definitions provide context for the source code you're looking at. Our Clang indexer has easy access to the C++ AST to expose this information, but our rust indexer depends on the save-analysis data which only has access to the locations of the token/symbol being defined, not the range of the body of the thing being defined.
It would be invaluable to expose these AST ranges, or have some easy way to reconstruct the AST data given the save-analysis data.
https://bugzilla.mozilla.org/show_bug.cgi?id=1557442 tracks the searchfox enhancement bug that would like this data. For this issue, I think labels A-save-analysis T-dev-tools may be appropriate.
The text was updated successfully, but these errors were encountered: