Skip to content

Expose AST ranges of definition body bounds in save-analysis data #61596

Closed as not planned
@asutherland

Description

@asutherland

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-save-analysisArea: saving results of analyses such as inference and borrowck results to a file.C-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions