On 20/10/2012 10:48 AM, Peter Hull wrote:

> Graydon, is all the required information already provided by libsyntax
> or will Daniel indeed have to wait for a librustdoc before he can stop
> scraping the HTML?

Rustdoc should become a library in the near-ish future; but its source
is in-tree and available to extend, and as I suggested, this strikes me
as a reasonable "search mode" for rustdoc itself, not necessarily a
separate tool.

In any case you can get the _signatures_ of functions, and their
per-item doc attributes by parsing (via libsyntax). Rustdoc is more
concerned with cleaning up, sorting, organizing, paginating and
constructing a particular formatted organization of the doc-fragments
pulled from those attributes.

> All in all, I like the idea a lot; I've never seen an api search work
> like this before, and it will be useful given that (as I understand
> it) recent discussion has suggested that Java/C++ -style
> 'intellisense' won't work as well with Rust.

I'm not sure where this comes from; I have no reason to think Rust would
resist intellisense-like tooling. It might require running portions of
the resolver or typechecker, but so does any such thing in Java or C++.

-Graydon

_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to