Expand description
Various structs/enums that represent generic AST nodes.
Structs§
- AtRule
- This struct provides the generic
<at-rule>
grammar. It will consume an at-rule. This is defined as: - BadDeclaration
- Bang
Important - Represents a two tokens, the first being Kind::Delim where the char is
!
, and the second being anIdent
with the valueimportant
. [CSS defines this as]: - Block
- This trait provides an implementation for “consuming a blocks contents”.
- Comma
Separated - This is a generic type that can be used for AST nodes representing multiple multiple items separated with commas.
- Component
Values - Declaration
- This is a generic type that can be used for AST nodes representing a Declaration, aka “property”. This is defined as:
- Declaration
List - A generic struct that can be used for AST nodes representing a rule’s block, that is only capable of having child declarations.
- Declaration
Rule List - A generic struct for AST nodes representing a rule’s block that is only capable of having child declarations or at-rules. Qualified Rules are not allowed. This is defined as:
- Function
- This struct provides the generic
function()
grammar that parses a function block where the interior function parameters are<T>
and the function name is<FT>
. The grammar is: - Function
Block - NoBlock
Allowed - A struct to provide to AtRule to disallow blocks.
- NoPrelude
Allowed - A struct to provide to AtRule to disallow preludes.
- Qualified
Rule - Rule
List - A struct representing an AST node block that only accepts child “Rules”. This is defined as:
- Simple
Block