Hello, I've been trying to contribute to RA recently and the problem that I have right now is that it's hard for me to match ast::* elements to what they are parsed from. For example I look at ast::IdentPat and I'm not sure what it represents.
Is there some sort of mapping for this and the text?
hmm, we used to have this as part of the docs
I don't need nice docs... just any hacky way to quickly figure it out ;)
There's a "show syntax tree" command in Code
Ok, I tried it and it's very helpful. Thank you!
Looking at https://github.com/rust-analyzer/ungrammar/blob/master/rust.ungram also helps in understanding the AST-structure as thats what RA's ast is based on
Attr* 'ref'? 'mut'? Name ('@' Pat)?
Nice! Between viewing the syntax treen in vscode and this grammar I can figure out all the terms. Thank you!