Improvements to searchfox's processing of rust-analyzer's SCIP output
have landed on searchfox trunk and are now available at
https://searchfox.org/ for mozilla-central and will be coming to beta,
release, and ESR115 imminently.
In the same way that scientists combined chocolate and peanut butter to
make a better candy, scientists combined SCIP index data and the
tree-sitter parser to make a better searchfox output. And that way is
that scientists were not involved at all.
The net result is:
- When viewing rust source listings, the cool position:sticky bars that
contextualize the code you're looking at will now work for rust! (Also,
we could potentially use this same mechanism to make this work on
historical revisions as well, and not just the trunk.)
- Search results for rust code will now provide the context of their
containing method/impl/type like we do for C++ and JS.
- The pre-alpha diagram functionality now works for rust. For example:
https://searchfox.org/mozilla-central/query/default?q=calls-to%3A%27webrender_api%3A%3Aunits%3A%3ASize2D%3A%3Ato_au%27+depth%3A10
is a `calls-to` diagram. Also, `calls-between:IMPL_NAME` can work too,
like
https://searchfox.org/mozilla-central/query/default?q=calls-between%3ASceneBuilderThread
shows the internal control-flow between the impl methods of
`SceneBuilderThread`, whatever that is.
Andrew
--
You received this message because you are subscribed to the Google Groups
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/a7a41b80-56c3-4c43-8233-48ccefe91ec4%40asutherland.org.