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

View File

@ -972,7 +972,9 @@ pub fn is_by_value(self) -> bool {
}
}
/// 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,