rust-lang / rust-analyzer

A Rust compiler front-end for IDEs
https://rust-analyzer.github.io/
Apache License 2.0
14.07k stars 1.57k forks source link

Make ra_ap_mbe API public #12026

Open lukaslueg opened 2 years ago

lukaslueg commented 2 years ago

The pub API of ra_ap_mbe 0.0.104 stops short with DeclarativeMacro, which we can parse into using the public API, but can't use because the parser module is private, and all the goodies like MetaTemplate and Op can't be used.

Can we make this part of ra_ap_mbe public? Maybe I don't get the API I'm supposed to use, but I'm not familiar with the design and documentation is hard to come by :-)

bjorn3 commented 2 years ago

For reference I presume you want to use it in https://github.com/lukaslueg/macro_railroad?

lukaslueg commented 2 years ago

👍