-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
syntax: Document the AST #23428
syntax: Document the AST #23428
Conversation
👍 |
169034f
to
9d2ffab
Compare
pub expr: Option<P<Expr>>, | ||
pub id: NodeId, | ||
/// Unsafety of the block |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe "distinguishes between unsafe { ... }
and { ... }
.
Looks great; just a few little nits. (r=me once fixed) |
In the future it may be worth considering converting some of the variants into struct variants so that the types are more self-documenting. |
@bors: r=huon |
📌 Commit a5828ff has been approved by |
I often have to run `ast-json` or look into the pretty-printer source to figure out what the fields of an AST enum mean. I've tried to document most of what I know (and some semi-obvious stuff). r? @steveklabnik f? @eddyb
ExprVec(Vec<P<Expr>>), | ||
/// A function call | ||
/// The first field resolves to the function itself, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you need a line break between these two unless you want them to get rendered all together
This is missing a ton of periods at the end of buches of summaries. other than that and the few other things I mentioned, looks pretty good. |
☔ The latest upstream changes (presumably #23473) made this pull request unmergeable. Please resolve the merge conflicts. |
@bors: r=steveklabnik rollup (Sadly, only part of this could merge in the rollup) |
📌 Commit 6de89f5 has been approved by |
I often have to run `ast-json` or look into the pretty-printer source to figure out what the fields of an AST enum mean. I've tried to document most of what I know (and some semi-obvious stuff). r? @steveklabnik f? @eddyb
I often have to run
ast-json
or look into the pretty-printer source to figure out what the fields of an AST enum mean. I've tried to document most of what I know (and some semi-obvious stuff).r? @steveklabnik
f? @eddyb