css_ast/types/auto.rs
1use super::prelude::*;
2
3/// The CSS `auto` keyword as a standalone parseable type.
4///
5/// Referenced by the proc macro codegen when `auto?` appears as an optional
6/// keyword prefix in a sequence grammar, e.g. `auto? [ none | <length> ]`.
7#[derive(Parse, Peek, ToCursors, ToSpan, SemanticEq, Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
8#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
9#[cfg_attr(feature = "visitable", derive(csskit_derives::Visitable), visit(skip))]
10#[derive(csskit_derives::NodeWithMetadata)]
11pub struct Auto(#[atom(CssAtomSet::Auto)] pub T![Ident]);