Closed domenicquirl closed 3 years ago
@lqd I've made some changes addressing your comments.
During the sprint, I was very much focused on getting this off the ground and compile times as far down as possible, largely flying by the existing tests. Now with more time I've done some minor refactorings to clean up the implementation, add documentation to a lot of places and give the polonius_parser
crate its own README. The latter contains some general description and instructions, plus the example you asked about.
I would have liked to put some doc tests on the actual parsing methods as well, but doc testing with internal items doesn't really work out that well.
Let me know in case you have further questions on this.
Thanks a ton!
This is part of https://rust-lang.zulipchat.com/#narrow/stream/186049-t-compiler.2Fwg-polonius/topic/Polonius.20Hackathon.202021-07-30.
Preliminary results: