Add a comment.

Something that was non-obvious to me.
This commit is contained in:
Nicholas Nethercote 2024-06-18 21:32:50 +10:00
parent 55cac26a9e
commit 219389360c
1 changed files with 3 additions and 1 deletions

View File

@ -972,7 +972,9 @@ impl UnOp {
}
}
/// A statement
/// A statement. No `attrs` or `tokens` fields because each `StmtKind` variant
/// contains an AST node with those fields. (Except for `StmtKind::Empty`,
/// which never has attrs or tokens)
#[derive(Clone, Encodable, Decodable, Debug)]
pub struct Stmt {
pub id: NodeId,