Skip to content
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

feat(css/ast): Make AST intuitive #6606

Merged
merged 39 commits into from
Dec 9, 2022
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 9 additions & 7 deletions crates/swc_css_ast/src/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,15 @@ pub enum ComponentValue {
#[tag("SimpleBlock")]
SimpleBlock(Box<SimpleBlock>),

// Block Contents grammar
#[tag("DeclarationOrAtRule")]
DeclarationOrAtRule(Box<DeclarationOrAtRule>),
#[tag("Rule")]
Rule(Box<Rule>),
#[tag("StyleBlock")]
StyleBlock(Box<StyleBlock>),
#[tag("AtRule")]
AtRule(Box<AtRule>),

#[tag("QualifiedRule")]
QualifiedRule(Box<QualifiedRule>),

#[tag("ListOfComponentValues")]
ListOfComponentValues(Box<ListOfComponentValues>),

#[tag("KeyframeBlock")]
KeyframeBlock(Box<KeyframeBlock>),

Expand Down