diff --git a/crates/swc_css_ast/src/lib.rs b/crates/swc_css_ast/src/lib.rs index 048ec4e13aa..c3c8157cddb 100644 --- a/crates/swc_css_ast/src/lib.rs +++ b/crates/swc_css_ast/src/lib.rs @@ -19,14 +19,14 @@ pub struct Stylesheet { #[ast_node] #[derive(Is)] pub enum Rule { - #[tag("StyleRule")] - Style(StyleRule), - - #[tag("Tokens")] - Invalid(Tokens), + #[tag("QualifiedRule")] + QualifiedRule(QualifiedRule), #[tag("*")] AtRule(AtRule), + + #[tag("Tokens")] + Invalid(Tokens), } #[ast_node] diff --git a/crates/swc_css_ast/src/style_rule.rs b/crates/swc_css_ast/src/style_rule.rs index 949d6831c93..816e8c5e991 100644 --- a/crates/swc_css_ast/src/style_rule.rs +++ b/crates/swc_css_ast/src/style_rule.rs @@ -1,10 +1,10 @@ use crate::{Ident, SelectorList, Tokens, Value}; use swc_common::{ast_node, Span}; -#[ast_node("StyleRule")] -pub struct StyleRule { +#[ast_node("QualifiedRule")] +pub struct QualifiedRule { pub span: Span, - pub selectors: SelectorList, + pub prelude: SelectorList, pub block: Block, } diff --git a/crates/swc_css_codegen/src/lib.rs b/crates/swc_css_codegen/src/lib.rs index 4506b10e003..743093a2fc6 100644 --- a/crates/swc_css_codegen/src/lib.rs +++ b/crates/swc_css_codegen/src/lib.rs @@ -47,15 +47,15 @@ where #[emitter] fn emit_rule(&mut self, n: &Rule) -> Result { match n { - Rule::Style(n) => emit!(self, n), + Rule::QualifiedRule(n) => emit!(self, n), Rule::AtRule(n) => emit!(self, n), Rule::Invalid(n) => emit!(self, n), } } #[emitter] - fn emit_style_rule(&mut self, n: &StyleRule) -> Result { - emit!(self, n.selectors); + fn emit_qualified_rule(&mut self, n: &QualifiedRule) -> Result { + emit!(self, n.prelude); space!(self); emit!(self, n.block); } diff --git a/crates/swc_css_parser/src/parser/style_rule.rs b/crates/swc_css_parser/src/parser/style_rule.rs index 52709e6c4de..2b3851a2a0a 100644 --- a/crates/swc_css_parser/src/parser/style_rule.rs +++ b/crates/swc_css_parser/src/parser/style_rule.rs @@ -47,8 +47,8 @@ where let start_pos = self.input.cur_span()?.lo; let start_state = self.input.state(); - let selectors = self.parse_selectors(); - let selectors = match selectors { + let prelude = self.parse_selectors(); + let prelude = match prelude { Ok(v) => v, Err(err) => { self.input.skip_ws()?; @@ -74,9 +74,9 @@ where let block = self.parse_simple_block()?; let span = span!(self, start_pos); - Ok(Rule::Style(StyleRule { + Ok(Rule::QualifiedRule(QualifiedRule { span, - selectors, + prelude, block, })) } diff --git a/crates/swc_css_parser/tests/fixture.rs b/crates/swc_css_parser/tests/fixture.rs index 70ac582d342..c0cd0ed9bfa 100644 --- a/crates/swc_css_parser/tests/fixture.rs +++ b/crates/swc_css_parser/tests/fixture.rs @@ -343,7 +343,7 @@ impl Visit for SpanVisualizer<'_> { mtd!(PseudoSelector, visit_pseudo_selector); mtd!(Rule, visit_rule); mtd!(Str, visit_str); - mtd!(StyleRule, visit_style_rule); + mtd!(QualifiedRule, visit_qualified_rule); mtd!(Stylesheet, visit_stylesheet); mtd!(SelectorList, visit_selector_list); mtd!(SubclassSelector, visit_subclass_selector); diff --git a/crates/swc_css_parser/tests/fixture/bom/output.json b/crates/swc_css_parser/tests/fixture/bom/output.json index dde254d7d56..b9ccbd359bc 100644 --- a/crates/swc_css_parser/tests/fixture/bom/output.json +++ b/crates/swc_css_parser/tests/fixture/bom/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 21, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/bom/span.rust-debug b/crates/swc_css_parser/tests/fixture/bom/span.rust-debug index cc802e57792..3317e863056 100644 --- a/crates/swc_css_parser/tests/fixture/bom/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/bom/span.rust-debug @@ -14,7 +14,7 @@ error: Rule 3 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/bom/input.css:1:1 | 1 | / a { diff --git a/crates/swc_css_parser/tests/fixture/comment/output.json b/crates/swc_css_parser/tests/fixture/comment/output.json index 010a6c7c5cd..b06979eb9b2 100644 --- a/crates/swc_css_parser/tests/fixture/comment/output.json +++ b/crates/swc_css_parser/tests/fixture/comment/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 13, "end": 94, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 13, @@ -105,13 +105,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 132, "end": 227, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 132, @@ -234,13 +234,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 237, "end": 272, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 237, diff --git a/crates/swc_css_parser/tests/fixture/comment/span.rust-debug b/crates/swc_css_parser/tests/fixture/comment/span.rust-debug index 8a9858af23d..635037d780e 100644 --- a/crates/swc_css_parser/tests/fixture/comment/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/comment/span.rust-debug @@ -21,7 +21,7 @@ error: Rule 4 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/comment/input.css:1:14 | 1 | /* comment */a/* comment */ @@ -105,7 +105,7 @@ error: Rule 15 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/comment/input.css:9:1 | 9 | / div { @@ -217,7 +217,7 @@ error: Rule 21 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/comment/input.css:18:1 | 18 | / a { diff --git a/crates/swc_css_parser/tests/fixture/declaration-list/output.json b/crates/swc_css_parser/tests/fixture/declaration-list/output.json index 359910a8d25..f6380adedac 100644 --- a/crates/swc_css_parser/tests/fixture/declaration-list/output.json +++ b/crates/swc_css_parser/tests/fixture/declaration-list/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 41, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/declaration-list/span.rust-debug b/crates/swc_css_parser/tests/fixture/declaration-list/span.rust-debug index 78f8360b037..e06bfa19f7b 100644 --- a/crates/swc_css_parser/tests/fixture/declaration-list/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/declaration-list/span.rust-debug @@ -16,7 +16,7 @@ error: Rule 4 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/declaration-list/input.css:1:1 | 1 | / a { diff --git a/crates/swc_css_parser/tests/fixture/delim/backslash/output.json b/crates/swc_css_parser/tests/fixture/delim/backslash/output.json index 53aa2589965..2d5127e2bc5 100644 --- a/crates/swc_css_parser/tests/fixture/delim/backslash/output.json +++ b/crates/swc_css_parser/tests/fixture/delim/backslash/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 32, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/delim/backslash/span.rust-debug b/crates/swc_css_parser/tests/fixture/delim/backslash/span.rust-debug index 36259152572..189fecb1341 100644 --- a/crates/swc_css_parser/tests/fixture/delim/backslash/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/delim/backslash/span.rust-debug @@ -14,7 +14,7 @@ error: Rule 3 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/delim/backslash/input.css:1:1 | 1 | / a { diff --git a/crates/swc_css_parser/tests/fixture/dimension/basic/output.json b/crates/swc_css_parser/tests/fixture/dimension/basic/output.json index 8a5fa5020f9..12403f5a3a4 100644 --- a/crates/swc_css_parser/tests/fixture/dimension/basic/output.json +++ b/crates/swc_css_parser/tests/fixture/dimension/basic/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 131, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/dimension/basic/span.rust-debug b/crates/swc_css_parser/tests/fixture/dimension/basic/span.rust-debug index 99cc878e619..be0414f14a3 100644 --- a/crates/swc_css_parser/tests/fixture/dimension/basic/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/dimension/basic/span.rust-debug @@ -22,7 +22,7 @@ error: Rule 9 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/dimension/basic/input.css:1:1 | 1 | / a { diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/-4j83DwgJa0nPQIjlb0RIA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/-4j83DwgJa0nPQIjlb0RIA/output.json index 00bacae64af..b686e35af5e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/-4j83DwgJa0nPQIjlb0RIA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/-4j83DwgJa0nPQIjlb0RIA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 20, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/-4j83DwgJa0nPQIjlb0RIA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/-4j83DwgJa0nPQIjlb0RIA/span.rust-debug index 3e65e70250e..799fdce784b 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/-4j83DwgJa0nPQIjlb0RIA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/-4j83DwgJa0nPQIjlb0RIA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #112333 } | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/-4j83DwgJa0nPQIjlb0RIA/input.css:1:1 | 1 | a { color: #112333 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/-8o_H6sq86TDAHqF7YO0hg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/-8o_H6sq86TDAHqF7YO0hg/output.json index 829305535f2..fb175ada53d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/-8o_H6sq86TDAHqF7YO0hg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/-8o_H6sq86TDAHqF7YO0hg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 6, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/-8o_H6sq86TDAHqF7YO0hg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/-8o_H6sq86TDAHqF7YO0hg/span.rust-debug index a4568cfc819..1f8ddeb50e1 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/-8o_H6sq86TDAHqF7YO0hg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/-8o_H6sq86TDAHqF7YO0hg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | \2d {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/-8o_H6sq86TDAHqF7YO0hg/input.css:1:1 | 1 | \2d {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/-GZJfOA9TK6La2KGGNgCkg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/-GZJfOA9TK6La2KGGNgCkg/output.json index cd86a91d865..d33119c5c2b 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/-GZJfOA9TK6La2KGGNgCkg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/-GZJfOA9TK6La2KGGNgCkg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 67, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/-GZJfOA9TK6La2KGGNgCkg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/-GZJfOA9TK6La2KGGNgCkg/span.rust-debug index b5a9e11abb6..74f2ff4d3ee 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/-GZJfOA9TK6La2KGGNgCkg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/-GZJfOA9TK6La2KGGNgCkg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | div::before::after::selection::first-line::first-letter {color:red} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/-GZJfOA9TK6La2KGGNgCkg/input.css:1:1 | 1 | div::before::after::selection::first-line::first-letter {color:red} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/-JoxoRcnA-zaaEC7RjXKvQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/-JoxoRcnA-zaaEC7RjXKvQ/output.json index 7a648a779ad..63b300ca7ca 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/-JoxoRcnA-zaaEC7RjXKvQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/-JoxoRcnA-zaaEC7RjXKvQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/-JoxoRcnA-zaaEC7RjXKvQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/-JoxoRcnA-zaaEC7RjXKvQ/span.rust-debug index 991eff02158..0de90fd2a67 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/-JoxoRcnA-zaaEC7RjXKvQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/-JoxoRcnA-zaaEC7RjXKvQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: +.10; } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/-JoxoRcnA-zaaEC7RjXKvQ/input.css:1:1 | 1 | a { width: +.10; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/-b4VODLSeaV93gwC2Ot2tw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/-b4VODLSeaV93gwC2Ot2tw/output.json index 8dd0f7ce02c..56c2065f750 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/-b4VODLSeaV93gwC2Ot2tw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/-b4VODLSeaV93gwC2Ot2tw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 10, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/-b4VODLSeaV93gwC2Ot2tw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/-b4VODLSeaV93gwC2Ot2tw/span.rust-debug index 058346c2934..b10d1c16bb7 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/-b4VODLSeaV93gwC2Ot2tw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/-b4VODLSeaV93gwC2Ot2tw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | #h\61sh {} | ^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/-b4VODLSeaV93gwC2Ot2tw/input.css:1:1 | 1 | #h\61sh {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/-edvtxlXMemv5jnGeyueBA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/-edvtxlXMemv5jnGeyueBA/output.json index 264d811aef9..1f75b6e86d8 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/-edvtxlXMemv5jnGeyueBA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/-edvtxlXMemv5jnGeyueBA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 19, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/-edvtxlXMemv5jnGeyueBA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/-edvtxlXMemv5jnGeyueBA/span.rust-debug index 2d517b7f1ab..5edee2a63c2 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/-edvtxlXMemv5jnGeyueBA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/-edvtxlXMemv5jnGeyueBA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: -.10%; } | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/-edvtxlXMemv5jnGeyueBA/input.css:1:1 | 1 | a { width: -.10%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/output.json index d3c51467f4b..f4c8ea36589 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 45, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/span.rust-debug index e385755013e..f93be1673c1 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css:1:1 | 1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/-shTP60AAG6a4mCJUpV1cQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/-shTP60AAG6a4mCJUpV1cQ/output.json index e250d0586b1..6850c9c2a66 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/-shTP60AAG6a4mCJUpV1cQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/-shTP60AAG6a4mCJUpV1cQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 7, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/-shTP60AAG6a4mCJUpV1cQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/-shTP60AAG6a4mCJUpV1cQ/span.rust-debug index 13a32a0d908..2cbf09cab87 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/-shTP60AAG6a4mCJUpV1cQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/-shTP60AAG6a4mCJUpV1cQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [*|b]{} | ^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/-shTP60AAG6a4mCJUpV1cQ/input.css:1:1 | 1 | [*|b]{} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/07tvJxvZrgDeTmptOclErA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/07tvJxvZrgDeTmptOclErA/output.json index 3960be7c10b..d4fcbd194ac 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/07tvJxvZrgDeTmptOclErA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/07tvJxvZrgDeTmptOclErA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 21, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/07tvJxvZrgDeTmptOclErA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/07tvJxvZrgDeTmptOclErA/span.rust-debug index d1a5f40f806..2bd54195316 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/07tvJxvZrgDeTmptOclErA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/07tvJxvZrgDeTmptOclErA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { margin: 0 1 0 1 } | ^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/07tvJxvZrgDeTmptOclErA/input.css:1:1 | 1 | a { margin: 0 1 0 1 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/0LKvnY2GhG7ss8EXa0t6tQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/0LKvnY2GhG7ss8EXa0t6tQ/output.json index ab228437408..e7d77d026e2 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/0LKvnY2GhG7ss8EXa0t6tQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/0LKvnY2GhG7ss8EXa0t6tQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 20, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/0LKvnY2GhG7ss8EXa0t6tQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/0LKvnY2GhG7ss8EXa0t6tQ/span.rust-debug index 941a010ee3d..a47978383af 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/0LKvnY2GhG7ss8EXa0t6tQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/0LKvnY2GhG7ss8EXa0t6tQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: 10p\32x } | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/0LKvnY2GhG7ss8EXa0t6tQ/input.css:1:1 | 1 | a { value: 10p\32x } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/0Zlgi2sdsFfTrdnWOHUqeg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/0Zlgi2sdsFfTrdnWOHUqeg/output.json index 7df3c28dae3..5dc1d39ea10 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/0Zlgi2sdsFfTrdnWOHUqeg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/0Zlgi2sdsFfTrdnWOHUqeg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 11, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/0Zlgi2sdsFfTrdnWOHUqeg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/0Zlgi2sdsFfTrdnWOHUqeg/span.rust-debug index 1e60c7c872c..d36e13f79b0 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/0Zlgi2sdsFfTrdnWOHUqeg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/0Zlgi2sdsFfTrdnWOHUqeg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [b="0c"] {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/0Zlgi2sdsFfTrdnWOHUqeg/input.css:1:1 | 1 | [b="0c"] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/0qqdP6EmNqzSa3h8c8lYUQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/0qqdP6EmNqzSa3h8c8lYUQ/output.json index 831789861f0..263fb304c40 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/0qqdP6EmNqzSa3h8c8lYUQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/0qqdP6EmNqzSa3h8c8lYUQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 6, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/0qqdP6EmNqzSa3h8c8lYUQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/0qqdP6EmNqzSa3h8c8lYUQ/span.rust-debug index a64fabeb928..d17428ef970 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/0qqdP6EmNqzSa3h8c8lYUQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/0qqdP6EmNqzSa3h8c8lYUQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | #id {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/0qqdP6EmNqzSa3h8c8lYUQ/input.css:1:1 | 1 | #id {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/0yo6flt6jo-UA8rUEFjrWA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/0yo6flt6jo-UA8rUEFjrWA/output.json index dee3b0f4833..cbeda9bf017 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/0yo6flt6jo-UA8rUEFjrWA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/0yo6flt6jo-UA8rUEFjrWA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 7, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/0yo6flt6jo-UA8rUEFjrWA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/0yo6flt6jo-UA8rUEFjrWA/span.rust-debug index 0075a8e1bea..595276b559c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/0yo6flt6jo-UA8rUEFjrWA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/0yo6flt6jo-UA8rUEFjrWA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | -\2d {} | ^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/0yo6flt6jo-UA8rUEFjrWA/input.css:1:1 | 1 | -\2d {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/10VLLYwNo7xaTisP9r9Kfg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/10VLLYwNo7xaTisP9r9Kfg/output.json index 9f5d1f97a59..c40f99d333e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/10VLLYwNo7xaTisP9r9Kfg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/10VLLYwNo7xaTisP9r9Kfg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 9, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/10VLLYwNo7xaTisP9r9Kfg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/10VLLYwNo7xaTisP9r9Kfg/span.rust-debug index 55fb8e44438..1f8be19f23a 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/10VLLYwNo7xaTisP9r9Kfg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/10VLLYwNo7xaTisP9r9Kfg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | div#id {} | ^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/10VLLYwNo7xaTisP9r9Kfg/input.css:1:1 | 1 | div#id {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/output.json index 14d07df8b50..465442513fb 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 59, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/span.rust-debug index 9a65acd5440..1e7d245efce 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/input.css:1:1 | 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/1JQzQJ1QtQJ1onUzZx7BVg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/1JQzQJ1QtQJ1onUzZx7BVg/output.json index 6b869fa9075..2ad6eedef0c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/1JQzQJ1QtQJ1onUzZx7BVg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/1JQzQJ1QtQJ1onUzZx7BVg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 8, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/1JQzQJ1QtQJ1onUzZx7BVg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/1JQzQJ1QtQJ1onUzZx7BVg/span.rust-debug index c0188d7ce82..448ac948581 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/1JQzQJ1QtQJ1onUzZx7BVg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/1JQzQJ1QtQJ1onUzZx7BVg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | #-\2d {} | ^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/1JQzQJ1QtQJ1onUzZx7BVg/input.css:1:1 | 1 | #-\2d {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/1naykwaIKZc6zuHRNIccLQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/1naykwaIKZc6zuHRNIccLQ/output.json index 512512bddff..ce0539885b1 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/1naykwaIKZc6zuHRNIccLQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/1naykwaIKZc6zuHRNIccLQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 20, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/1naykwaIKZc6zuHRNIccLQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/1naykwaIKZc6zuHRNIccLQ/span.rust-debug index 279dd63ae8f..093832044c1 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/1naykwaIKZc6zuHRNIccLQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/1naykwaIKZc6zuHRNIccLQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: id\65nt } | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/1naykwaIKZc6zuHRNIccLQ/input.css:1:1 | 1 | a { value: id\65nt } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/2nNBhRWO2cNcBJf09zDxjw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/2nNBhRWO2cNcBJf09zDxjw/output.json index e763bfbd7e1..ee084f7b853 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/2nNBhRWO2cNcBJf09zDxjw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/2nNBhRWO2cNcBJf09zDxjw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 27, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/2nNBhRWO2cNcBJf09zDxjw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/2nNBhRWO2cNcBJf09zDxjw/span.rust-debug index 5532ebe54f4..6cfb0a53d4b 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/2nNBhRWO2cNcBJf09zDxjw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/2nNBhRWO2cNcBJf09zDxjw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a:after { content: 'a\b' } | ^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/2nNBhRWO2cNcBJf09zDxjw/input.css:1:1 | 1 | a:after { content: 'a\b' } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/36qnNuIUvbIrMnJKDxwE5A/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/36qnNuIUvbIrMnJKDxwE5A/output.json index 9810efd035e..5d18532213d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/36qnNuIUvbIrMnJKDxwE5A/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/36qnNuIUvbIrMnJKDxwE5A/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 19, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/36qnNuIUvbIrMnJKDxwE5A/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/36qnNuIUvbIrMnJKDxwE5A/span.rust-debug index 20c13bea0a1..e9e44c8574f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/36qnNuIUvbIrMnJKDxwE5A/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/36qnNuIUvbIrMnJKDxwE5A/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: \66n() } | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/36qnNuIUvbIrMnJKDxwE5A/input.css:1:1 | 1 | a { value: \66n() } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/39pbt1sIeFh8WWhCalZS4g/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/39pbt1sIeFh8WWhCalZS4g/output.json index 1df26950d4f..da4f0d4b536 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/39pbt1sIeFh8WWhCalZS4g/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/39pbt1sIeFh8WWhCalZS4g/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/39pbt1sIeFh8WWhCalZS4g/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/39pbt1sIeFh8WWhCalZS4g/span.rust-debug index 1eea47def6c..6da64053a55 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/39pbt1sIeFh8WWhCalZS4g/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/39pbt1sIeFh8WWhCalZS4g/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #ABCD } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/39pbt1sIeFh8WWhCalZS4g/input.css:1:1 | 1 | a { color: #ABCD } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/3EgMpLwjJNG0ht4U_r6cnw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/3EgMpLwjJNG0ht4U_r6cnw/output.json index db0bb55fab5..f089694fc4d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/3EgMpLwjJNG0ht4U_r6cnw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/3EgMpLwjJNG0ht4U_r6cnw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/3EgMpLwjJNG0ht4U_r6cnw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/3EgMpLwjJNG0ht4U_r6cnw/span.rust-debug index b898dcd9497..72777f5f1df 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/3EgMpLwjJNG0ht4U_r6cnw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/3EgMpLwjJNG0ht4U_r6cnw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #ABBBCCDD } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/3EgMpLwjJNG0ht4U_r6cnw/input.css:1:1 | 1 | a { color: #ABBBCCDD } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/3JGye8AhworwNFoUL1gKbg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/3JGye8AhworwNFoUL1gKbg/output.json index 5dd205b4a3a..e370e9570b1 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/3JGye8AhworwNFoUL1gKbg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/3JGye8AhworwNFoUL1gKbg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/3JGye8AhworwNFoUL1gKbg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/3JGye8AhworwNFoUL1gKbg/span.rust-debug index 5cb897259bc..9e21d647c32 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/3JGye8AhworwNFoUL1gKbg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/3JGye8AhworwNFoUL1gKbg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #abcf } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/3JGye8AhworwNFoUL1gKbg/input.css:1:1 | 1 | a { color: #abcf } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/3OV2jH0hrt2_2jOv6t4wvA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/3OV2jH0hrt2_2jOv6t4wvA/output.json index 09f0b188034..d711fbfbe43 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/3OV2jH0hrt2_2jOv6t4wvA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/3OV2jH0hrt2_2jOv6t4wvA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/3OV2jH0hrt2_2jOv6t4wvA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/3OV2jH0hrt2_2jOv6t4wvA/span.rust-debug index 5a3c00a9266..0ac8aea2131 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/3OV2jH0hrt2_2jOv6t4wvA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/3OV2jH0hrt2_2jOv6t4wvA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: 0.1%; } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/3OV2jH0hrt2_2jOv6t4wvA/input.css:1:1 | 1 | a { width: 0.1%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/4-S1C8qZOZ6Mm7WdRUH72Q/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/4-S1C8qZOZ6Mm7WdRUH72Q/output.json index b72e8342509..4f52db29f20 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/4-S1C8qZOZ6Mm7WdRUH72Q/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/4-S1C8qZOZ6Mm7WdRUH72Q/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 24, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/4-S1C8qZOZ6Mm7WdRUH72Q/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/4-S1C8qZOZ6Mm7WdRUH72Q/span.rust-debug index 0fec6c1da1d..1c265eb15a1 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/4-S1C8qZOZ6Mm7WdRUH72Q/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/4-S1C8qZOZ6Mm7WdRUH72Q/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: @\6b eyword } | ^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/4-S1C8qZOZ6Mm7WdRUH72Q/input.css:1:1 | 1 | a { value: @\6b eyword } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/485Ns9qQHa89OJU5Lhjx-Q/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/485Ns9qQHa89OJU5Lhjx-Q/output.json index 483ce9ab658..21d4c480078 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/485Ns9qQHa89OJU5Lhjx-Q/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/485Ns9qQHa89OJU5Lhjx-Q/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 21, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/485Ns9qQHa89OJU5Lhjx-Q/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/485Ns9qQHa89OJU5Lhjx-Q/span.rust-debug index 79a9ca3bc36..11b572434fd 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/485Ns9qQHa89OJU5Lhjx-Q/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/485Ns9qQHa89OJU5Lhjx-Q/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: \69 dent } | ^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/485Ns9qQHa89OJU5Lhjx-Q/input.css:1:1 | 1 | a { value: \69 dent } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/486QvEO8dmLFsXYp6xgKVw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/486QvEO8dmLFsXYp6xgKVw/output.json index 1511862fafb..14b8f4ece5a 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/486QvEO8dmLFsXYp6xgKVw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/486QvEO8dmLFsXYp6xgKVw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 21, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/486QvEO8dmLFsXYp6xgKVw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/486QvEO8dmLFsXYp6xgKVw/span.rust-debug index b6310261a57..7f5b0a52007 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/486QvEO8dmLFsXYp6xgKVw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/486QvEO8dmLFsXYp6xgKVw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: #\30hash } | ^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/486QvEO8dmLFsXYp6xgKVw/input.css:1:1 | 1 | a { value: #\30hash } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/4Tjjgepnha63E4UiXXDNEA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/4Tjjgepnha63E4UiXXDNEA/output.json index b383b2ae569..8addb8b3218 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/4Tjjgepnha63E4UiXXDNEA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/4Tjjgepnha63E4UiXXDNEA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 17, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/4Tjjgepnha63E4UiXXDNEA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/4Tjjgepnha63E4UiXXDNEA/span.rust-debug index d648d11600d..ac8f549fe9f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/4Tjjgepnha63E4UiXXDNEA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/4Tjjgepnha63E4UiXXDNEA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: 0.0; } | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/4Tjjgepnha63E4UiXXDNEA/input.css:1:1 | 1 | a { width: 0.0; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/4UaOTazLwrr9gd5xkBBlnw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/4UaOTazLwrr9gd5xkBBlnw/output.json index e4ab5ff085a..df8e926ba08 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/4UaOTazLwrr9gd5xkBBlnw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/4UaOTazLwrr9gd5xkBBlnw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 10, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/4UaOTazLwrr9gd5xkBBlnw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/4UaOTazLwrr9gd5xkBBlnw/span.rust-debug index e12cab49357..40cd6987be3 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/4UaOTazLwrr9gd5xkBBlnw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/4UaOTazLwrr9gd5xkBBlnw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a/**/.b {} | ^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/4UaOTazLwrr9gd5xkBBlnw/input.css:1:1 | 1 | a/**/.b {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/4WSp4-HbKB-f1GLF00sf6A/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/4WSp4-HbKB-f1GLF00sf6A/output.json index 2f150ac7c63..2cee43ed501 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/4WSp4-HbKB-f1GLF00sf6A/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/4WSp4-HbKB-f1GLF00sf6A/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 26, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/4WSp4-HbKB-f1GLF00sf6A/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/4WSp4-HbKB-f1GLF00sf6A/span.rust-debug index 235aac33c35..73c7082962a 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/4WSp4-HbKB-f1GLF00sf6A/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/4WSp4-HbKB-f1GLF00sf6A/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { padding: 0 1 0px 1px } | ^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/4WSp4-HbKB-f1GLF00sf6A/input.css:1:1 | 1 | a { padding: 0 1 0px 1px } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/52obp49U0CyYOskQAEoIJw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/52obp49U0CyYOskQAEoIJw/output.json index 20f85c067be..bd806951120 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/52obp49U0CyYOskQAEoIJw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/52obp49U0CyYOskQAEoIJw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 10, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/52obp49U0CyYOskQAEoIJw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/52obp49U0CyYOskQAEoIJw/span.rust-debug index 59d516eeb2b..a026a99e378 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/52obp49U0CyYOskQAEoIJw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/52obp49U0CyYOskQAEoIJw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | div#--0 {} | ^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/52obp49U0CyYOskQAEoIJw/input.css:1:1 | 1 | div#--0 {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/53OltIbJ-YBXtSKedVvYwA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/53OltIbJ-YBXtSKedVvYwA/output.json index 92f36f2d812..fde26aa7eaf 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/53OltIbJ-YBXtSKedVvYwA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/53OltIbJ-YBXtSKedVvYwA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 19, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/53OltIbJ-YBXtSKedVvYwA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/53OltIbJ-YBXtSKedVvYwA/span.rust-debug index b7fdadeaf8f..569cc1c372e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/53OltIbJ-YBXtSKedVvYwA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/53OltIbJ-YBXtSKedVvYwA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: 10\2cx } | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/53OltIbJ-YBXtSKedVvYwA/input.css:1:1 | 1 | a { value: 10\2cx } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/54mhLGCwQMwsuiVkiTzAAQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/54mhLGCwQMwsuiVkiTzAAQ/output.json index e283e32fe22..774d10c992c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/54mhLGCwQMwsuiVkiTzAAQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/54mhLGCwQMwsuiVkiTzAAQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 14, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/54mhLGCwQMwsuiVkiTzAAQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/54mhLGCwQMwsuiVkiTzAAQ/span.rust-debug index 63b4418e7ca..a1ed240af5e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/54mhLGCwQMwsuiVkiTzAAQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/54mhLGCwQMwsuiVkiTzAAQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [attr="-a"] {} | ^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/54mhLGCwQMwsuiVkiTzAAQ/input.css:1:1 | 1 | [attr="-a"] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/5al65IRQbw_x4yG3ke74fQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/5al65IRQbw_x4yG3ke74fQ/output.json index ff7ce88218b..a355f039151 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/5al65IRQbw_x4yG3ke74fQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/5al65IRQbw_x4yG3ke74fQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/5al65IRQbw_x4yG3ke74fQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/5al65IRQbw_x4yG3ke74fQ/span.rust-debug index 3e1208e1b3a..3fce0f61332 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/5al65IRQbw_x4yG3ke74fQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/5al65IRQbw_x4yG3ke74fQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: +0.1; } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/5al65IRQbw_x4yG3ke74fQ/input.css:1:1 | 1 | a { width: +0.1; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/5cnGKjYPm1XBeqTmw3oCag/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/5cnGKjYPm1XBeqTmw3oCag/output.json index 7db740781c9..6cb7a06f2fc 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/5cnGKjYPm1XBeqTmw3oCag/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/5cnGKjYPm1XBeqTmw3oCag/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 16, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/5cnGKjYPm1XBeqTmw3oCag/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/5cnGKjYPm1XBeqTmw3oCag/span.rust-debug index 6575b73d645..b7836029844 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/5cnGKjYPm1XBeqTmw3oCag/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/5cnGKjYPm1XBeqTmw3oCag/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: x\, } | ^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/5cnGKjYPm1XBeqTmw3oCag/input.css:1:1 | 1 | a { value: x\, } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/5nNFwUYmVb5_MMMzIvIeQg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/5nNFwUYmVb5_MMMzIvIeQg/output.json index e44d165fedb..014f88ab8f0 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/5nNFwUYmVb5_MMMzIvIeQg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/5nNFwUYmVb5_MMMzIvIeQg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 10, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/5nNFwUYmVb5_MMMzIvIeQg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/5nNFwUYmVb5_MMMzIvIeQg/span.rust-debug index 55e0230a571..47bdc7e45a9 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/5nNFwUYmVb5_MMMzIvIeQg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/5nNFwUYmVb5_MMMzIvIeQg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a~/**/b {} | ^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/5nNFwUYmVb5_MMMzIvIeQg/input.css:1:1 | 1 | a~/**/b {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/5yer6GUWydidDHrfgacUkA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/5yer6GUWydidDHrfgacUkA/output.json index d42b01405af..1c77738dcda 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/5yer6GUWydidDHrfgacUkA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/5yer6GUWydidDHrfgacUkA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/5yer6GUWydidDHrfgacUkA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/5yer6GUWydidDHrfgacUkA/span.rust-debug index efdfec0aed1..ba7b40f9b78 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/5yer6GUWydidDHrfgacUkA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/5yer6GUWydidDHrfgacUkA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #1234 } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/5yer6GUWydidDHrfgacUkA/input.css:1:1 | 1 | a { color: #1234 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/62BQJI-uDjHXNJ7kyL8HiA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/62BQJI-uDjHXNJ7kyL8HiA/output.json index 840ac49a86b..a24a0c73041 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/62BQJI-uDjHXNJ7kyL8HiA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/62BQJI-uDjHXNJ7kyL8HiA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 14, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/62BQJI-uDjHXNJ7kyL8HiA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/62BQJI-uDjHXNJ7kyL8HiA/span.rust-debug index 4f7bf238fd2..b08c1efd77d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/62BQJI-uDjHXNJ7kyL8HiA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/62BQJI-uDjHXNJ7kyL8HiA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [attr\7e=x] {} | ^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/62BQJI-uDjHXNJ7kyL8HiA/input.css:1:1 | 1 | [attr\7e=x] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/6IWHWiWjsuGkPiPAp2KmoA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/6IWHWiWjsuGkPiPAp2KmoA/output.json index b4349e0d490..2c1a5a71e20 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/6IWHWiWjsuGkPiPAp2KmoA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/6IWHWiWjsuGkPiPAp2KmoA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 13, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/6IWHWiWjsuGkPiPAp2KmoA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/6IWHWiWjsuGkPiPAp2KmoA/span.rust-debug index 406e781bac6..a070f586cc8 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/6IWHWiWjsuGkPiPAp2KmoA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/6IWHWiWjsuGkPiPAp2KmoA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [b $= "c"] {} | ^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/6IWHWiWjsuGkPiPAp2KmoA/input.css:1:1 | 1 | [b $= "c"] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/6WYwXsqP1SJOa-6oDBobzQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/6WYwXsqP1SJOa-6oDBobzQ/output.json index 7e0cc0f993a..2b2bad47d3f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/6WYwXsqP1SJOa-6oDBobzQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/6WYwXsqP1SJOa-6oDBobzQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/6WYwXsqP1SJOa-6oDBobzQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/6WYwXsqP1SJOa-6oDBobzQ/span.rust-debug index 6186d2da12c..26573a87ebb 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/6WYwXsqP1SJOa-6oDBobzQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/6WYwXsqP1SJOa-6oDBobzQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: white } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/6WYwXsqP1SJOa-6oDBobzQ/input.css:1:1 | 1 | a { color: white } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/6aNPFn_YOBL4koYvV-g8pQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/6aNPFn_YOBL4koYvV-g8pQ/output.json index 8f7a9ac1a6e..35eec2803e9 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/6aNPFn_YOBL4koYvV-g8pQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/6aNPFn_YOBL4koYvV-g8pQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 17, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/6aNPFn_YOBL4koYvV-g8pQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/6aNPFn_YOBL4koYvV-g8pQ/span.rust-debug index ced26c7a9da..0c9942f79d5 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/6aNPFn_YOBL4koYvV-g8pQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/6aNPFn_YOBL4koYvV-g8pQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: .0%; } | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/6aNPFn_YOBL4koYvV-g8pQ/input.css:1:1 | 1 | a { width: .0%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/6fufNZ3PA6_-pNwY-IP61Q/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/6fufNZ3PA6_-pNwY-IP61Q/output.json index 06d3b8ea390..30078b4de4d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/6fufNZ3PA6_-pNwY-IP61Q/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/6fufNZ3PA6_-pNwY-IP61Q/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 6, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/6fufNZ3PA6_-pNwY-IP61Q/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/6fufNZ3PA6_-pNwY-IP61Q/span.rust-debug index e920fd71a0c..5cb281860ff 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/6fufNZ3PA6_-pNwY-IP61Q/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/6fufNZ3PA6_-pNwY-IP61Q/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a+b {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/6fufNZ3PA6_-pNwY-IP61Q/input.css:1:1 | 1 | a+b {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/6kUhG0W7hwZxIuaCsZ7pHg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/6kUhG0W7hwZxIuaCsZ7pHg/output.json index 5d4a9c1647b..636a99fbbb2 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/6kUhG0W7hwZxIuaCsZ7pHg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/6kUhG0W7hwZxIuaCsZ7pHg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 29, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/6kUhG0W7hwZxIuaCsZ7pHg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/6kUhG0W7hwZxIuaCsZ7pHg/span.rust-debug index 22f260b51ed..4efca5d3133 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/6kUhG0W7hwZxIuaCsZ7pHg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/6kUhG0W7hwZxIuaCsZ7pHg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a:after { content: 'a\62 c' } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/6kUhG0W7hwZxIuaCsZ7pHg/input.css:1:1 | 1 | a:after { content: 'a\62 c' } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/6s_VBuRPHbPiUrh1fWCR_Q/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/6s_VBuRPHbPiUrh1fWCR_Q/output.json index 5a35a179cfe..eb59bd38310 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/6s_VBuRPHbPiUrh1fWCR_Q/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/6s_VBuRPHbPiUrh1fWCR_Q/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/6s_VBuRPHbPiUrh1fWCR_Q/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/6s_VBuRPHbPiUrh1fWCR_Q/span.rust-debug index c2a6bae632f..771d52c281e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/6s_VBuRPHbPiUrh1fWCR_Q/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/6s_VBuRPHbPiUrh1fWCR_Q/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | :pseudo(cl\,ss) {} | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/6s_VBuRPHbPiUrh1fWCR_Q/input.css:1:1 | 1 | :pseudo(cl\,ss) {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/7CK6ZYt4CWz7Ge5KWLKBYg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/7CK6ZYt4CWz7Ge5KWLKBYg/output.json index 4b79a8d8f6c..bb7cdbf5576 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/7CK6ZYt4CWz7Ge5KWLKBYg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/7CK6ZYt4CWz7Ge5KWLKBYg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/7CK6ZYt4CWz7Ge5KWLKBYg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/7CK6ZYt4CWz7Ge5KWLKBYg/span.rust-debug index e09a1b0eb11..4338c990e0d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/7CK6ZYt4CWz7Ge5KWLKBYg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/7CK6ZYt4CWz7Ge5KWLKBYg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #aabbccef } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/7CK6ZYt4CWz7Ge5KWLKBYg/input.css:1:1 | 1 | a { color: #aabbccef } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/7S9dyZUmnJW4VKAa7gcKvw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/7S9dyZUmnJW4VKAa7gcKvw/output.json index 04a33cc8920..d9267fb8ada 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/7S9dyZUmnJW4VKAa7gcKvw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/7S9dyZUmnJW4VKAa7gcKvw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 11, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/7S9dyZUmnJW4VKAa7gcKvw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/7S9dyZUmnJW4VKAa7gcKvw/span.rust-debug index 892a3332d95..b3ede8b6ede 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/7S9dyZUmnJW4VKAa7gcKvw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/7S9dyZUmnJW4VKAa7gcKvw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | .\,class {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/7S9dyZUmnJW4VKAa7gcKvw/input.css:1:1 | 1 | .\,class {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/7Wto7epgdmJCos0XkrnMww/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/7Wto7epgdmJCos0XkrnMww/output.json index 66aa2823c75..fda622adbba 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/7Wto7epgdmJCos0XkrnMww/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/7Wto7epgdmJCos0XkrnMww/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 10, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/7Wto7epgdmJCos0XkrnMww/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/7Wto7epgdmJCos0XkrnMww/span.rust-debug index 0dfc44e8b02..2f7b28064d4 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/7Wto7epgdmJCos0XkrnMww/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/7Wto7epgdmJCos0XkrnMww/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a+/**/b {} | ^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/7Wto7epgdmJCos0XkrnMww/input.css:1:1 | 1 | a+/**/b {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/7YGXOizztR38f8fGB1DRaQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/7YGXOizztR38f8fGB1DRaQ/output.json index f445cb5ce02..97dcba307c5 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/7YGXOizztR38f8fGB1DRaQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/7YGXOizztR38f8fGB1DRaQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 19, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/7YGXOizztR38f8fGB1DRaQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/7YGXOizztR38f8fGB1DRaQ/span.rust-debug index f4bfa7447a5..1c54f933ea9 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/7YGXOizztR38f8fGB1DRaQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/7YGXOizztR38f8fGB1DRaQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: -.00%; } | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/7YGXOizztR38f8fGB1DRaQ/input.css:1:1 | 1 | a { width: -.00%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/866Law8W0FQas7QMxFjUbw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/866Law8W0FQas7QMxFjUbw/output.json index f84984402c6..26283b408e9 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/866Law8W0FQas7QMxFjUbw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/866Law8W0FQas7QMxFjUbw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 19, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/866Law8W0FQas7QMxFjUbw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/866Law8W0FQas7QMxFjUbw/span.rust-debug index ba3795be5df..f7cfac2a75e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/866Law8W0FQas7QMxFjUbw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/866Law8W0FQas7QMxFjUbw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: 10x\2c } | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/866Law8W0FQas7QMxFjUbw/input.css:1:1 | 1 | a { value: 10x\2c } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/8Gs_Q4kYqijbgIQ6xIW8qw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/8Gs_Q4kYqijbgIQ6xIW8qw/output.json index 3a786d5f2c5..82629d37b3e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/8Gs_Q4kYqijbgIQ6xIW8qw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/8Gs_Q4kYqijbgIQ6xIW8qw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 23, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/8Gs_Q4kYqijbgIQ6xIW8qw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/8Gs_Q4kYqijbgIQ6xIW8qw/span.rust-debug index 335a39762d0..a00c2bb7906 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/8Gs_Q4kYqijbgIQ6xIW8qw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/8Gs_Q4kYqijbgIQ6xIW8qw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: url(a\62c) } | ^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/8Gs_Q4kYqijbgIQ6xIW8qw/input.css:1:1 | 1 | a { value: url(a\62c) } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/8R-UUShF-1EmQSj6_GQwrA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/8R-UUShF-1EmQSj6_GQwrA/output.json index 4e4f8f9e1b0..757e906377e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/8R-UUShF-1EmQSj6_GQwrA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/8R-UUShF-1EmQSj6_GQwrA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 7, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/8R-UUShF-1EmQSj6_GQwrA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/8R-UUShF-1EmQSj6_GQwrA/span.rust-debug index dd5cf7c52d1..d97b5b00898 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/8R-UUShF-1EmQSj6_GQwrA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/8R-UUShF-1EmQSj6_GQwrA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | #\-0 {} | ^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/8R-UUShF-1EmQSj6_GQwrA/input.css:1:1 | 1 | #\-0 {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/9IIa-42s3YQFw8ilk39GdQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/9IIa-42s3YQFw8ilk39GdQ/output.json index acd4ae61259..d88a2727000 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/9IIa-42s3YQFw8ilk39GdQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/9IIa-42s3YQFw8ilk39GdQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/9IIa-42s3YQFw8ilk39GdQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/9IIa-42s3YQFw8ilk39GdQ/span.rust-debug index aea66a69042..b719aabf16a 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/9IIa-42s3YQFw8ilk39GdQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/9IIa-42s3YQFw8ilk39GdQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #AABBCCFF } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/9IIa-42s3YQFw8ilk39GdQ/input.css:1:1 | 1 | a { color: #AABBCCFF } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/9aSeJQPn4WHMexejaMQQoQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/9aSeJQPn4WHMexejaMQQoQ/output.json index 1fed31ae6af..5ba7a10b54b 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/9aSeJQPn4WHMexejaMQQoQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/9aSeJQPn4WHMexejaMQQoQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 13, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/9aSeJQPn4WHMexejaMQQoQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/9aSeJQPn4WHMexejaMQQoQ/span.rust-debug index 6397ce2cc33..4ccc7272b61 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/9aSeJQPn4WHMexejaMQQoQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/9aSeJQPn4WHMexejaMQQoQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [\2a|attr] {} | ^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/9aSeJQPn4WHMexejaMQQoQ/input.css:1:1 | 1 | [\2a|attr] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/A3jvzrmJH_MIf_Uilsy4sg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/A3jvzrmJH_MIf_Uilsy4sg/output.json index 0467a7fee58..932a6553198 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/A3jvzrmJH_MIf_Uilsy4sg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/A3jvzrmJH_MIf_Uilsy4sg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 19, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/A3jvzrmJH_MIf_Uilsy4sg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/A3jvzrmJH_MIf_Uilsy4sg/span.rust-debug index 253cf477f1d..8296cf222b0 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/A3jvzrmJH_MIf_Uilsy4sg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/A3jvzrmJH_MIf_Uilsy4sg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: +0.1%; } | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/A3jvzrmJH_MIf_Uilsy4sg/input.css:1:1 | 1 | a { width: +0.1%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/ACQUsGVQAmGzhMqBRmS6Mw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/ACQUsGVQAmGzhMqBRmS6Mw/output.json index ef889874361..b74c4acbfba 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/ACQUsGVQAmGzhMqBRmS6Mw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/ACQUsGVQAmGzhMqBRmS6Mw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 17, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/ACQUsGVQAmGzhMqBRmS6Mw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/ACQUsGVQAmGzhMqBRmS6Mw/span.rust-debug index a0c9fbfbccf..9776a7ced9b 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/ACQUsGVQAmGzhMqBRmS6Mw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/ACQUsGVQAmGzhMqBRmS6Mw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: .10; } | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/ACQUsGVQAmGzhMqBRmS6Mw/input.css:1:1 | 1 | a { width: .10; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/AVaQlt9z0lhJC6bHHDPVeA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/AVaQlt9z0lhJC6bHHDPVeA/output.json index 612a5356ef3..5ca9cbda04c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/AVaQlt9z0lhJC6bHHDPVeA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/AVaQlt9z0lhJC6bHHDPVeA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 19, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/AVaQlt9z0lhJC6bHHDPVeA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/AVaQlt9z0lhJC6bHHDPVeA/span.rust-debug index 06f8d7f2f6d..f1ac71fb74d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/AVaQlt9z0lhJC6bHHDPVeA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/AVaQlt9z0lhJC6bHHDPVeA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: x\2c() } | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/AVaQlt9z0lhJC6bHHDPVeA/input.css:1:1 | 1 | a { value: x\2c() } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Aby-BQPnUhIoK9wn-kUcDQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/Aby-BQPnUhIoK9wn-kUcDQ/output.json index b9d62e313f9..c144205a6d6 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Aby-BQPnUhIoK9wn-kUcDQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Aby-BQPnUhIoK9wn-kUcDQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 10, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Aby-BQPnUhIoK9wn-kUcDQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Aby-BQPnUhIoK9wn-kUcDQ/span.rust-debug index 35612a6468f..8e115e8abe0 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Aby-BQPnUhIoK9wn-kUcDQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Aby-BQPnUhIoK9wn-kUcDQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | #\,hash {} | ^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/Aby-BQPnUhIoK9wn-kUcDQ/input.css:1:1 | 1 | #\,hash {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Ae5_auBp274oaSQ0kls9sw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/Ae5_auBp274oaSQ0kls9sw/output.json index cbbb6435cd1..7e306b7b5af 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Ae5_auBp274oaSQ0kls9sw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Ae5_auBp274oaSQ0kls9sw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 10, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Ae5_auBp274oaSQ0kls9sw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Ae5_auBp274oaSQ0kls9sw/span.rust-debug index 33772b403e4..7dfde8dd217 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Ae5_auBp274oaSQ0kls9sw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Ae5_auBp274oaSQ0kls9sw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [b="c"] {} | ^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/Ae5_auBp274oaSQ0kls9sw/input.css:1:1 | 1 | [b="c"] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Afm91-TMNbzd52HsPrCCNA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/Afm91-TMNbzd52HsPrCCNA/output.json index 322ed4f5352..130a38bf749 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Afm91-TMNbzd52HsPrCCNA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Afm91-TMNbzd52HsPrCCNA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Afm91-TMNbzd52HsPrCCNA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Afm91-TMNbzd52HsPrCCNA/span.rust-debug index 01bd1eaab3a..f877ae7770b 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Afm91-TMNbzd52HsPrCCNA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Afm91-TMNbzd52HsPrCCNA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #abbbccff } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/Afm91-TMNbzd52HsPrCCNA/input.css:1:1 | 1 | a { color: #abbbccff } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/AigZ338AGwCqF4M9a3Quqw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/AigZ338AGwCqF4M9a3Quqw/output.json index 3a8f49d3b84..bb4da23fb5e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/AigZ338AGwCqF4M9a3Quqw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/AigZ338AGwCqF4M9a3Quqw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/AigZ338AGwCqF4M9a3Quqw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/AigZ338AGwCqF4M9a3Quqw/span.rust-debug index 6371df6a4d7..8dae129f17d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/AigZ338AGwCqF4M9a3Quqw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/AigZ338AGwCqF4M9a3Quqw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #AABCCCDD } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/AigZ338AGwCqF4M9a3Quqw/input.css:1:1 | 1 | a { color: #AABCCCDD } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/AocxkR5Gt30Hu6JV7J56Wg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/AocxkR5Gt30Hu6JV7J56Wg/output.json index 0475438f1f6..3138743736e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/AocxkR5Gt30Hu6JV7J56Wg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/AocxkR5Gt30Hu6JV7J56Wg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 20, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/AocxkR5Gt30Hu6JV7J56Wg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/AocxkR5Gt30Hu6JV7J56Wg/span.rust-debug index a23374de405..ec8a84a5935 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/AocxkR5Gt30Hu6JV7J56Wg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/AocxkR5Gt30Hu6JV7J56Wg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #aabccc } | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/AocxkR5Gt30Hu6JV7J56Wg/input.css:1:1 | 1 | a { color: #aabccc } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/AwZM5l5vBlyrbgG-Fk0_EQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/AwZM5l5vBlyrbgG-Fk0_EQ/output.json index 8ed373a5585..327f2052798 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/AwZM5l5vBlyrbgG-Fk0_EQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/AwZM5l5vBlyrbgG-Fk0_EQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 17, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/AwZM5l5vBlyrbgG-Fk0_EQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/AwZM5l5vBlyrbgG-Fk0_EQ/span.rust-debug index 1bea22cddba..e30e30cbc9b 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/AwZM5l5vBlyrbgG-Fk0_EQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/AwZM5l5vBlyrbgG-Fk0_EQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: x\2c } | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/AwZM5l5vBlyrbgG-Fk0_EQ/input.css:1:1 | 1 | a { value: x\2c } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/BKyQWW5j9vRP-kr41nqcjg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/BKyQWW5j9vRP-kr41nqcjg/output.json index ef0536b0151..a3b9c8dbe14 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/BKyQWW5j9vRP-kr41nqcjg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/BKyQWW5j9vRP-kr41nqcjg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 21, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/BKyQWW5j9vRP-kr41nqcjg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/BKyQWW5j9vRP-kr41nqcjg/span.rust-debug index 97ac10af6ce..a3479722e53 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/BKyQWW5j9vRP-kr41nqcjg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/BKyQWW5j9vRP-kr41nqcjg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: #\68 ash } | ^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/BKyQWW5j9vRP-kr41nqcjg/input.css:1:1 | 1 | a { value: #\68 ash } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/BltaGv1fY5VvJahyCRNxqQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/BltaGv1fY5VvJahyCRNxqQ/output.json index c181fd154ec..1c5fa6d9673 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/BltaGv1fY5VvJahyCRNxqQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/BltaGv1fY5VvJahyCRNxqQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 6, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/BltaGv1fY5VvJahyCRNxqQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/BltaGv1fY5VvJahyCRNxqQ/span.rust-debug index 832c13ceec2..5a6666ca4ad 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/BltaGv1fY5VvJahyCRNxqQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/BltaGv1fY5VvJahyCRNxqQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a~b {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/BltaGv1fY5VvJahyCRNxqQ/input.css:1:1 | 1 | a~b {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/BrJMdtdKJAuIZIG5MVWUYA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/BrJMdtdKJAuIZIG5MVWUYA/output.json index a2bcb8b1411..7eecafa487b 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/BrJMdtdKJAuIZIG5MVWUYA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/BrJMdtdKJAuIZIG5MVWUYA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 32, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/BrJMdtdKJAuIZIG5MVWUYA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/BrJMdtdKJAuIZIG5MVWUYA/span.rust-debug index 6cb49f8569f..51cfe05e022 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/BrJMdtdKJAuIZIG5MVWUYA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/BrJMdtdKJAuIZIG5MVWUYA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | .selector { property: value\9; } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/BrJMdtdKJAuIZIG5MVWUYA/input.css:1:1 | 1 | .selector { property: value\9; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/C419dJQ48QjmgKufnQhNVw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/C419dJQ48QjmgKufnQhNVw/output.json index 07ba369b84c..dc43beea58e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/C419dJQ48QjmgKufnQhNVw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/C419dJQ48QjmgKufnQhNVw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 8, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/C419dJQ48QjmgKufnQhNVw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/C419dJQ48QjmgKufnQhNVw/span.rust-debug index a1bdee45223..2c498dd194c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/C419dJQ48QjmgKufnQhNVw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/C419dJQ48QjmgKufnQhNVw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a > b {} | ^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/C419dJQ48QjmgKufnQhNVw/input.css:1:1 | 1 | a > b {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/C4I0cdQcSbpaGOS-V8fwew/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/C4I0cdQcSbpaGOS-V8fwew/output.json index b5363481c0c..68b7b326dbd 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/C4I0cdQcSbpaGOS-V8fwew/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/C4I0cdQcSbpaGOS-V8fwew/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 21, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/C4I0cdQcSbpaGOS-V8fwew/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/C4I0cdQcSbpaGOS-V8fwew/span.rust-debug index 8b8166005bf..6f6e1082de9 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/C4I0cdQcSbpaGOS-V8fwew/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/C4I0cdQcSbpaGOS-V8fwew/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: #0h\61sh } | ^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/C4I0cdQcSbpaGOS-V8fwew/input.css:1:1 | 1 | a { value: #0h\61sh } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/C6gS3Kl0KEwGsFaUUGXzFg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/C6gS3Kl0KEwGsFaUUGXzFg/output.json index e1353d09e4f..95be66b4d34 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/C6gS3Kl0KEwGsFaUUGXzFg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/C6gS3Kl0KEwGsFaUUGXzFg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/C6gS3Kl0KEwGsFaUUGXzFg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/C6gS3Kl0KEwGsFaUUGXzFg/span.rust-debug index 12a994f8266..7a42cda60b1 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/C6gS3Kl0KEwGsFaUUGXzFg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/C6gS3Kl0KEwGsFaUUGXzFg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #112234ff } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/C6gS3Kl0KEwGsFaUUGXzFg/input.css:1:1 | 1 | a { color: #112234ff } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/C9nXM9jBTT9WvCQHrwH24Q/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/C9nXM9jBTT9WvCQHrwH24Q/output.json index ef9043758d5..2b976336d3c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/C9nXM9jBTT9WvCQHrwH24Q/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/C9nXM9jBTT9WvCQHrwH24Q/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 7, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/C9nXM9jBTT9WvCQHrwH24Q/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/C9nXM9jBTT9WvCQHrwH24Q/span.rust-debug index c78941bcd89..dbd9b681df4 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/C9nXM9jBTT9WvCQHrwH24Q/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/C9nXM9jBTT9WvCQHrwH24Q/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | &[a] {} | ^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/C9nXM9jBTT9WvCQHrwH24Q/input.css:1:1 | 1 | &[a] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/CQiowK9DjojqKtlpQifemA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/CQiowK9DjojqKtlpQifemA/output.json index 7ff258a0d8f..e7ef38bc0ae 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/CQiowK9DjojqKtlpQifemA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/CQiowK9DjojqKtlpQifemA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 20, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/CQiowK9DjojqKtlpQifemA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/CQiowK9DjojqKtlpQifemA/span.rust-debug index f8de7873d6b..49b3052c992 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/CQiowK9DjojqKtlpQifemA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/CQiowK9DjojqKtlpQifemA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #ABBBCC } | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/CQiowK9DjojqKtlpQifemA/input.css:1:1 | 1 | a { color: #ABBBCC } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/CiejHTPFd8U5szvvY3uRjw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/CiejHTPFd8U5szvvY3uRjw/output.json index 9ea7d933d0a..858b4d061b7 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/CiejHTPFd8U5szvvY3uRjw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/CiejHTPFd8U5szvvY3uRjw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 23, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/CiejHTPFd8U5szvvY3uRjw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/CiejHTPFd8U5szvvY3uRjw/span.rust-debug index ef1d1527e4c..d3fb41bbe46 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/CiejHTPFd8U5szvvY3uRjw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/CiejHTPFd8U5szvvY3uRjw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: @\6beyword } | ^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/CiejHTPFd8U5szvvY3uRjw/input.css:1:1 | 1 | a { value: @\6beyword } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/CqrYlHva8qUNgSPb8EwWjg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/CqrYlHva8qUNgSPb8EwWjg/output.json index 7b1bf648c85..a2219ff03ea 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/CqrYlHva8qUNgSPb8EwWjg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/CqrYlHva8qUNgSPb8EwWjg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 21, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/CqrYlHva8qUNgSPb8EwWjg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/CqrYlHva8qUNgSPb8EwWjg/span.rust-debug index 1051311dbcd..92bff5157cd 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/CqrYlHva8qUNgSPb8EwWjg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/CqrYlHva8qUNgSPb8EwWjg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: 'a\62 c' } | ^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/CqrYlHva8qUNgSPb8EwWjg/input.css:1:1 | 1 | a { value: 'a\62 c' } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Cz4vXE_NaBs6qNXE1kUyqQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/Cz4vXE_NaBs6qNXE1kUyqQ/output.json index e971739ad41..dc9cc618f5a 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Cz4vXE_NaBs6qNXE1kUyqQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Cz4vXE_NaBs6qNXE1kUyqQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 15, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Cz4vXE_NaBs6qNXE1kUyqQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Cz4vXE_NaBs6qNXE1kUyqQ/span.rust-debug index 99ca2dd6b84..2c626f9792c 100644 Binary files a/crates/swc_css_parser/tests/fixture/esbuild/misc/Cz4vXE_NaBs6qNXE1kUyqQ/span.rust-debug and b/crates/swc_css_parser/tests/fixture/esbuild/misc/Cz4vXE_NaBs6qNXE1kUyqQ/span.rust-debug differ diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/D5Oyf1ABeS8lie5Lg-5pqg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/D5Oyf1ABeS8lie5Lg-5pqg/output.json index faa6aea87ed..828a607e2ba 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/D5Oyf1ABeS8lie5Lg-5pqg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/D5Oyf1ABeS8lie5Lg-5pqg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 16, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/D5Oyf1ABeS8lie5Lg-5pqg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/D5Oyf1ABeS8lie5Lg-5pqg/span.rust-debug index f830d5892f6..981f2406853 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/D5Oyf1ABeS8lie5Lg-5pqg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/D5Oyf1ABeS8lie5Lg-5pqg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: x\0 } | ^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/D5Oyf1ABeS8lie5Lg-5pqg/input.css:1:1 | 1 | a { value: x\0 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Dl_KXhjnyR5RfRaNMKBEdw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/Dl_KXhjnyR5RfRaNMKBEdw/output.json index 3487d670090..86f020fc8a4 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Dl_KXhjnyR5RfRaNMKBEdw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Dl_KXhjnyR5RfRaNMKBEdw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 6, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Dl_KXhjnyR5RfRaNMKBEdw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Dl_KXhjnyR5RfRaNMKBEdw/span.rust-debug index e9b618872fe..d91ce635d73 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Dl_KXhjnyR5RfRaNMKBEdw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Dl_KXhjnyR5RfRaNMKBEdw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | &:b {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/Dl_KXhjnyR5RfRaNMKBEdw/input.css:1:1 | 1 | &:b {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Drl1Excz8WEwlfIfA2oRQg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/Drl1Excz8WEwlfIfA2oRQg/output.json index d167abf79b1..7367e9a593f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Drl1Excz8WEwlfIfA2oRQg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Drl1Excz8WEwlfIfA2oRQg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 14, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Drl1Excz8WEwlfIfA2oRQg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Drl1Excz8WEwlfIfA2oRQg/span.rust-debug index 84317aa0418..2cd27dad597 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Drl1Excz8WEwlfIfA2oRQg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Drl1Excz8WEwlfIfA2oRQg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [b = "c" i] {} | ^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/Drl1Excz8WEwlfIfA2oRQg/input.css:1:1 | 1 | [b = "c" i] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/DrlXteRB-ppLVxi4_N4dhA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/DrlXteRB-ppLVxi4_N4dhA/output.json index 23115fd383f..ac431adb39f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/DrlXteRB-ppLVxi4_N4dhA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/DrlXteRB-ppLVxi4_N4dhA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 17, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/DrlXteRB-ppLVxi4_N4dhA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/DrlXteRB-ppLVxi4_N4dhA/span.rust-debug index cf1ec89e1d0..b79e5b437f9 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/DrlXteRB-ppLVxi4_N4dhA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/DrlXteRB-ppLVxi4_N4dhA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: \2cx } | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/DrlXteRB-ppLVxi4_N4dhA/input.css:1:1 | 1 | a { value: \2cx } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/DstCRLR-k3tqe3B46li15Q/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/DstCRLR-k3tqe3B46li15Q/output.json index 08d3e3cc645..b4348d3bf5f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/DstCRLR-k3tqe3B46li15Q/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/DstCRLR-k3tqe3B46li15Q/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 6, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/DstCRLR-k3tqe3B46li15Q/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/DstCRLR-k3tqe3B46li15Q/span.rust-debug index a15646d23f2..12cb757dc20 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/DstCRLR-k3tqe3B46li15Q/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/DstCRLR-k3tqe3B46li15Q/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [|b]{} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/DstCRLR-k3tqe3B46li15Q/input.css:1:1 | 1 | [|b]{} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/EB1IJLfMRoP0XwlJOGLTPA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/EB1IJLfMRoP0XwlJOGLTPA/output.json index 7c625722f54..48d569ddf29 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/EB1IJLfMRoP0XwlJOGLTPA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/EB1IJLfMRoP0XwlJOGLTPA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 6, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/EB1IJLfMRoP0XwlJOGLTPA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/EB1IJLfMRoP0XwlJOGLTPA/span.rust-debug index 0e658dd46f3..bd2f8ab01d1 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/EB1IJLfMRoP0XwlJOGLTPA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/EB1IJLfMRoP0XwlJOGLTPA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | div {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/EB1IJLfMRoP0XwlJOGLTPA/input.css:1:1 | 1 | div {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/EC04FJYJG-jwsR3Sbo9Rfg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/EC04FJYJG-jwsR3Sbo9Rfg/output.json index cd77393eff3..46053c9a47f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/EC04FJYJG-jwsR3Sbo9Rfg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/EC04FJYJG-jwsR3Sbo9Rfg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 10, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/EC04FJYJG-jwsR3Sbo9Rfg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/EC04FJYJG-jwsR3Sbo9Rfg/span.rust-debug index 2dc0ea31236..680bb67bfa7 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/EC04FJYJG-jwsR3Sbo9Rfg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/EC04FJYJG-jwsR3Sbo9Rfg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | div#\-0 {} | ^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/EC04FJYJG-jwsR3Sbo9Rfg/input.css:1:1 | 1 | div#\-0 {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/EJ3xE2oHAiQiiAA6TOFfLA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/EJ3xE2oHAiQiiAA6TOFfLA/output.json index f70ccf3cad1..f4e79b81756 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/EJ3xE2oHAiQiiAA6TOFfLA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/EJ3xE2oHAiQiiAA6TOFfLA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 11, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/EJ3xE2oHAiQiiAA6TOFfLA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/EJ3xE2oHAiQiiAA6TOFfLA/span.rust-debug index 986acf7f3a1..a66ba9b72cb 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/EJ3xE2oHAiQiiAA6TOFfLA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/EJ3xE2oHAiQiiAA6TOFfLA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [\,attr] {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/EJ3xE2oHAiQiiAA6TOFfLA/input.css:1:1 | 1 | [\,attr] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/EJPa4WhTn_fRRrDiA2bczg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/EJPa4WhTn_fRRrDiA2bczg/output.json index 0d77eeff3f4..911d48af3ba 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/EJPa4WhTn_fRRrDiA2bczg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/EJPa4WhTn_fRRrDiA2bczg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 20, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/EJPa4WhTn_fRRrDiA2bczg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/EJPa4WhTn_fRRrDiA2bczg/span.rust-debug index 535ded049f9..941b1b7436e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/EJPa4WhTn_fRRrDiA2bczg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/EJPa4WhTn_fRRrDiA2bczg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #aabbcc } | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/EJPa4WhTn_fRRrDiA2bczg/input.css:1:1 | 1 | a { color: #aabbcc } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/EX6W7U27ut-K7x8AfSlQSg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/EX6W7U27ut-K7x8AfSlQSg/output.json index c0ea5f4a4d2..9194f467b5c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/EX6W7U27ut-K7x8AfSlQSg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/EX6W7U27ut-K7x8AfSlQSg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 6, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/EX6W7U27ut-K7x8AfSlQSg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/EX6W7U27ut-K7x8AfSlQSg/span.rust-debug index 76d0806f3f5..e3bf4d709a5 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/EX6W7U27ut-K7x8AfSlQSg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/EX6W7U27ut-K7x8AfSlQSg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a>b {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/EX6W7U27ut-K7x8AfSlQSg/input.css:1:1 | 1 | a>b {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/EYFn-trzBus37dDEvK1jUQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/EYFn-trzBus37dDEvK1jUQ/output.json index c057f2b3bda..4f75641d7e6 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/EYFn-trzBus37dDEvK1jUQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/EYFn-trzBus37dDEvK1jUQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 20, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/EYFn-trzBus37dDEvK1jUQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/EYFn-trzBus37dDEvK1jUQ/span.rust-debug index 070bf982d43..c27e29be136 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/EYFn-trzBus37dDEvK1jUQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/EYFn-trzBus37dDEvK1jUQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #122233 } | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/EYFn-trzBus37dDEvK1jUQ/input.css:1:1 | 1 | a { color: #122233 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/ElFW4lY06Cb-VFYtK0WX4A/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/ElFW4lY06Cb-VFYtK0WX4A/output.json index 4e1584e14f5..379e4b866c0 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/ElFW4lY06Cb-VFYtK0WX4A/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/ElFW4lY06Cb-VFYtK0WX4A/output.json @@ -36,13 +36,13 @@ ], "block": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 30, "end": 49, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 30, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/ElFW4lY06Cb-VFYtK0WX4A/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/ElFW4lY06Cb-VFYtK0WX4A/span.rust-debug index 32c876d853d..00f994515e4 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/ElFW4lY06Cb-VFYtK0WX4A/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/ElFW4lY06Cb-VFYtK0WX4A/span.rust-debug @@ -40,7 +40,7 @@ error: Rule 1 | @-moz-document url-prefix() { h1 { color: green } } | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/ElFW4lY06Cb-VFYtK0WX4A/input.css:1:31 | 1 | @-moz-document url-prefix() { h1 { color: green } } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/EmvZzoCy9JnSP70AqHmNNA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/EmvZzoCy9JnSP70AqHmNNA/output.json index ecc545f0951..f066ce8c7d1 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/EmvZzoCy9JnSP70AqHmNNA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/EmvZzoCy9JnSP70AqHmNNA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 6, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/EmvZzoCy9JnSP70AqHmNNA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/EmvZzoCy9JnSP70AqHmNNA/span.rust-debug index 45fcf799984..0f3c076a56c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/EmvZzoCy9JnSP70AqHmNNA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/EmvZzoCy9JnSP70AqHmNNA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a b {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/EmvZzoCy9JnSP70AqHmNNA/input.css:1:1 | 1 | a b {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/F-AbRDwG_3dGLhE7pzr5aA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/F-AbRDwG_3dGLhE7pzr5aA/output.json index 224bfdd1798..cc72437e76c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/F-AbRDwG_3dGLhE7pzr5aA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/F-AbRDwG_3dGLhE7pzr5aA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 16, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/F-AbRDwG_3dGLhE7pzr5aA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/F-AbRDwG_3dGLhE7pzr5aA/span.rust-debug index 8fc67c27d72..54071b9c5e2 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/F-AbRDwG_3dGLhE7pzr5aA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/F-AbRDwG_3dGLhE7pzr5aA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: x\1 } | ^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/F-AbRDwG_3dGLhE7pzr5aA/input.css:1:1 | 1 | a { value: x\1 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/FlqjDLebWxQvNIxKppBllw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/FlqjDLebWxQvNIxKppBllw/output.json index ab8501e718e..0e19c21dc4c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/FlqjDLebWxQvNIxKppBllw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/FlqjDLebWxQvNIxKppBllw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 20, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/FlqjDLebWxQvNIxKppBllw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/FlqjDLebWxQvNIxKppBllw/span.rust-debug index 3490168adfd..c99a7ac4151 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/FlqjDLebWxQvNIxKppBllw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/FlqjDLebWxQvNIxKppBllw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #aabbcd } | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/FlqjDLebWxQvNIxKppBllw/input.css:1:1 | 1 | a { color: #aabbcd } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Fm7gvlx7uRyvrfzUC7rJxg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/Fm7gvlx7uRyvrfzUC7rJxg/output.json index 682d9e771ca..e61d1b27b76 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Fm7gvlx7uRyvrfzUC7rJxg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Fm7gvlx7uRyvrfzUC7rJxg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 17, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Fm7gvlx7uRyvrfzUC7rJxg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Fm7gvlx7uRyvrfzUC7rJxg/span.rust-debug index 4a0a32e3525..294db5a44d6 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Fm7gvlx7uRyvrfzUC7rJxg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Fm7gvlx7uRyvrfzUC7rJxg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: #x\, } | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/Fm7gvlx7uRyvrfzUC7rJxg/input.css:1:1 | 1 | a { value: #x\, } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Ft7g4H2gHwlEjiFMDwEkYQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/Ft7g4H2gHwlEjiFMDwEkYQ/output.json index 82579baad22..378c2223644 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Ft7g4H2gHwlEjiFMDwEkYQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Ft7g4H2gHwlEjiFMDwEkYQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 17, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Ft7g4H2gHwlEjiFMDwEkYQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Ft7g4H2gHwlEjiFMDwEkYQ/span.rust-debug index e4c2bbbb390..7f3a6734959 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Ft7g4H2gHwlEjiFMDwEkYQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Ft7g4H2gHwlEjiFMDwEkYQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | :pseudo\,class {} | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/Ft7g4H2gHwlEjiFMDwEkYQ/input.css:1:1 | 1 | :pseudo\,class {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/GC0pcFQY1xSlq9QsgSvEVg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/GC0pcFQY1xSlq9QsgSvEVg/output.json index ba0768549e5..db32ee03e91 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/GC0pcFQY1xSlq9QsgSvEVg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/GC0pcFQY1xSlq9QsgSvEVg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 17, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/GC0pcFQY1xSlq9QsgSvEVg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/GC0pcFQY1xSlq9QsgSvEVg/span.rust-debug index ae3f7273d47..7c2ba9913a7 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/GC0pcFQY1xSlq9QsgSvEVg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/GC0pcFQY1xSlq9QsgSvEVg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: -.0; } | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/GC0pcFQY1xSlq9QsgSvEVg/input.css:1:1 | 1 | a { width: -.0; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/GI1rffTXev-78n9ei_53wQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/GI1rffTXev-78n9ei_53wQ/output.json index b80a15908af..19ff15b3d10 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/GI1rffTXev-78n9ei_53wQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/GI1rffTXev-78n9ei_53wQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 17, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/GI1rffTXev-78n9ei_53wQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/GI1rffTXev-78n9ei_53wQ/span.rust-debug index 368a2d89311..0eed5df50ad 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/GI1rffTXev-78n9ei_53wQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/GI1rffTXev-78n9ei_53wQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: '\1' } | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/GI1rffTXev-78n9ei_53wQ/input.css:1:1 | 1 | a { value: '\1' } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/GNiHtd4OPiZDQlN5KGAmRQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/GNiHtd4OPiZDQlN5KGAmRQ/output.json index 32663da7c9d..91f6ebf3149 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/GNiHtd4OPiZDQlN5KGAmRQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/GNiHtd4OPiZDQlN5KGAmRQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 6, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/GNiHtd4OPiZDQlN5KGAmRQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/GNiHtd4OPiZDQlN5KGAmRQ/span.rust-debug index adbc26b8c00..1909b0ee14b 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/GNiHtd4OPiZDQlN5KGAmRQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/GNiHtd4OPiZDQlN5KGAmRQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | \2a {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/GNiHtd4OPiZDQlN5KGAmRQ/input.css:1:1 | 1 | \2a {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/GVqeF3thmlPBqLweHlqIJQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/GVqeF3thmlPBqLweHlqIJQ/output.json index abe23966e5a..b2f9d0f6f23 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/GVqeF3thmlPBqLweHlqIJQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/GVqeF3thmlPBqLweHlqIJQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 9, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/GVqeF3thmlPBqLweHlqIJQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/GVqeF3thmlPBqLweHlqIJQ/span.rust-debug index eff0a11e724..77fec9c03ed 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/GVqeF3thmlPBqLweHlqIJQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/GVqeF3thmlPBqLweHlqIJQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a/**/b {} | ^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/GVqeF3thmlPBqLweHlqIJQ/input.css:1:1 | 1 | a/**/b {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/GjvJfQVAaNQonYJwt8QRDQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/GjvJfQVAaNQonYJwt8QRDQ/output.json index 54cd2b44f94..eae00bbd716 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/GjvJfQVAaNQonYJwt8QRDQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/GjvJfQVAaNQonYJwt8QRDQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 11, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/GjvJfQVAaNQonYJwt8QRDQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/GjvJfQVAaNQonYJwt8QRDQ/span.rust-debug index 25cd1f2162c..76044c296c5 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/GjvJfQVAaNQonYJwt8QRDQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/GjvJfQVAaNQonYJwt8QRDQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [b*="c"] {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/GjvJfQVAaNQonYJwt8QRDQ/input.css:1:1 | 1 | [b*="c"] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/GpePX8ZJM8IP14hXFTKKxQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/GpePX8ZJM8IP14hXFTKKxQ/output.json index c87f0f0c6af..91ebe82c34e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/GpePX8ZJM8IP14hXFTKKxQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/GpePX8ZJM8IP14hXFTKKxQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/GpePX8ZJM8IP14hXFTKKxQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/GpePX8ZJM8IP14hXFTKKxQ/span.rust-debug index 2585227fbb0..71d5e070cc1 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/GpePX8ZJM8IP14hXFTKKxQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/GpePX8ZJM8IP14hXFTKKxQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: x\,() } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/GpePX8ZJM8IP14hXFTKKxQ/input.css:1:1 | 1 | a { value: x\,() } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Gt3Lw4L5Pe4aLLDPz9cxRg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/Gt3Lw4L5Pe4aLLDPz9cxRg/output.json index b5971a24a53..b48aac5d19a 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Gt3Lw4L5Pe4aLLDPz9cxRg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Gt3Lw4L5Pe4aLLDPz9cxRg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 20, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Gt3Lw4L5Pe4aLLDPz9cxRg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Gt3Lw4L5Pe4aLLDPz9cxRg/span.rust-debug index d72af84a911..e703a6a4580 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Gt3Lw4L5Pe4aLLDPz9cxRg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Gt3Lw4L5Pe4aLLDPz9cxRg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | .decl { a: b; c: d } | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/Gt3Lw4L5Pe4aLLDPz9cxRg/input.css:1:1 | 1 | .decl { a: b; c: d } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/HBQJEriDrHgN_kXjKrVW9g/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/HBQJEriDrHgN_kXjKrVW9g/output.json index 91ea318427a..a8b01e47ff7 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/HBQJEriDrHgN_kXjKrVW9g/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/HBQJEriDrHgN_kXjKrVW9g/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 14, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/HBQJEriDrHgN_kXjKrVW9g/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/HBQJEriDrHgN_kXjKrVW9g/span.rust-debug index e10a0cd3318..4c2026a6d05 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/HBQJEriDrHgN_kXjKrVW9g/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/HBQJEriDrHgN_kXjKrVW9g/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [ns|\61ttr] {} | ^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/HBQJEriDrHgN_kXjKrVW9g/input.css:1:1 | 1 | [ns|\61ttr] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/HDNE73X9waUrBkTAzz-20g/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/HDNE73X9waUrBkTAzz-20g/output.json index 7278a6df710..df113b04792 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/HDNE73X9waUrBkTAzz-20g/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/HDNE73X9waUrBkTAzz-20g/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 20, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/HDNE73X9waUrBkTAzz-20g/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/HDNE73X9waUrBkTAzz-20g/span.rust-debug index 3a3425592ad..e5c1c128322 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/HDNE73X9waUrBkTAzz-20g/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/HDNE73X9waUrBkTAzz-20g/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: #h\61sh } | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/HDNE73X9waUrBkTAzz-20g/input.css:1:1 | 1 | a { value: #h\61sh } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/HGH4crVp9Whp_G0PY6BaQA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/HGH4crVp9Whp_G0PY6BaQA/output.json index cf42ad53042..3ec05b52967 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/HGH4crVp9Whp_G0PY6BaQA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/HGH4crVp9Whp_G0PY6BaQA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 7, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/HGH4crVp9Whp_G0PY6BaQA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/HGH4crVp9Whp_G0PY6BaQA/span.rust-debug index 3f39900cf18..d9a1ec53ef3 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/HGH4crVp9Whp_G0PY6BaQA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/HGH4crVp9Whp_G0PY6BaQA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a[b] {} | ^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/HGH4crVp9Whp_G0PY6BaQA/input.css:1:1 | 1 | a[b] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/HWU09nmB9oZX7WY8zUbrnA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/HWU09nmB9oZX7WY8zUbrnA/output.json index c29f9f6666a..9743d984eb4 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/HWU09nmB9oZX7WY8zUbrnA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/HWU09nmB9oZX7WY8zUbrnA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 19, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/HWU09nmB9oZX7WY8zUbrnA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/HWU09nmB9oZX7WY8zUbrnA/span.rust-debug index 4527f5aa23a..e8cb4f0a815 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/HWU09nmB9oZX7WY8zUbrnA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/HWU09nmB9oZX7WY8zUbrnA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: -0.1%; } | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/HWU09nmB9oZX7WY8zUbrnA/input.css:1:1 | 1 | a { width: -0.1%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/I33LxmnLDtSRSbNrHmoNRA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/I33LxmnLDtSRSbNrHmoNRA/output.json index 7d351a46e19..a679a84064c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/I33LxmnLDtSRSbNrHmoNRA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/I33LxmnLDtSRSbNrHmoNRA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 8, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/I33LxmnLDtSRSbNrHmoNRA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/I33LxmnLDtSRSbNrHmoNRA/span.rust-debug index 5ad4963d315..e2c0db8de4b 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/I33LxmnLDtSRSbNrHmoNRA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/I33LxmnLDtSRSbNrHmoNRA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a + b {} | ^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/I33LxmnLDtSRSbNrHmoNRA/input.css:1:1 | 1 | a + b {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/ISvhgCbFuiTTWo41R3UVRA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/ISvhgCbFuiTTWo41R3UVRA/output.json index c3243a7cfae..140d4afc183 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/ISvhgCbFuiTTWo41R3UVRA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/ISvhgCbFuiTTWo41R3UVRA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 13, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/ISvhgCbFuiTTWo41R3UVRA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/ISvhgCbFuiTTWo41R3UVRA/span.rust-debug index 53ca98bb6a2..e926b9e8afc 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/ISvhgCbFuiTTWo41R3UVRA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/ISvhgCbFuiTTWo41R3UVRA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | .\2c class {} | ^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/ISvhgCbFuiTTWo41R3UVRA/input.css:1:1 | 1 | .\2c class {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Jir2h5-Giw9AVhE3ep3_sg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/Jir2h5-Giw9AVhE3ep3_sg/output.json index b0fc8350658..a6666f0c19e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Jir2h5-Giw9AVhE3ep3_sg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Jir2h5-Giw9AVhE3ep3_sg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 11, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Jir2h5-Giw9AVhE3ep3_sg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Jir2h5-Giw9AVhE3ep3_sg/span.rust-debug index bd1ccebea0d..c3a96b271a8 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Jir2h5-Giw9AVhE3ep3_sg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Jir2h5-Giw9AVhE3ep3_sg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | #\2chash {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/Jir2h5-Giw9AVhE3ep3_sg/input.css:1:1 | 1 | #\2chash {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/LoeMqdekBkn3XKYHQFHOZA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/LoeMqdekBkn3XKYHQFHOZA/output.json index d99fdb66d80..24e9a7ab53d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/LoeMqdekBkn3XKYHQFHOZA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/LoeMqdekBkn3XKYHQFHOZA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 20, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/LoeMqdekBkn3XKYHQFHOZA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/LoeMqdekBkn3XKYHQFHOZA/span.rust-debug index 08cb2c1e414..ecd3226d3a2 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/LoeMqdekBkn3XKYHQFHOZA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/LoeMqdekBkn3XKYHQFHOZA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #AABCCC } | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/LoeMqdekBkn3XKYHQFHOZA/input.css:1:1 | 1 | a { color: #AABCCC } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Loy9sX2qaylR2OySt7N-BQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/Loy9sX2qaylR2OySt7N-BQ/output.json index 29651be7db8..35642b375df 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Loy9sX2qaylR2OySt7N-BQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Loy9sX2qaylR2OySt7N-BQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 6, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Loy9sX2qaylR2OySt7N-BQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Loy9sX2qaylR2OySt7N-BQ/span.rust-debug index 34f1c6287c2..0dd0e5f327d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Loy9sX2qaylR2OySt7N-BQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Loy9sX2qaylR2OySt7N-BQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a|* {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/Loy9sX2qaylR2OySt7N-BQ/input.css:1:1 | 1 | a|* {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/MCJc58-6bYzpgizSxt8jQg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/MCJc58-6bYzpgizSxt8jQg/output.json index fc3e0592feb..0fb01aeae92 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/MCJc58-6bYzpgizSxt8jQg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/MCJc58-6bYzpgizSxt8jQg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 15, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/MCJc58-6bYzpgizSxt8jQg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/MCJc58-6bYzpgizSxt8jQg/span.rust-debug index 2cbb5eeb93c..e002e9bfbfb 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/MCJc58-6bYzpgizSxt8jQg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/MCJc58-6bYzpgizSxt8jQg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [\2cns|attr] {} | ^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/MCJc58-6bYzpgizSxt8jQg/input.css:1:1 | 1 | [\2cns|attr] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/MHzCL6d2nAk4bByQ_ja7xg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/MHzCL6d2nAk4bByQ_ja7xg/output.json index e5034ca9366..5d8cf9e944a 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/MHzCL6d2nAk4bByQ_ja7xg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/MHzCL6d2nAk4bByQ_ja7xg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 3, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/MHzCL6d2nAk4bByQ_ja7xg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/MHzCL6d2nAk4bByQ_ja7xg/span.rust-debug index ceeeea48cf3..1eb57b88e99 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/MHzCL6d2nAk4bByQ_ja7xg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/MHzCL6d2nAk4bByQ_ja7xg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a{} | ^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/MHzCL6d2nAk4bByQ_ja7xg/input.css:1:1 | 1 | a{} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/MK5PGiCFMf7RHDp05gnDCw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/MK5PGiCFMf7RHDp05gnDCw/output.json index 0d91faec566..08a85150e39 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/MK5PGiCFMf7RHDp05gnDCw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/MK5PGiCFMf7RHDp05gnDCw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/MK5PGiCFMf7RHDp05gnDCw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/MK5PGiCFMf7RHDp05gnDCw/span.rust-debug index 85cf08114d1..76fb29d3f79 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/MK5PGiCFMf7RHDp05gnDCw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/MK5PGiCFMf7RHDp05gnDCw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #aabbccdd } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/MK5PGiCFMf7RHDp05gnDCw/input.css:1:1 | 1 | a { color: #aabbccdd } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/MMBANlJKeKQw886fHOYiHA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/MMBANlJKeKQw886fHOYiHA/output.json index 40873cc4940..cdf6e1ac220 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/MMBANlJKeKQw886fHOYiHA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/MMBANlJKeKQw886fHOYiHA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 19, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/MMBANlJKeKQw886fHOYiHA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/MMBANlJKeKQw886fHOYiHA/span.rust-debug index e15cef902f2..f3b1948d7e2 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/MMBANlJKeKQw886fHOYiHA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/MMBANlJKeKQw886fHOYiHA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: 10\32x } | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/MMBANlJKeKQw886fHOYiHA/input.css:1:1 | 1 | a { value: 10\32x } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/MU8JgGd_-h5ocqkfawNxeQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/MU8JgGd_-h5ocqkfawNxeQ/output.json index 73dbcd82b34..e1742178c53 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/MU8JgGd_-h5ocqkfawNxeQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/MU8JgGd_-h5ocqkfawNxeQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/MU8JgGd_-h5ocqkfawNxeQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/MU8JgGd_-h5ocqkfawNxeQ/span.rust-debug index dcdb3d9867b..28f6e20f9f8 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/MU8JgGd_-h5ocqkfawNxeQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/MU8JgGd_-h5ocqkfawNxeQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #abbbccdd } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/MU8JgGd_-h5ocqkfawNxeQ/input.css:1:1 | 1 | a { color: #abbbccdd } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Mdtiu_Fpfso6gXZMciRJgw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/Mdtiu_Fpfso6gXZMciRJgw/output.json index f863a05ad4d..c3056b9df9e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Mdtiu_Fpfso6gXZMciRJgw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Mdtiu_Fpfso6gXZMciRJgw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 19, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Mdtiu_Fpfso6gXZMciRJgw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Mdtiu_Fpfso6gXZMciRJgw/span.rust-debug index 66ab2835b39..90e486cafa4 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Mdtiu_Fpfso6gXZMciRJgw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Mdtiu_Fpfso6gXZMciRJgw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: 10\65m } | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/Mdtiu_Fpfso6gXZMciRJgw/input.css:1:1 | 1 | a { value: 10\65m } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/MmOsa9XFdPMS9x4ITbWSzg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/MmOsa9XFdPMS9x4ITbWSzg/output.json index 44a4e18004c..6d0e0a46370 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/MmOsa9XFdPMS9x4ITbWSzg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/MmOsa9XFdPMS9x4ITbWSzg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/MmOsa9XFdPMS9x4ITbWSzg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/MmOsa9XFdPMS9x4ITbWSzg/span.rust-debug index 576bc002373..587e84e5c00 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/MmOsa9XFdPMS9x4ITbWSzg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/MmOsa9XFdPMS9x4ITbWSzg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: -.00; } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/MmOsa9XFdPMS9x4ITbWSzg/input.css:1:1 | 1 | a { width: -.00; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/MvD7ThpMVIxU3dzF71Gpcg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/MvD7ThpMVIxU3dzF71Gpcg/output.json index 8fa3595225d..90d99ef2c2d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/MvD7ThpMVIxU3dzF71Gpcg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/MvD7ThpMVIxU3dzF71Gpcg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 9, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/MvD7ThpMVIxU3dzF71Gpcg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/MvD7ThpMVIxU3dzF71Gpcg/span.rust-debug index 557cf62129b..08cdb190ea5 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/MvD7ThpMVIxU3dzF71Gpcg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/MvD7ThpMVIxU3dzF71Gpcg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | ::b(c) {} | ^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/MvD7ThpMVIxU3dzF71Gpcg/input.css:1:1 | 1 | ::b(c) {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/MxxFvoxSpp02tFmpbNdA8g/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/MxxFvoxSpp02tFmpbNdA8g/output.json index 83309edcd42..2b9a932ebd8 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/MxxFvoxSpp02tFmpbNdA8g/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/MxxFvoxSpp02tFmpbNdA8g/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 17, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/MxxFvoxSpp02tFmpbNdA8g/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/MxxFvoxSpp02tFmpbNdA8g/span.rust-debug index cb4d158478d..0f84118d918 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/MxxFvoxSpp02tFmpbNdA8g/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/MxxFvoxSpp02tFmpbNdA8g/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: '\0' } | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/MxxFvoxSpp02tFmpbNdA8g/input.css:1:1 | 1 | a { value: '\0' } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/NGFFzFWLONNmgWPM_FpiZg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/NGFFzFWLONNmgWPM_FpiZg/output.json index 799d78a8231..f2e908f9824 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/NGFFzFWLONNmgWPM_FpiZg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/NGFFzFWLONNmgWPM_FpiZg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 19, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/NGFFzFWLONNmgWPM_FpiZg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/NGFFzFWLONNmgWPM_FpiZg/span.rust-debug index 482b787f862..1cbf369c56d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/NGFFzFWLONNmgWPM_FpiZg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/NGFFzFWLONNmgWPM_FpiZg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: +.00%; } | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/NGFFzFWLONNmgWPM_FpiZg/input.css:1:1 | 1 | a { width: +.00%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/O2EvcnNp_CVyX3xq5-eM-g/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/O2EvcnNp_CVyX3xq5-eM-g/output.json index bfb8a6ba948..51edd2bfd8f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/O2EvcnNp_CVyX3xq5-eM-g/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/O2EvcnNp_CVyX3xq5-eM-g/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 27, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/O2EvcnNp_CVyX3xq5-eM-g/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/O2EvcnNp_CVyX3xq5-eM-g/span.rust-debug index 7700fc002bf..b4dfe51d932 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/O2EvcnNp_CVyX3xq5-eM-g/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/O2EvcnNp_CVyX3xq5-eM-g/span.rust-debug @@ -12,7 +12,7 @@ error: Rule 2 | | b' } | |____^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/O2EvcnNp_CVyX3xq5-eM-g/input.css:1:1 | 1 | / a:after { content: 'a\ diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Oc6Obl7mbH-MlFllIoAbdg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/Oc6Obl7mbH-MlFllIoAbdg/output.json index d3dad70f76b..0dc7e0d1c92 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Oc6Obl7mbH-MlFllIoAbdg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Oc6Obl7mbH-MlFllIoAbdg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Oc6Obl7mbH-MlFllIoAbdg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Oc6Obl7mbH-MlFllIoAbdg/span.rust-debug index 6a3243967b9..bbbf448e679 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Oc6Obl7mbH-MlFllIoAbdg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Oc6Obl7mbH-MlFllIoAbdg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #AABBCCDE } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/Oc6Obl7mbH-MlFllIoAbdg/input.css:1:1 | 1 | a { color: #AABBCCDE } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/OjiW46YAJSt_cq_MHhs2Bw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/OjiW46YAJSt_cq_MHhs2Bw/output.json index 395e87b2f60..48ab3ec0926 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/OjiW46YAJSt_cq_MHhs2Bw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/OjiW46YAJSt_cq_MHhs2Bw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 7, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/OjiW46YAJSt_cq_MHhs2Bw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/OjiW46YAJSt_cq_MHhs2Bw/span.rust-debug index cebc1400a6b..570cdbba7e3 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/OjiW46YAJSt_cq_MHhs2Bw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/OjiW46YAJSt_cq_MHhs2Bw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | \2d- {} | ^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/OjiW46YAJSt_cq_MHhs2Bw/input.css:1:1 | 1 | \2d- {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/OtM9lGhbFLqI-r3dvNTUjQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/OtM9lGhbFLqI-r3dvNTUjQ/output.json index 2b295fb25cd..7d52d7548da 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/OtM9lGhbFLqI-r3dvNTUjQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/OtM9lGhbFLqI-r3dvNTUjQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/OtM9lGhbFLqI-r3dvNTUjQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/OtM9lGhbFLqI-r3dvNTUjQ/span.rust-debug index 18d9bc85bb1..24c1d898f8e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/OtM9lGhbFLqI-r3dvNTUjQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/OtM9lGhbFLqI-r3dvNTUjQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: -.10; } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/OtM9lGhbFLqI-r3dvNTUjQ/input.css:1:1 | 1 | a { width: -.10; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/PRqD5VDViUThMCxIEmwIcg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/PRqD5VDViUThMCxIEmwIcg/output.json index ffc70144e38..b098081cb2d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/PRqD5VDViUThMCxIEmwIcg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/PRqD5VDViUThMCxIEmwIcg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 4, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/PRqD5VDViUThMCxIEmwIcg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/PRqD5VDViUThMCxIEmwIcg/span.rust-debug index 0b41e9dc97a..5c158c4ed31 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/PRqD5VDViUThMCxIEmwIcg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/PRqD5VDViUThMCxIEmwIcg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a {} | ^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/PRqD5VDViUThMCxIEmwIcg/input.css:1:1 | 1 | a {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/PSncmPJMuHC-CjpwiYtkDw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/PSncmPJMuHC-CjpwiYtkDw/output.json index b478c85eb02..91b98e18caa 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/PSncmPJMuHC-CjpwiYtkDw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/PSncmPJMuHC-CjpwiYtkDw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 33, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/PSncmPJMuHC-CjpwiYtkDw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/PSncmPJMuHC-CjpwiYtkDw/span.rust-debug index 1a1d570fd0f..f6c5c4b21b0 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/PSncmPJMuHC-CjpwiYtkDw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/PSncmPJMuHC-CjpwiYtkDw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { border-top-left-radius: 0 0 } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/PSncmPJMuHC-CjpwiYtkDw/input.css:1:1 | 1 | a { border-top-left-radius: 0 0 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Pkkf0GfuA1VzI7L4dGjS-A/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/Pkkf0GfuA1VzI7L4dGjS-A/output.json index 0e691006e2d..032e9d141fe 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Pkkf0GfuA1VzI7L4dGjS-A/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Pkkf0GfuA1VzI7L4dGjS-A/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 7, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Pkkf0GfuA1VzI7L4dGjS-A/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Pkkf0GfuA1VzI7L4dGjS-A/span.rust-debug index aea1e6e8ee6..94ffbce2665 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Pkkf0GfuA1VzI7L4dGjS-A/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Pkkf0GfuA1VzI7L4dGjS-A/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | &*|b {} | ^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/Pkkf0GfuA1VzI7L4dGjS-A/input.css:1:1 | 1 | &*|b {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/PwUHqMTSmtZW7IYn9gsinQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/PwUHqMTSmtZW7IYn9gsinQ/output.json index fb9bd2f0b83..c0fc2e460f3 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/PwUHqMTSmtZW7IYn9gsinQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/PwUHqMTSmtZW7IYn9gsinQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 7, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/PwUHqMTSmtZW7IYn9gsinQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/PwUHqMTSmtZW7IYn9gsinQ/span.rust-debug index 2bdcdb316d6..83455a38f22 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/PwUHqMTSmtZW7IYn9gsinQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/PwUHqMTSmtZW7IYn9gsinQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | #\2d {} | ^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/PwUHqMTSmtZW7IYn9gsinQ/input.css:1:1 | 1 | #\2d {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Q42FDvG6_mtoeI7PoHqgQw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/Q42FDvG6_mtoeI7PoHqgQw/output.json index 937b85b652f..b73d82b2753 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Q42FDvG6_mtoeI7PoHqgQw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Q42FDvG6_mtoeI7PoHqgQw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 8, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Q42FDvG6_mtoeI7PoHqgQw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Q42FDvG6_mtoeI7PoHqgQw/span.rust-debug index 38197fd80b4..1a9cfaf8c5e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Q42FDvG6_mtoeI7PoHqgQw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Q42FDvG6_mtoeI7PoHqgQw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a [b] {} | ^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/Q42FDvG6_mtoeI7PoHqgQw/input.css:1:1 | 1 | a [b] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/QLHVnSGDdGN_iDeP3OAXfQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/QLHVnSGDdGN_iDeP3OAXfQ/output.json index c9673c495e5..725d1a23790 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/QLHVnSGDdGN_iDeP3OAXfQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/QLHVnSGDdGN_iDeP3OAXfQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 14, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/QLHVnSGDdGN_iDeP3OAXfQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/QLHVnSGDdGN_iDeP3OAXfQ/span.rust-debug index f61af30934f..8dc4e36e499 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/QLHVnSGDdGN_iDeP3OAXfQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/QLHVnSGDdGN_iDeP3OAXfQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [attr="--"] {} | ^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/QLHVnSGDdGN_iDeP3OAXfQ/input.css:1:1 | 1 | [attr="--"] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Q_wA-fPw3o2m3R7gyWNxbQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/Q_wA-fPw3o2m3R7gyWNxbQ/output.json index e14aebadbad..6ab733bb375 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Q_wA-fPw3o2m3R7gyWNxbQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Q_wA-fPw3o2m3R7gyWNxbQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 31, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Q_wA-fPw3o2m3R7gyWNxbQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Q_wA-fPw3o2m3R7gyWNxbQ/span.rust-debug index d6c0bb00e4b..f30cfa5d4f2 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Q_wA-fPw3o2m3R7gyWNxbQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Q_wA-fPw3o2m3R7gyWNxbQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a:after { content: '\invalid' } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/Q_wA-fPw3o2m3R7gyWNxbQ/input.css:1:1 | 1 | a:after { content: '\invalid' } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/R6OYU1g_sB_euLV8Yzjw6w/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/R6OYU1g_sB_euLV8Yzjw6w/output.json index df4627c6949..be72284f00b 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/R6OYU1g_sB_euLV8Yzjw6w/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/R6OYU1g_sB_euLV8Yzjw6w/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/R6OYU1g_sB_euLV8Yzjw6w/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/R6OYU1g_sB_euLV8Yzjw6w/span.rust-debug index 94fbbb43644..1e93bda26d3 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/R6OYU1g_sB_euLV8Yzjw6w/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/R6OYU1g_sB_euLV8Yzjw6w/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #AABBCCEF } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/R6OYU1g_sB_euLV8Yzjw6w/input.css:1:1 | 1 | a { color: #AABBCCEF } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/RmGccmub1dooAN8WPKTwhQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/RmGccmub1dooAN8WPKTwhQ/output.json index b892de8850a..c7e01f1bb14 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/RmGccmub1dooAN8WPKTwhQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/RmGccmub1dooAN8WPKTwhQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/RmGccmub1dooAN8WPKTwhQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/RmGccmub1dooAN8WPKTwhQ/span.rust-debug index e1bfed2e155..3f23bfa372d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/RmGccmub1dooAN8WPKTwhQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/RmGccmub1dooAN8WPKTwhQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #123f } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/RmGccmub1dooAN8WPKTwhQ/input.css:1:1 | 1 | a { color: #123f } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Rq1DOaNCa5Dl2jaozalLXQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/Rq1DOaNCa5Dl2jaozalLXQ/output.json index 9d2300c5fbb..e64526d2a25 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Rq1DOaNCa5Dl2jaozalLXQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Rq1DOaNCa5Dl2jaozalLXQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 45, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Rq1DOaNCa5Dl2jaozalLXQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Rq1DOaNCa5Dl2jaozalLXQ/span.rust-debug index 020335c9c52..7db858c49cb 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Rq1DOaNCa5Dl2jaozalLXQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Rq1DOaNCa5Dl2jaozalLXQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { box-shadow: inset 0px 0px 0px 0px black } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/Rq1DOaNCa5Dl2jaozalLXQ/input.css:1:1 | 1 | a { box-shadow: inset 0px 0px 0px 0px black } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/S2Mhk5rU2YxQPgm9rtF9WA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/S2Mhk5rU2YxQPgm9rtF9WA/output.json index 4cdcc25d229..56e569d1514 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/S2Mhk5rU2YxQPgm9rtF9WA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/S2Mhk5rU2YxQPgm9rtF9WA/output.json @@ -47,13 +47,13 @@ ], "block": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 44, "end": 63, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 44, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/S2Mhk5rU2YxQPgm9rtF9WA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/S2Mhk5rU2YxQPgm9rtF9WA/span.rust-debug index cb44b3735ab..6b73bf42cfc 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/S2Mhk5rU2YxQPgm9rtF9WA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/S2Mhk5rU2YxQPgm9rtF9WA/span.rust-debug @@ -52,7 +52,7 @@ error: Rule 1 | @document url("https://www.example.com/") { h1 { color: green } } | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/S2Mhk5rU2YxQPgm9rtF9WA/input.css:1:45 | 1 | @document url("https://www.example.com/") { h1 { color: green } } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/SFBgyV9jnFbMzWZoo9VbSQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/SFBgyV9jnFbMzWZoo9VbSQ/output.json index 401d140f7f4..8dcf546a852 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/SFBgyV9jnFbMzWZoo9VbSQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/SFBgyV9jnFbMzWZoo9VbSQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/SFBgyV9jnFbMzWZoo9VbSQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/SFBgyV9jnFbMzWZoo9VbSQ/span.rust-debug index 681f6809b87..d14c1202f6d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/SFBgyV9jnFbMzWZoo9VbSQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/SFBgyV9jnFbMzWZoo9VbSQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #ABCF } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/SFBgyV9jnFbMzWZoo9VbSQ/input.css:1:1 | 1 | a { color: #ABCF } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Ssg_Qhdw7h_c6ZtY52Qe4A/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/Ssg_Qhdw7h_c6ZtY52Qe4A/output.json index b19239c58f4..103dc5c529f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Ssg_Qhdw7h_c6ZtY52Qe4A/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Ssg_Qhdw7h_c6ZtY52Qe4A/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Ssg_Qhdw7h_c6ZtY52Qe4A/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Ssg_Qhdw7h_c6ZtY52Qe4A/span.rust-debug index 23e0fb9c7f9..9a4ce628061 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Ssg_Qhdw7h_c6ZtY52Qe4A/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Ssg_Qhdw7h_c6ZtY52Qe4A/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #112333ff } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/Ssg_Qhdw7h_c6ZtY52Qe4A/input.css:1:1 | 1 | a { color: #112333ff } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Sy2aOxINv1bvZmbK_Pc5Mg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/Sy2aOxINv1bvZmbK_Pc5Mg/output.json index 7d52b930f58..7724557f6b0 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Sy2aOxINv1bvZmbK_Pc5Mg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Sy2aOxINv1bvZmbK_Pc5Mg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 6, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Sy2aOxINv1bvZmbK_Pc5Mg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Sy2aOxINv1bvZmbK_Pc5Mg/span.rust-debug index 8a32d08a018..0071e56f209 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Sy2aOxINv1bvZmbK_Pc5Mg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Sy2aOxINv1bvZmbK_Pc5Mg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | *|* {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/Sy2aOxINv1bvZmbK_Pc5Mg/input.css:1:1 | 1 | *|* {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/T1SOp4KXmIb1WNsyPFEKqg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/T1SOp4KXmIb1WNsyPFEKqg/output.json index fd4fa09377c..8b7bb39158e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/T1SOp4KXmIb1WNsyPFEKqg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/T1SOp4KXmIb1WNsyPFEKqg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/T1SOp4KXmIb1WNsyPFEKqg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/T1SOp4KXmIb1WNsyPFEKqg/span.rust-debug index b2721f25669..778c5762328 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/T1SOp4KXmIb1WNsyPFEKqg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/T1SOp4KXmIb1WNsyPFEKqg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #aabbccde } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/T1SOp4KXmIb1WNsyPFEKqg/input.css:1:1 | 1 | a { color: #aabbccde } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/TdBn3uBF54mw96CCUwpgew/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/TdBn3uBF54mw96CCUwpgew/output.json index 296294a4687..70fa384672f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/TdBn3uBF54mw96CCUwpgew/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/TdBn3uBF54mw96CCUwpgew/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 7, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/TdBn3uBF54mw96CCUwpgew/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/TdBn3uBF54mw96CCUwpgew/span.rust-debug index e7f4e88a326..b53ec76f654 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/TdBn3uBF54mw96CCUwpgew/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/TdBn3uBF54mw96CCUwpgew/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [a|b]{} | ^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/TdBn3uBF54mw96CCUwpgew/input.css:1:1 | 1 | [a|b]{} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/TyMkoZpPOEhvUBOmUhGOXQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/TyMkoZpPOEhvUBOmUhGOXQ/output.json index 129593ed8ec..81be26e814d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/TyMkoZpPOEhvUBOmUhGOXQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/TyMkoZpPOEhvUBOmUhGOXQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 16, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/TyMkoZpPOEhvUBOmUhGOXQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/TyMkoZpPOEhvUBOmUhGOXQ/span.rust-debug index 8e2db0e7b98..8a895feccad 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/TyMkoZpPOEhvUBOmUhGOXQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/TyMkoZpPOEhvUBOmUhGOXQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: \,x } | ^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/TyMkoZpPOEhvUBOmUhGOXQ/input.css:1:1 | 1 | a { value: \,x } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/U-MOOs2vmQ3m-i8XisYj8w/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/U-MOOs2vmQ3m-i8XisYj8w/output.json index fa4675d33b1..bf2f642d238 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/U-MOOs2vmQ3m-i8XisYj8w/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/U-MOOs2vmQ3m-i8XisYj8w/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 13, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/U-MOOs2vmQ3m-i8XisYj8w/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/U-MOOs2vmQ3m-i8XisYj8w/span.rust-debug index d1ceea0aa91..75a66df832a 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/U-MOOs2vmQ3m-i8XisYj8w/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/U-MOOs2vmQ3m-i8XisYj8w/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [b ~= "c"] {} | ^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/U-MOOs2vmQ3m-i8XisYj8w/input.css:1:1 | 1 | [b ~= "c"] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/U2nuhvtnEWZ_kMd6i7EDWA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/U2nuhvtnEWZ_kMd6i7EDWA/output.json index 8dc92d5bbab..2497240465b 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/U2nuhvtnEWZ_kMd6i7EDWA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/U2nuhvtnEWZ_kMd6i7EDWA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 20, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/U2nuhvtnEWZ_kMd6i7EDWA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/U2nuhvtnEWZ_kMd6i7EDWA/span.rust-debug index bdd1f8dee3a..e6196885292 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/U2nuhvtnEWZ_kMd6i7EDWA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/U2nuhvtnEWZ_kMd6i7EDWA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #AABBCD } | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/U2nuhvtnEWZ_kMd6i7EDWA/input.css:1:1 | 1 | a { color: #AABBCD } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/UeHn9b5w6R3dVjrtRCGxkA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/UeHn9b5w6R3dVjrtRCGxkA/output.json index fc3022d8533..70fac18a585 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/UeHn9b5w6R3dVjrtRCGxkA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/UeHn9b5w6R3dVjrtRCGxkA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 5, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/UeHn9b5w6R3dVjrtRCGxkA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/UeHn9b5w6R3dVjrtRCGxkA/span.rust-debug index 2b697b1c58d..9ffcb5cf27e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/UeHn9b5w6R3dVjrtRCGxkA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/UeHn9b5w6R3dVjrtRCGxkA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | |* {} | ^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/UeHn9b5w6R3dVjrtRCGxkA/input.css:1:1 | 1 | |* {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Uuvi9sS4YR_ILpKl0xpfOg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/Uuvi9sS4YR_ILpKl0xpfOg/output.json index 9a72fe5f4fd..2516e6d8ee5 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Uuvi9sS4YR_ILpKl0xpfOg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Uuvi9sS4YR_ILpKl0xpfOg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 24, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Uuvi9sS4YR_ILpKl0xpfOg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Uuvi9sS4YR_ILpKl0xpfOg/span.rust-debug index 16e39af194c..fc0af15e23a 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Uuvi9sS4YR_ILpKl0xpfOg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Uuvi9sS4YR_ILpKl0xpfOg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: url(a\62 c) } | ^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/Uuvi9sS4YR_ILpKl0xpfOg/input.css:1:1 | 1 | a { value: url(a\62 c) } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/V6ATfoZsbJDwKWSnlREl-w/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/V6ATfoZsbJDwKWSnlREl-w/output.json index 7748dc67b32..5a56d042b0a 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/V6ATfoZsbJDwKWSnlREl-w/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/V6ATfoZsbJDwKWSnlREl-w/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 11, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/V6ATfoZsbJDwKWSnlREl-w/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/V6ATfoZsbJDwKWSnlREl-w/span.rust-debug index dac5e86d18c..8d9ccc72474 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/V6ATfoZsbJDwKWSnlREl-w/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/V6ATfoZsbJDwKWSnlREl-w/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [b~="c"] {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/V6ATfoZsbJDwKWSnlREl-w/input.css:1:1 | 1 | [b~="c"] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/W3R-c5DPSkhG9QWYdcFdFg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/W3R-c5DPSkhG9QWYdcFdFg/output.json index 817256ace3e..f2a685fcb7d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/W3R-c5DPSkhG9QWYdcFdFg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/W3R-c5DPSkhG9QWYdcFdFg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/W3R-c5DPSkhG9QWYdcFdFg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/W3R-c5DPSkhG9QWYdcFdFg/span.rust-debug index 27aa7074e69..b843cc768ed 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/W3R-c5DPSkhG9QWYdcFdFg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/W3R-c5DPSkhG9QWYdcFdFg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #AABBCCDD } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/W3R-c5DPSkhG9QWYdcFdFg/input.css:1:1 | 1 | a { color: #AABBCCDD } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/WQWdwW4B4hm60AQgxTU08Q/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/WQWdwW4B4hm60AQgxTU08Q/output.json index 3f417ca4fbd..9c5b30f8561 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/WQWdwW4B4hm60AQgxTU08Q/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/WQWdwW4B4hm60AQgxTU08Q/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 10, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/WQWdwW4B4hm60AQgxTU08Q/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/WQWdwW4B4hm60AQgxTU08Q/span.rust-debug index c1c90451d53..b7dcfc8c0bd 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/WQWdwW4B4hm60AQgxTU08Q/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/WQWdwW4B4hm60AQgxTU08Q/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a::b(c) {} | ^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/WQWdwW4B4hm60AQgxTU08Q/input.css:1:1 | 1 | a::b(c) {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Wb-aVu7CEQfCy1QL2yUrEw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/Wb-aVu7CEQfCy1QL2yUrEw/output.json index 774feff9ba2..424a262ebf6 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Wb-aVu7CEQfCy1QL2yUrEw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Wb-aVu7CEQfCy1QL2yUrEw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 57, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Wb-aVu7CEQfCy1QL2yUrEw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Wb-aVu7CEQfCy1QL2yUrEw/span.rust-debug index 4c0ba34860c..c1c402de654 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Wb-aVu7CEQfCy1QL2yUrEw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Wb-aVu7CEQfCy1QL2yUrEw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5; } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/Wb-aVu7CEQfCy1QL2yUrEw/input.css:1:1 | 1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/WnrbfdZnESKVnJxygl6yYA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/WnrbfdZnESKVnJxygl6yYA/output.json index f2fc824ba5a..307e4da2bcb 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/WnrbfdZnESKVnJxygl6yYA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/WnrbfdZnESKVnJxygl6yYA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 10, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/WnrbfdZnESKVnJxygl6yYA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/WnrbfdZnESKVnJxygl6yYA/span.rust-debug index 17856879bcc..5f34cd8c3a8 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/WnrbfdZnESKVnJxygl6yYA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/WnrbfdZnESKVnJxygl6yYA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a>/**/b {} | ^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/WnrbfdZnESKVnJxygl6yYA/input.css:1:1 | 1 | a>/**/b {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Wplrqmb_IDjNC-o-eqLw4A/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/Wplrqmb_IDjNC-o-eqLw4A/output.json index 3689edc1508..523894d8e4c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Wplrqmb_IDjNC-o-eqLw4A/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Wplrqmb_IDjNC-o-eqLw4A/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Wplrqmb_IDjNC-o-eqLw4A/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Wplrqmb_IDjNC-o-eqLw4A/span.rust-debug index 729e7816bfb..ee5f66c277d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Wplrqmb_IDjNC-o-eqLw4A/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Wplrqmb_IDjNC-o-eqLw4A/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: \,x() } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/Wplrqmb_IDjNC-o-eqLw4A/input.css:1:1 | 1 | a { value: \,x() } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/X-yuwO0x1B-l1Js4JkKJZg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/X-yuwO0x1B-l1Js4JkKJZg/output.json index 3d8c621e40e..aa3aa05143d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/X-yuwO0x1B-l1Js4JkKJZg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/X-yuwO0x1B-l1Js4JkKJZg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/X-yuwO0x1B-l1Js4JkKJZg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/X-yuwO0x1B-l1Js4JkKJZg/span.rust-debug index e15c5bc86d4..b32940807d5 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/X-yuwO0x1B-l1Js4JkKJZg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/X-yuwO0x1B-l1Js4JkKJZg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: +0.0; } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/X-yuwO0x1B-l1Js4JkKJZg/input.css:1:1 | 1 | a { width: +0.0; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/XVtQeQIEHAyQlpmKRigHcg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/XVtQeQIEHAyQlpmKRigHcg/output.json index 2719f7dccbe..e965d89e152 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/XVtQeQIEHAyQlpmKRigHcg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/XVtQeQIEHAyQlpmKRigHcg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 8, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/XVtQeQIEHAyQlpmKRigHcg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/XVtQeQIEHAyQlpmKRigHcg/span.rust-debug index b4aba611d80..36fda8f153e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/XVtQeQIEHAyQlpmKRigHcg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/XVtQeQIEHAyQlpmKRigHcg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a ~ b {} | ^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/XVtQeQIEHAyQlpmKRigHcg/input.css:1:1 | 1 | a ~ b {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/XetGJrWBJuC-NtgpX2eq1Q/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/XetGJrWBJuC-NtgpX2eq1Q/output.json index e599bea86a5..d6d1f1c6ece 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/XetGJrWBJuC-NtgpX2eq1Q/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/XetGJrWBJuC-NtgpX2eq1Q/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 11, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/XetGJrWBJuC-NtgpX2eq1Q/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/XetGJrWBJuC-NtgpX2eq1Q/span.rust-debug index b877d5084a8..c52398361dd 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/XetGJrWBJuC-NtgpX2eq1Q/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/XetGJrWBJuC-NtgpX2eq1Q/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | #\30hash {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/XetGJrWBJuC-NtgpX2eq1Q/input.css:1:1 | 1 | #\30hash {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/YIW6UUMmxrTYJjJ3JSL3uQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/YIW6UUMmxrTYJjJ3JSL3uQ/output.json index 2f2e2776f99..b5c7d4d06a4 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/YIW6UUMmxrTYJjJ3JSL3uQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/YIW6UUMmxrTYJjJ3JSL3uQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 20, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/YIW6UUMmxrTYJjJ3JSL3uQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/YIW6UUMmxrTYJjJ3JSL3uQ/span.rust-debug index 2827d637638..396a44f5fdb 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/YIW6UUMmxrTYJjJ3JSL3uQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/YIW6UUMmxrTYJjJ3JSL3uQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #112234 } | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/YIW6UUMmxrTYJjJ3JSL3uQ/input.css:1:1 | 1 | a { color: #112234 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/YUPpw78_zYmKpAkI2SzNsg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/YUPpw78_zYmKpAkI2SzNsg/output.json index 881c6bcc955..a30dfd6c0d4 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/YUPpw78_zYmKpAkI2SzNsg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/YUPpw78_zYmKpAkI2SzNsg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 19, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/YUPpw78_zYmKpAkI2SzNsg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/YUPpw78_zYmKpAkI2SzNsg/span.rust-debug index 255837b0a10..eaf5551158c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/YUPpw78_zYmKpAkI2SzNsg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/YUPpw78_zYmKpAkI2SzNsg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | :pseudo\2c class {} | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/YUPpw78_zYmKpAkI2SzNsg/input.css:1:1 | 1 | :pseudo\2c class {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Yc70giIIGDIddrjD858dDw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/Yc70giIIGDIddrjD858dDw/output.json index 692ad2ba99b..a04415fa60a 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Yc70giIIGDIddrjD858dDw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Yc70giIIGDIddrjD858dDw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 16, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Yc70giIIGDIddrjD858dDw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Yc70giIIGDIddrjD858dDw/span.rust-debug index 3b19ade7ce0..f3e78dac1a6 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Yc70giIIGDIddrjD858dDw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Yc70giIIGDIddrjD858dDw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: '' } | ^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/Yc70giIIGDIddrjD858dDw/input.css:1:1 | 1 | a { value: '' } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Ys7z8C2qi5O_HM9ElZQrUQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/Ys7z8C2qi5O_HM9ElZQrUQ/output.json index 1058c4d144f..6a756e35b7c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Ys7z8C2qi5O_HM9ElZQrUQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Ys7z8C2qi5O_HM9ElZQrUQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 17, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Ys7z8C2qi5O_HM9ElZQrUQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Ys7z8C2qi5O_HM9ElZQrUQ/span.rust-debug index b399c8c24c5..f48fc5ae8ec 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Ys7z8C2qi5O_HM9ElZQrUQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Ys7z8C2qi5O_HM9ElZQrUQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: #\,x } | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/Ys7z8C2qi5O_HM9ElZQrUQ/input.css:1:1 | 1 | a { value: #\,x } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Z4J4sVA4UnGhTMiN5tdMMQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/Z4J4sVA4UnGhTMiN5tdMMQ/output.json index 494dffb90ec..a8134dfc161 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Z4J4sVA4UnGhTMiN5tdMMQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Z4J4sVA4UnGhTMiN5tdMMQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/Z4J4sVA4UnGhTMiN5tdMMQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/Z4J4sVA4UnGhTMiN5tdMMQ/span.rust-debug index 96939a50d28..2b1f4dd397e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/Z4J4sVA4UnGhTMiN5tdMMQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/Z4J4sVA4UnGhTMiN5tdMMQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { padding: 0 1 0 1 } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/Z4J4sVA4UnGhTMiN5tdMMQ/input.css:1:1 | 1 | a { padding: 0 1 0 1 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/_APxY5Pe47Bb71-CwD1nhw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/_APxY5Pe47Bb71-CwD1nhw/output.json index b284fe0c2b9..f1fc96c5ad7 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/_APxY5Pe47Bb71-CwD1nhw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/_APxY5Pe47Bb71-CwD1nhw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/_APxY5Pe47Bb71-CwD1nhw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/_APxY5Pe47Bb71-CwD1nhw/span.rust-debug index 63ff58c4334..48ae1213262 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/_APxY5Pe47Bb71-CwD1nhw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/_APxY5Pe47Bb71-CwD1nhw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #AABBCDFF } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/_APxY5Pe47Bb71-CwD1nhw/input.css:1:1 | 1 | a { color: #AABBCDFF } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/_U4zAUbS93Xo7_tJOolGuA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/_U4zAUbS93Xo7_tJOolGuA/output.json index b6e61f42575..12dd103bcf1 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/_U4zAUbS93Xo7_tJOolGuA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/_U4zAUbS93Xo7_tJOolGuA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 17, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/_U4zAUbS93Xo7_tJOolGuA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/_U4zAUbS93Xo7_tJOolGuA/span.rust-debug index 0a97b90e829..5dc6bbc461a 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/_U4zAUbS93Xo7_tJOolGuA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/_U4zAUbS93Xo7_tJOolGuA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #f00 } | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/_U4zAUbS93Xo7_tJOolGuA/input.css:1:1 | 1 | a { color: #f00 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/_XB1oeHz4bZ49LCE2cBI6g/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/_XB1oeHz4bZ49LCE2cBI6g/output.json index 999a769725f..dd80a7f80ff 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/_XB1oeHz4bZ49LCE2cBI6g/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/_XB1oeHz4bZ49LCE2cBI6g/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 11, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/_XB1oeHz4bZ49LCE2cBI6g/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/_XB1oeHz4bZ49LCE2cBI6g/span.rust-debug index a4ee0e991de..7f72aa1f7f5 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/_XB1oeHz4bZ49LCE2cBI6g/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/_XB1oeHz4bZ49LCE2cBI6g/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [*|attr] {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/_XB1oeHz4bZ49LCE2cBI6g/input.css:1:1 | 1 | [*|attr] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/_d22bZcPKDgNEKSyJ2NRsQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/_d22bZcPKDgNEKSyJ2NRsQ/output.json index 91b1de1f5f0..9d15b6b3dae 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/_d22bZcPKDgNEKSyJ2NRsQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/_d22bZcPKDgNEKSyJ2NRsQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 10, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/_d22bZcPKDgNEKSyJ2NRsQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/_d22bZcPKDgNEKSyJ2NRsQ/span.rust-debug index 09c6030c713..572e2b10e6a 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/_d22bZcPKDgNEKSyJ2NRsQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/_d22bZcPKDgNEKSyJ2NRsQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | *::b(c) {} | ^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/_d22bZcPKDgNEKSyJ2NRsQ/input.css:1:1 | 1 | *::b(c) {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/_e6qpZBWfowEh1P3Wn3orA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/_e6qpZBWfowEh1P3Wn3orA/output.json index 94e541d6503..8e57ee2b178 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/_e6qpZBWfowEh1P3Wn3orA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/_e6qpZBWfowEh1P3Wn3orA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 19, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/_e6qpZBWfowEh1P3Wn3orA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/_e6qpZBWfowEh1P3Wn3orA/span.rust-debug index 10049961b3b..3e795348913 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/_e6qpZBWfowEh1P3Wn3orA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/_e6qpZBWfowEh1P3Wn3orA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | :pseudo(cl\61ss) {} | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/_e6qpZBWfowEh1P3Wn3orA/input.css:1:1 | 1 | :pseudo(cl\61ss) {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/_qcmYeHAxw35hMnF2IST8A/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/_qcmYeHAxw35hMnF2IST8A/output.json index 8ba3f809713..c9399931664 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/_qcmYeHAxw35hMnF2IST8A/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/_qcmYeHAxw35hMnF2IST8A/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 12, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/_qcmYeHAxw35hMnF2IST8A/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/_qcmYeHAxw35hMnF2IST8A/span.rust-debug index b2eac30c0b8..09640a96155 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/_qcmYeHAxw35hMnF2IST8A/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/_qcmYeHAxw35hMnF2IST8A/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [b = "c"] {} | ^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/_qcmYeHAxw35hMnF2IST8A/input.css:1:1 | 1 | [b = "c"] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/a0Yurt7E7InOYieD7nMCXg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/a0Yurt7E7InOYieD7nMCXg/output.json index 53bb411bf7a..f9aae98a66d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/a0Yurt7E7InOYieD7nMCXg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/a0Yurt7E7InOYieD7nMCXg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/a0Yurt7E7InOYieD7nMCXg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/a0Yurt7E7InOYieD7nMCXg/span.rust-debug index 52dcfa773de..b6398c97168 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/a0Yurt7E7InOYieD7nMCXg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/a0Yurt7E7InOYieD7nMCXg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #AABCCCFF } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/a0Yurt7E7InOYieD7nMCXg/input.css:1:1 | 1 | a { color: #AABCCCFF } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/a7KElWOMF9ilrSsoliHkcg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/a7KElWOMF9ilrSsoliHkcg/output.json index 4852ad5a141..66eae26e12b 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/a7KElWOMF9ilrSsoliHkcg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/a7KElWOMF9ilrSsoliHkcg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/a7KElWOMF9ilrSsoliHkcg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/a7KElWOMF9ilrSsoliHkcg/span.rust-debug index b3d87b9dcb6..6a513f28c7e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/a7KElWOMF9ilrSsoliHkcg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/a7KElWOMF9ilrSsoliHkcg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #AABBCDDD } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/a7KElWOMF9ilrSsoliHkcg/input.css:1:1 | 1 | a { color: #AABBCDDD } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/aEF_NRb2u-g7UzHxaKpOfA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/aEF_NRb2u-g7UzHxaKpOfA/output.json index 961c4862a86..92e565eb90f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/aEF_NRb2u-g7UzHxaKpOfA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/aEF_NRb2u-g7UzHxaKpOfA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 11, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/aEF_NRb2u-g7UzHxaKpOfA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/aEF_NRb2u-g7UzHxaKpOfA/span.rust-debug index 49dac350548..69108f5bdfe 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/aEF_NRb2u-g7UzHxaKpOfA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/aEF_NRb2u-g7UzHxaKpOfA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a/**/[b] {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/aEF_NRb2u-g7UzHxaKpOfA/input.css:1:1 | 1 | a/**/[b] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/aVG5R30iWKuuw8iOGrgVmw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/aVG5R30iWKuuw8iOGrgVmw/output.json index 682f6242a6d..69fb13881af 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/aVG5R30iWKuuw8iOGrgVmw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/aVG5R30iWKuuw8iOGrgVmw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 6, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/aVG5R30iWKuuw8iOGrgVmw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/aVG5R30iWKuuw8iOGrgVmw/span.rust-debug index 736b4aa4d1c..97b882d4eb0 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/aVG5R30iWKuuw8iOGrgVmw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/aVG5R30iWKuuw8iOGrgVmw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a|b {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/aVG5R30iWKuuw8iOGrgVmw/input.css:1:1 | 1 | a|b {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/avMO0PRST3qaooxANKWiIw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/avMO0PRST3qaooxANKWiIw/output.json index 95db2e01926..c1565b6e155 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/avMO0PRST3qaooxANKWiIw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/avMO0PRST3qaooxANKWiIw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 21, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/avMO0PRST3qaooxANKWiIw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/avMO0PRST3qaooxANKWiIw/span.rust-debug index 352f797244f..2dc71df7e4d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/avMO0PRST3qaooxANKWiIw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/avMO0PRST3qaooxANKWiIw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | .decl { a: b; c: d; } | ^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/avMO0PRST3qaooxANKWiIw/input.css:1:1 | 1 | .decl { a: b; c: d; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/axTS8OYqxbJ3cRQm9h4ZYA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/axTS8OYqxbJ3cRQm9h4ZYA/output.json index 52680364947..2cdd36919da 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/axTS8OYqxbJ3cRQm9h4ZYA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/axTS8OYqxbJ3cRQm9h4ZYA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 21, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/axTS8OYqxbJ3cRQm9h4ZYA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/axTS8OYqxbJ3cRQm9h4ZYA/span.rust-debug index d30a4aa2e03..93be4acfa4d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/axTS8OYqxbJ3cRQm9h4ZYA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/axTS8OYqxbJ3cRQm9h4ZYA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: '\61 bc' } | ^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/axTS8OYqxbJ3cRQm9h4ZYA/input.css:1:1 | 1 | a { value: '\61 bc' } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/b102IE1MrM3aGTKCRrSU6Q/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/b102IE1MrM3aGTKCRrSU6Q/output.json index 0d269280991..32827fb12aa 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/b102IE1MrM3aGTKCRrSU6Q/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/b102IE1MrM3aGTKCRrSU6Q/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/b102IE1MrM3aGTKCRrSU6Q/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/b102IE1MrM3aGTKCRrSU6Q/span.rust-debug index 02bfa59cecf..a85e75403ff 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/b102IE1MrM3aGTKCRrSU6Q/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/b102IE1MrM3aGTKCRrSU6Q/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #ff0000ff } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/b102IE1MrM3aGTKCRrSU6Q/input.css:1:1 | 1 | a { color: #ff0000ff } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/b2m1STf0F5CKity6Nd4vmQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/b2m1STf0F5CKity6Nd4vmQ/output.json index 46a2186c082..3e019afc4a8 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/b2m1STf0F5CKity6Nd4vmQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/b2m1STf0F5CKity6Nd4vmQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/b2m1STf0F5CKity6Nd4vmQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/b2m1STf0F5CKity6Nd4vmQ/span.rust-debug index da9d8efbce3..8a0b5455eda 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/b2m1STf0F5CKity6Nd4vmQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/b2m1STf0F5CKity6Nd4vmQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #aabbccff } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/b2m1STf0F5CKity6Nd4vmQ/input.css:1:1 | 1 | a { color: #aabbccff } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/b6WBp-DsAKNB9xg6pcRTzQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/b6WBp-DsAKNB9xg6pcRTzQ/output.json index 6d14ea72248..f2613753841 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/b6WBp-DsAKNB9xg6pcRTzQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/b6WBp-DsAKNB9xg6pcRTzQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 15, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/b6WBp-DsAKNB9xg6pcRTzQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/b6WBp-DsAKNB9xg6pcRTzQ/span.rust-debug index eba993fa65d..3896f3f3a37 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/b6WBp-DsAKNB9xg6pcRTzQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/b6WBp-DsAKNB9xg6pcRTzQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | .decl { a: b; } | ^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/b6WBp-DsAKNB9xg6pcRTzQ/input.css:1:1 | 1 | .decl { a: b; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/bO5VdzMYGbUbK2CCYCMKTA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/bO5VdzMYGbUbK2CCYCMKTA/output.json index 5661ccf4f08..f5911f7e2b0 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/bO5VdzMYGbUbK2CCYCMKTA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/bO5VdzMYGbUbK2CCYCMKTA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 14, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/bO5VdzMYGbUbK2CCYCMKTA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/bO5VdzMYGbUbK2CCYCMKTA/span.rust-debug index 7894902729c..756caa77e31 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/bO5VdzMYGbUbK2CCYCMKTA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/bO5VdzMYGbUbK2CCYCMKTA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | .decl { a: b } | ^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/bO5VdzMYGbUbK2CCYCMKTA/input.css:1:1 | 1 | .decl { a: b } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/bdiLSVQWZCfQNNwD_OM6qA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/bdiLSVQWZCfQNNwD_OM6qA/output.json index d791c24f064..6c5080d7099 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/bdiLSVQWZCfQNNwD_OM6qA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/bdiLSVQWZCfQNNwD_OM6qA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 20, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/bdiLSVQWZCfQNNwD_OM6qA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/bdiLSVQWZCfQNNwD_OM6qA/span.rust-debug index 0fbd5003042..42c5d16c8e4 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/bdiLSVQWZCfQNNwD_OM6qA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/bdiLSVQWZCfQNNwD_OM6qA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: #\68ash } | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/bdiLSVQWZCfQNNwD_OM6qA/input.css:1:1 | 1 | a { value: #\68ash } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/biImEvafuG5pEuEW8LgCCw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/biImEvafuG5pEuEW8LgCCw/output.json index c69ebd89f70..e438257c57b 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/biImEvafuG5pEuEW8LgCCw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/biImEvafuG5pEuEW8LgCCw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 19, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/biImEvafuG5pEuEW8LgCCw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/biImEvafuG5pEuEW8LgCCw/span.rust-debug index d63d2804a74..1931ab50c27 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/biImEvafuG5pEuEW8LgCCw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/biImEvafuG5pEuEW8LgCCw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: f\6e() } | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/biImEvafuG5pEuEW8LgCCw/input.css:1:1 | 1 | a { value: f\6e() } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/btdQp-3m090Q73vMHSpKgw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/btdQp-3m090Q73vMHSpKgw/output.json index 34ea3e363c3..6b6c5abc66b 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/btdQp-3m090Q73vMHSpKgw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/btdQp-3m090Q73vMHSpKgw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 10, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/btdQp-3m090Q73vMHSpKgw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/btdQp-3m090Q73vMHSpKgw/span.rust-debug index 779e75b1e29..c58ee71e2a2 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/btdQp-3m090Q73vMHSpKgw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/btdQp-3m090Q73vMHSpKgw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | \2a|div {} | ^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/btdQp-3m090Q73vMHSpKgw/input.css:1:1 | 1 | \2a|div {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/cFk0V1dktTRk2wWOux0Y9A/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/cFk0V1dktTRk2wWOux0Y9A/output.json index 38aea1e2563..807de0944a5 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/cFk0V1dktTRk2wWOux0Y9A/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/cFk0V1dktTRk2wWOux0Y9A/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 31, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/cFk0V1dktTRk2wWOux0Y9A/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/cFk0V1dktTRk2wWOux0Y9A/span.rust-debug index 5248bdb88f9..2daf0fb3b84 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/cFk0V1dktTRk2wWOux0Y9A/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/cFk0V1dktTRk2wWOux0Y9A/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a:after { content: '\1010101' } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/cFk0V1dktTRk2wWOux0Y9A/input.css:1:1 | 1 | a:after { content: '\1010101' } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/cGdUJvMcb_06jPxvv8lGkg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/cGdUJvMcb_06jPxvv8lGkg/output.json index 23869b73931..cac9c78f57f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/cGdUJvMcb_06jPxvv8lGkg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/cGdUJvMcb_06jPxvv8lGkg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/cGdUJvMcb_06jPxvv8lGkg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/cGdUJvMcb_06jPxvv8lGkg/span.rust-debug index 9040b7ab22d..e9564689453 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/cGdUJvMcb_06jPxvv8lGkg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/cGdUJvMcb_06jPxvv8lGkg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: +.0%; } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/cGdUJvMcb_06jPxvv8lGkg/input.css:1:1 | 1 | a { width: +.0%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/ccwWSeXA2f9cTFtUANZA8Q/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/ccwWSeXA2f9cTFtUANZA8Q/output.json index 7c7c4d1a3bd..85cb06d05a9 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/ccwWSeXA2f9cTFtUANZA8Q/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/ccwWSeXA2f9cTFtUANZA8Q/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 19, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/ccwWSeXA2f9cTFtUANZA8Q/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/ccwWSeXA2f9cTFtUANZA8Q/span.rust-debug index 927e2422ddd..b1c1c741d2a 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/ccwWSeXA2f9cTFtUANZA8Q/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/ccwWSeXA2f9cTFtUANZA8Q/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: +0.0%; } | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/ccwWSeXA2f9cTFtUANZA8Q/input.css:1:1 | 1 | a { width: +0.0%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/cfNrGQbCQ18L8pQmD7lBZQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/cfNrGQbCQ18L8pQmD7lBZQ/output.json index c8516fd0820..fe75f2c0231 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/cfNrGQbCQ18L8pQmD7lBZQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/cfNrGQbCQ18L8pQmD7lBZQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 42, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/cfNrGQbCQ18L8pQmD7lBZQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/cfNrGQbCQ18L8pQmD7lBZQ/span.rust-debug index 9649c53e698..6873b5b2cc7 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/cfNrGQbCQ18L8pQmD7lBZQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/cfNrGQbCQ18L8pQmD7lBZQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: red; color: green; color: red } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/cfNrGQbCQ18L8pQmD7lBZQ/input.css:1:1 | 1 | a { color: red; color: green; color: red } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/coHEK8Dkb2Zflw3JwafU5Q/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/coHEK8Dkb2Zflw3JwafU5Q/output.json index a9408ff733d..5afcf058c11 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/coHEK8Dkb2Zflw3JwafU5Q/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/coHEK8Dkb2Zflw3JwafU5Q/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 11, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/coHEK8Dkb2Zflw3JwafU5Q/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/coHEK8Dkb2Zflw3JwafU5Q/span.rust-debug index ce8920eda72..87e9ed9f34f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/coHEK8Dkb2Zflw3JwafU5Q/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/coHEK8Dkb2Zflw3JwafU5Q/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [b$="c"] {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/coHEK8Dkb2Zflw3JwafU5Q/input.css:1:1 | 1 | [b$="c"] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/cpoL0JfVO7TLrlcAga939A/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/cpoL0JfVO7TLrlcAga939A/output.json index 428b30f1b2c..49975740ea9 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/cpoL0JfVO7TLrlcAga939A/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/cpoL0JfVO7TLrlcAga939A/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 11, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/cpoL0JfVO7TLrlcAga939A/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/cpoL0JfVO7TLrlcAga939A/span.rust-debug index b6baff9eb96..1b43d4fe249 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/cpoL0JfVO7TLrlcAga939A/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/cpoL0JfVO7TLrlcAga939A/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [b^="c"] {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/cpoL0JfVO7TLrlcAga939A/input.css:1:1 | 1 | [b^="c"] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/cxYYDM0_rXbkvaqi8UPWOg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/cxYYDM0_rXbkvaqi8UPWOg/output.json index 788b721303d..aa1cd676f76 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/cxYYDM0_rXbkvaqi8UPWOg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/cxYYDM0_rXbkvaqi8UPWOg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/cxYYDM0_rXbkvaqi8UPWOg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/cxYYDM0_rXbkvaqi8UPWOg/span.rust-debug index 01be3efd193..25bc3bf43a0 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/cxYYDM0_rXbkvaqi8UPWOg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/cxYYDM0_rXbkvaqi8UPWOg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #aabbcddd } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/cxYYDM0_rXbkvaqi8UPWOg/input.css:1:1 | 1 | a { color: #aabbcddd } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/d1BWbOHfSbCE8-_qEz-luA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/d1BWbOHfSbCE8-_qEz-luA/output.json index 1ee0d4d7534..685b0af3ada 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/d1BWbOHfSbCE8-_qEz-luA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/d1BWbOHfSbCE8-_qEz-luA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 10, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/d1BWbOHfSbCE8-_qEz-luA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/d1BWbOHfSbCE8-_qEz-luA/span.rust-debug index 8ef4029d214..d28a5e0a357 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/d1BWbOHfSbCE8-_qEz-luA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/d1BWbOHfSbCE8-_qEz-luA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a:b(:c) {} | ^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/d1BWbOHfSbCE8-_qEz-luA/input.css:1:1 | 1 | a:b(:c) {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/d6iTYxGk5HHi4hIZcn73Bw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/d6iTYxGk5HHi4hIZcn73Bw/output.json index 8bad26ca6ea..56aca2592b4 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/d6iTYxGk5HHi4hIZcn73Bw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/d6iTYxGk5HHi4hIZcn73Bw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 27, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/d6iTYxGk5HHi4hIZcn73Bw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/d6iTYxGk5HHi4hIZcn73Bw/span.rust-debug index 73d975fe0c0..06bd8c75b27 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/d6iTYxGk5HHi4hIZcn73Bw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/d6iTYxGk5HHi4hIZcn73Bw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a:after { content: 'a\ b' } | ^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/d6iTYxGk5HHi4hIZcn73Bw/input.css:1:1 | 1 | a:after { content: 'a\ b' } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/d8Q6MceynW9-IQJ4l0OGzA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/d8Q6MceynW9-IQJ4l0OGzA/output.json index 89141952586..0ea22666562 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/d8Q6MceynW9-IQJ4l0OGzA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/d8Q6MceynW9-IQJ4l0OGzA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 17, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/d8Q6MceynW9-IQJ4l0OGzA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/d8Q6MceynW9-IQJ4l0OGzA/span.rust-debug index 7b1f3ee85a1..4950b76b0b6 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/d8Q6MceynW9-IQJ4l0OGzA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/d8Q6MceynW9-IQJ4l0OGzA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: @x\, } | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/d8Q6MceynW9-IQJ4l0OGzA/input.css:1:1 | 1 | a { value: @x\, } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/dCIAD8Ab98J4V9rGaJvZlw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/dCIAD8Ab98J4V9rGaJvZlw/output.json index e1340b17ecc..c92dadb0aed 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/dCIAD8Ab98J4V9rGaJvZlw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/dCIAD8Ab98J4V9rGaJvZlw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 20, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/dCIAD8Ab98J4V9rGaJvZlw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/dCIAD8Ab98J4V9rGaJvZlw/span.rust-debug index 883729f3a2c..62138830021 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/dCIAD8Ab98J4V9rGaJvZlw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/dCIAD8Ab98J4V9rGaJvZlw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: url(\,) } | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/dCIAD8Ab98J4V9rGaJvZlw/input.css:1:1 | 1 | a { value: url(\,) } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/dVUzkh7NtbXySLzWGW0t9g/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/dVUzkh7NtbXySLzWGW0t9g/output.json index 1191e61d5f6..a357e05df5a 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/dVUzkh7NtbXySLzWGW0t9g/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/dVUzkh7NtbXySLzWGW0t9g/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 16, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, @@ -105,13 +105,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 17, "end": 35, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 17, @@ -203,13 +203,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 36, "end": 52, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 36, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/dVUzkh7NtbXySLzWGW0t9g/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/dVUzkh7NtbXySLzWGW0t9g/span.rust-debug index af5f15d5bae..adc9da007ad 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/dVUzkh7NtbXySLzWGW0t9g/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/dVUzkh7NtbXySLzWGW0t9g/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: red } a { color: green } a { color: red } | ^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/dVUzkh7NtbXySLzWGW0t9g/input.css:1:1 | 1 | a { color: red } a { color: green } a { color: red } @@ -82,7 +82,7 @@ error: Rule 1 | a { color: red } a { color: green } a { color: red } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/dVUzkh7NtbXySLzWGW0t9g/input.css:1:18 | 1 | a { color: red } a { color: green } a { color: red } @@ -154,7 +154,7 @@ error: Rule 1 | a { color: red } a { color: green } a { color: red } | ^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/dVUzkh7NtbXySLzWGW0t9g/input.css:1:37 | 1 | a { color: red } a { color: green } a { color: red } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/dnJiFdC_77rVfPM-yerzTQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/dnJiFdC_77rVfPM-yerzTQ/output.json index e9d5af4be27..f642ea7b5f5 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/dnJiFdC_77rVfPM-yerzTQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/dnJiFdC_77rVfPM-yerzTQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 6, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/dnJiFdC_77rVfPM-yerzTQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/dnJiFdC_77rVfPM-yerzTQ/span.rust-debug index 37de0f25aa3..ffab529866f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/dnJiFdC_77rVfPM-yerzTQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/dnJiFdC_77rVfPM-yerzTQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [b] {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/dnJiFdC_77rVfPM-yerzTQ/input.css:1:1 | 1 | [b] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/dqE2h21N1vX-ivcowP16dQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/dqE2h21N1vX-ivcowP16dQ/output.json index 3a4553cbbd5..25adac363b0 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/dqE2h21N1vX-ivcowP16dQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/dqE2h21N1vX-ivcowP16dQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 11, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/dqE2h21N1vX-ivcowP16dQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/dqE2h21N1vX-ivcowP16dQ/span.rust-debug index cd6bd954169..9e0790353de 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/dqE2h21N1vX-ivcowP16dQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/dqE2h21N1vX-ivcowP16dQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | .cl\61ss {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/dqE2h21N1vX-ivcowP16dQ/input.css:1:1 | 1 | .cl\61ss {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/eBC_tv-_FNqjWVMq-no99A/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/eBC_tv-_FNqjWVMq-no99A/output.json index 22cf0ffeb9d..02f240fc6c1 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/eBC_tv-_FNqjWVMq-no99A/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/eBC_tv-_FNqjWVMq-no99A/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 4, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/eBC_tv-_FNqjWVMq-no99A/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/eBC_tv-_FNqjWVMq-no99A/span.rust-debug index d4d7e35ed8d..63a689fccf6 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/eBC_tv-_FNqjWVMq-no99A/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/eBC_tv-_FNqjWVMq-no99A/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | * {} | ^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/eBC_tv-_FNqjWVMq-no99A/input.css:1:1 | 1 | * {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/eHdhrm6W2iHKQegxH7uEgw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/eHdhrm6W2iHKQegxH7uEgw/output.json index ab34fb22be7..966925a4188 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/eHdhrm6W2iHKQegxH7uEgw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/eHdhrm6W2iHKQegxH7uEgw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/eHdhrm6W2iHKQegxH7uEgw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/eHdhrm6W2iHKQegxH7uEgw/span.rust-debug index 8d621df2797..24e62253dd8 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/eHdhrm6W2iHKQegxH7uEgw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/eHdhrm6W2iHKQegxH7uEgw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: .00%; } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/eHdhrm6W2iHKQegxH7uEgw/input.css:1:1 | 1 | a { width: .00%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/eRzlGAuJZZYbPU6hnTADoA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/eRzlGAuJZZYbPU6hnTADoA/output.json index 508bb9e34b2..128d0b9f42f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/eRzlGAuJZZYbPU6hnTADoA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/eRzlGAuJZZYbPU6hnTADoA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 11, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/eRzlGAuJZZYbPU6hnTADoA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/eRzlGAuJZZYbPU6hnTADoA/span.rust-debug index 3a6d5b3e4cb..7183b78b830 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/eRzlGAuJZZYbPU6hnTADoA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/eRzlGAuJZZYbPU6hnTADoA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | #\2d 123 {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/eRzlGAuJZZYbPU6hnTADoA/input.css:1:1 | 1 | #\2d 123 {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/eVSpM_pYsIvyyewUkjTa2A/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/eVSpM_pYsIvyyewUkjTa2A/output.json index 82d6165aa5c..a4ae85fd800 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/eVSpM_pYsIvyyewUkjTa2A/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/eVSpM_pYsIvyyewUkjTa2A/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/eVSpM_pYsIvyyewUkjTa2A/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/eVSpM_pYsIvyyewUkjTa2A/span.rust-debug index 7fc5824c159..9582687e68e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/eVSpM_pYsIvyyewUkjTa2A/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/eVSpM_pYsIvyyewUkjTa2A/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #12223344 } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/eVSpM_pYsIvyyewUkjTa2A/input.css:1:1 | 1 | a { color: #12223344 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/eWp7_8m3btY6p4erQ5c2JQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/eWp7_8m3btY6p4erQ5c2JQ/output.json index d82fd9f2c12..78c0db9622e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/eWp7_8m3btY6p4erQ5c2JQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/eWp7_8m3btY6p4erQ5c2JQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 20, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/eWp7_8m3btY6p4erQ5c2JQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/eWp7_8m3btY6p4erQ5c2JQ/span.rust-debug index 77aac1fe530..5973f206fc6 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/eWp7_8m3btY6p4erQ5c2JQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/eWp7_8m3btY6p4erQ5c2JQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: '\61bc' } | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/eWp7_8m3btY6p4erQ5c2JQ/input.css:1:1 | 1 | a { value: '\61bc' } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/e_FDMPgmGFzIY3W0EbjxHA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/e_FDMPgmGFzIY3W0EbjxHA/output.json index 9539b306f2c..dce1f90e852 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/e_FDMPgmGFzIY3W0EbjxHA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/e_FDMPgmGFzIY3W0EbjxHA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 14, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/e_FDMPgmGFzIY3W0EbjxHA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/e_FDMPgmGFzIY3W0EbjxHA/span.rust-debug index 670345a7b40..9da1d834f79 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/e_FDMPgmGFzIY3W0EbjxHA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/e_FDMPgmGFzIY3W0EbjxHA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [\6es|attr] {} | ^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/e_FDMPgmGFzIY3W0EbjxHA/input.css:1:1 | 1 | [\6es|attr] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/egyt9Hk9xnn2Xfbi3Ckfrg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/egyt9Hk9xnn2Xfbi3Ckfrg/output.json index 30d6f2fc0d3..c1a7b2b3520 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/egyt9Hk9xnn2Xfbi3Ckfrg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/egyt9Hk9xnn2Xfbi3Ckfrg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 17, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/egyt9Hk9xnn2Xfbi3Ckfrg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/egyt9Hk9xnn2Xfbi3Ckfrg/span.rust-debug index e6a031be746..d8de9a7905c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/egyt9Hk9xnn2Xfbi3Ckfrg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/egyt9Hk9xnn2Xfbi3Ckfrg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: +.0; } | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/egyt9Hk9xnn2Xfbi3Ckfrg/input.css:1:1 | 1 | a { width: +.0; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/eivsIn6ub-xYiqErLqd8oA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/eivsIn6ub-xYiqErLqd8oA/output.json index 8ee2643b33f..622de14c5ec 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/eivsIn6ub-xYiqErLqd8oA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/eivsIn6ub-xYiqErLqd8oA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/eivsIn6ub-xYiqErLqd8oA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/eivsIn6ub-xYiqErLqd8oA/span.rust-debug index 1404dcfcf3c..7dc30ba7f5c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/eivsIn6ub-xYiqErLqd8oA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/eivsIn6ub-xYiqErLqd8oA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: #\2cx } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/eivsIn6ub-xYiqErLqd8oA/input.css:1:1 | 1 | a { value: #\2cx } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/fT3vLBT7xnGwPlQ-kXdN1g/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/fT3vLBT7xnGwPlQ-kXdN1g/output.json index 70ab7cedbc3..ab99e98ebef 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/fT3vLBT7xnGwPlQ-kXdN1g/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/fT3vLBT7xnGwPlQ-kXdN1g/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 11, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/fT3vLBT7xnGwPlQ-kXdN1g/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/fT3vLBT7xnGwPlQ-kXdN1g/span.rust-debug index 4ff2d33c838..d3eb95dd197 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/fT3vLBT7xnGwPlQ-kXdN1g/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/fT3vLBT7xnGwPlQ-kXdN1g/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | #\61hash {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/fT3vLBT7xnGwPlQ-kXdN1g/input.css:1:1 | 1 | #\61hash {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/fTZzFds73kLZoyY9Y2gZdQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/fTZzFds73kLZoyY9Y2gZdQ/output.json index 96681ff4263..c8f847e5fb9 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/fTZzFds73kLZoyY9Y2gZdQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/fTZzFds73kLZoyY9Y2gZdQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/fTZzFds73kLZoyY9Y2gZdQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/fTZzFds73kLZoyY9Y2gZdQ/span.rust-debug index 2916634c06e..165e6d08aae 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/fTZzFds73kLZoyY9Y2gZdQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/fTZzFds73kLZoyY9Y2gZdQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #11223345 } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/fTZzFds73kLZoyY9Y2gZdQ/input.css:1:1 | 1 | a { color: #11223345 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/fYJdtIZOdQKTLI8JJC2b_g/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/fYJdtIZOdQKTLI8JJC2b_g/output.json index 1718a4f96cb..172c0165f54 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/fYJdtIZOdQKTLI8JJC2b_g/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/fYJdtIZOdQKTLI8JJC2b_g/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 12, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/fYJdtIZOdQKTLI8JJC2b_g/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/fYJdtIZOdQKTLI8JJC2b_g/span.rust-debug index b48c316ade3..35f8488a1d8 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/fYJdtIZOdQKTLI8JJC2b_g/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/fYJdtIZOdQKTLI8JJC2b_g/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [a|b|="c"]{} | ^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/fYJdtIZOdQKTLI8JJC2b_g/input.css:1:1 | 1 | [a|b|="c"]{} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/fe2WQQLV9qt16pYQLzZrpw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/fe2WQQLV9qt16pYQLzZrpw/output.json index fa772b215b2..67b623de42c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/fe2WQQLV9qt16pYQLzZrpw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/fe2WQQLV9qt16pYQLzZrpw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 12, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/fe2WQQLV9qt16pYQLzZrpw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/fe2WQQLV9qt16pYQLzZrpw/span.rust-debug index 86da491be76..8a6ade9cd5f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/fe2WQQLV9qt16pYQLzZrpw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/fe2WQQLV9qt16pYQLzZrpw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [b="c d"] {} | ^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/fe2WQQLV9qt16pYQLzZrpw/input.css:1:1 | 1 | [b="c d"] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/fmt94qCRfRXbpej5kzLZUw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/fmt94qCRfRXbpej5kzLZUw/output.json index efed24078e6..96287f86015 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/fmt94qCRfRXbpej5kzLZUw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/fmt94qCRfRXbpej5kzLZUw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 21, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/fmt94qCRfRXbpej5kzLZUw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/fmt94qCRfRXbpej5kzLZUw/span.rust-debug index 17e4bd18192..0bcd855a965 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/fmt94qCRfRXbpej5kzLZUw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/fmt94qCRfRXbpej5kzLZUw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: url(\2c) } | ^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/fmt94qCRfRXbpej5kzLZUw/input.css:1:1 | 1 | a { value: url(\2c) } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/fp9AcaoyGYHGTzXDXcy_ZQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/fp9AcaoyGYHGTzXDXcy_ZQ/output.json index a569b3be834..d225d92704c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/fp9AcaoyGYHGTzXDXcy_ZQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/fp9AcaoyGYHGTzXDXcy_ZQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 13, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/fp9AcaoyGYHGTzXDXcy_ZQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/fp9AcaoyGYHGTzXDXcy_ZQ/span.rust-debug index b3768f66e33..a0cf5e4a363 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/fp9AcaoyGYHGTzXDXcy_ZQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/fp9AcaoyGYHGTzXDXcy_ZQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [b *= "c"] {} | ^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/fp9AcaoyGYHGTzXDXcy_ZQ/input.css:1:1 | 1 | [b *= "c"] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/ftc5-zf_sliOrFRRBGGS-g/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/ftc5-zf_sliOrFRRBGGS-g/output.json index b5c0ef4209f..dabd0e6cfc4 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/ftc5-zf_sliOrFRRBGGS-g/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/ftc5-zf_sliOrFRRBGGS-g/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/ftc5-zf_sliOrFRRBGGS-g/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/ftc5-zf_sliOrFRRBGGS-g/span.rust-debug index d48d497c533..c6c38ab13f6 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/ftc5-zf_sliOrFRRBGGS-g/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/ftc5-zf_sliOrFRRBGGS-g/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #122233ff } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/ftc5-zf_sliOrFRRBGGS-g/input.css:1:1 | 1 | a { color: #122233ff } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/fxosM7xcuYbDyErN-ODVbw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/fxosM7xcuYbDyErN-ODVbw/output.json index 1afc4991247..2cb478016bc 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/fxosM7xcuYbDyErN-ODVbw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/fxosM7xcuYbDyErN-ODVbw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 11, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/fxosM7xcuYbDyErN-ODVbw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/fxosM7xcuYbDyErN-ODVbw/span.rust-debug index b82a1ceb586..93078027b8c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/fxosM7xcuYbDyErN-ODVbw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/fxosM7xcuYbDyErN-ODVbw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [b|="c"] {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/fxosM7xcuYbDyErN-ODVbw/input.css:1:1 | 1 | [b|="c"] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/gPpnAqOuxEdLAEJjFaUEkg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/gPpnAqOuxEdLAEJjFaUEkg/output.json index e99ae3efdc1..406d8c5d98e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/gPpnAqOuxEdLAEJjFaUEkg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/gPpnAqOuxEdLAEJjFaUEkg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 24, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/gPpnAqOuxEdLAEJjFaUEkg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/gPpnAqOuxEdLAEJjFaUEkg/span.rust-debug index 55a1ad808d4..d90accf9518 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/gPpnAqOuxEdLAEJjFaUEkg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/gPpnAqOuxEdLAEJjFaUEkg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: url(\61 bc) } | ^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/gPpnAqOuxEdLAEJjFaUEkg/input.css:1:1 | 1 | a { value: url(\61 bc) } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/gVzUgfEllenh46I3Psx-uQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/gVzUgfEllenh46I3Psx-uQ/output.json index d1455a6e7b3..e77e025546d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/gVzUgfEllenh46I3Psx-uQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/gVzUgfEllenh46I3Psx-uQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 25, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/gVzUgfEllenh46I3Psx-uQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/gVzUgfEllenh46I3Psx-uQ/span.rust-debug index 7241a5d11fb..d223ed1cb22 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/gVzUgfEllenh46I3Psx-uQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/gVzUgfEllenh46I3Psx-uQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { margin: 0 1 0px 1px } | ^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/gVzUgfEllenh46I3Psx-uQ/input.css:1:1 | 1 | a { margin: 0 1 0px 1px } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/gxBoWO36fKxIuYwPzrWyKQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/gxBoWO36fKxIuYwPzrWyKQ/output.json index 29257aebcb5..a46ec15729d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/gxBoWO36fKxIuYwPzrWyKQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/gxBoWO36fKxIuYwPzrWyKQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/gxBoWO36fKxIuYwPzrWyKQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/gxBoWO36fKxIuYwPzrWyKQ/span.rust-debug index d13d144ffc4..e4221d4e8bb 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/gxBoWO36fKxIuYwPzrWyKQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/gxBoWO36fKxIuYwPzrWyKQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: #x\2c } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/gxBoWO36fKxIuYwPzrWyKQ/input.css:1:1 | 1 | a { value: #x\2c } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/hYoP2sEvEyLualMll8L_RQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/hYoP2sEvEyLualMll8L_RQ/output.json index fb02625beb3..b667439c408 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/hYoP2sEvEyLualMll8L_RQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/hYoP2sEvEyLualMll8L_RQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 5, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/hYoP2sEvEyLualMll8L_RQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/hYoP2sEvEyLualMll8L_RQ/span.rust-debug index af5684bf064..d0077bdd56d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/hYoP2sEvEyLualMll8L_RQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/hYoP2sEvEyLualMll8L_RQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | &* {} | ^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/hYoP2sEvEyLualMll8L_RQ/input.css:1:1 | 1 | &* {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/hfprsTDi2yEOOmPdjb8Cew/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/hfprsTDi2yEOOmPdjb8Cew/output.json index c322d154590..1af1444d2b8 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/hfprsTDi2yEOOmPdjb8Cew/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/hfprsTDi2yEOOmPdjb8Cew/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 10, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/hfprsTDi2yEOOmPdjb8Cew/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/hfprsTDi2yEOOmPdjb8Cew/span.rust-debug index 8b5dcb3b2e7..63ea504b4fe 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/hfprsTDi2yEOOmPdjb8Cew/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/hfprsTDi2yEOOmPdjb8Cew/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | div#\30 {} | ^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/hfprsTDi2yEOOmPdjb8Cew/input.css:1:1 | 1 | div#\30 {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/i7oy_7cYzOxuhIPcZo1yow/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/i7oy_7cYzOxuhIPcZo1yow/output.json index 64cea62ea45..82f857fdec3 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/i7oy_7cYzOxuhIPcZo1yow/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/i7oy_7cYzOxuhIPcZo1yow/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 13, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/i7oy_7cYzOxuhIPcZo1yow/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/i7oy_7cYzOxuhIPcZo1yow/span.rust-debug index 74b78799b6f..b124e9f9c7c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/i7oy_7cYzOxuhIPcZo1yow/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/i7oy_7cYzOxuhIPcZo1yow/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [attr=\2c] {} | ^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/i7oy_7cYzOxuhIPcZo1yow/input.css:1:1 | 1 | [attr=\2c] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/inMW5rttJFPDfH0aKVFg_Q/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/inMW5rttJFPDfH0aKVFg_Q/output.json index bfed959564d..bd323fa5128 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/inMW5rttJFPDfH0aKVFg_Q/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/inMW5rttJFPDfH0aKVFg_Q/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/inMW5rttJFPDfH0aKVFg_Q/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/inMW5rttJFPDfH0aKVFg_Q/span.rust-debug index 802250064b7..32453c16529 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/inMW5rttJFPDfH0aKVFg_Q/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/inMW5rttJFPDfH0aKVFg_Q/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #11233344 } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/inMW5rttJFPDfH0aKVFg_Q/input.css:1:1 | 1 | a { color: #11233344 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/isfWm5W8qb6_aJSz_bdwDw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/isfWm5W8qb6_aJSz_bdwDw/output.json index 773bc4dd5d0..37a5fd03bb5 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/isfWm5W8qb6_aJSz_bdwDw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/isfWm5W8qb6_aJSz_bdwDw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 20, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/isfWm5W8qb6_aJSz_bdwDw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/isfWm5W8qb6_aJSz_bdwDw/span.rust-debug index fe629c9faec..19f9c8f127f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/isfWm5W8qb6_aJSz_bdwDw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/isfWm5W8qb6_aJSz_bdwDw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #112233 } | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/isfWm5W8qb6_aJSz_bdwDw/input.css:1:1 | 1 | a { color: #112233 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/j9dr5-Ih68VDH1exMwsmZA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/j9dr5-Ih68VDH1exMwsmZA/output.json index d253709570f..979f7db3ae7 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/j9dr5-Ih68VDH1exMwsmZA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/j9dr5-Ih68VDH1exMwsmZA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/j9dr5-Ih68VDH1exMwsmZA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/j9dr5-Ih68VDH1exMwsmZA/span.rust-debug index 5f65670d52c..e631752644e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/j9dr5-Ih68VDH1exMwsmZA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/j9dr5-Ih68VDH1exMwsmZA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #aabcccff } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/j9dr5-Ih68VDH1exMwsmZA/input.css:1:1 | 1 | a { color: #aabcccff } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/jD_IvFQVk8LtCrictrWpxw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/jD_IvFQVk8LtCrictrWpxw/output.json index 1a9761a379e..85cefc912fb 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/jD_IvFQVk8LtCrictrWpxw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/jD_IvFQVk8LtCrictrWpxw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 17, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/jD_IvFQVk8LtCrictrWpxw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/jD_IvFQVk8LtCrictrWpxw/span.rust-debug index 8eb784dda51..373ec4508a8 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/jD_IvFQVk8LtCrictrWpxw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/jD_IvFQVk8LtCrictrWpxw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: 0.1; } | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/jD_IvFQVk8LtCrictrWpxw/input.css:1:1 | 1 | a { width: 0.1; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/jdLujY0rTP02e0KuCnvbvg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/jdLujY0rTP02e0KuCnvbvg/output.json index 8e13b234dd0..ef8c88ff677 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/jdLujY0rTP02e0KuCnvbvg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/jdLujY0rTP02e0KuCnvbvg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 10, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/jdLujY0rTP02e0KuCnvbvg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/jdLujY0rTP02e0KuCnvbvg/span.rust-debug index f40ecdefb7c..f36efd3370e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/jdLujY0rTP02e0KuCnvbvg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/jdLujY0rTP02e0KuCnvbvg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a/**/:b {} | ^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/jdLujY0rTP02e0KuCnvbvg/input.css:1:1 | 1 | a/**/:b {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/jzpj5gTOBgKB1ITBDfJiNA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/jzpj5gTOBgKB1ITBDfJiNA/output.json index 97332b3713e..a13562af07c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/jzpj5gTOBgKB1ITBDfJiNA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/jzpj5gTOBgKB1ITBDfJiNA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 6, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/jzpj5gTOBgKB1ITBDfJiNA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/jzpj5gTOBgKB1ITBDfJiNA/span.rust-debug index 5accec7cf9a..5b9860c6bda 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/jzpj5gTOBgKB1ITBDfJiNA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/jzpj5gTOBgKB1ITBDfJiNA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | *|b {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/jzpj5gTOBgKB1ITBDfJiNA/input.css:1:1 | 1 | *|b {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/kVdd5WJZqKSou4cGvcL40g/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/kVdd5WJZqKSou4cGvcL40g/output.json index 4d0fb7c908b..8d91413068a 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/kVdd5WJZqKSou4cGvcL40g/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/kVdd5WJZqKSou4cGvcL40g/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 20, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/kVdd5WJZqKSou4cGvcL40g/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/kVdd5WJZqKSou4cGvcL40g/span.rust-debug index 5ca8e9edd42..185d9b2aaf2 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/kVdd5WJZqKSou4cGvcL40g/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/kVdd5WJZqKSou4cGvcL40g/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: \69dent } | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/kVdd5WJZqKSou4cGvcL40g/input.css:1:1 | 1 | a { value: \69dent } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/kubgOdBUY3iT30KfPRcbsA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/kubgOdBUY3iT30KfPRcbsA/output.json index 0a3daf430c1..97a52c7d9ee 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/kubgOdBUY3iT30KfPRcbsA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/kubgOdBUY3iT30KfPRcbsA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 14, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/kubgOdBUY3iT30KfPRcbsA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/kubgOdBUY3iT30KfPRcbsA/span.rust-debug index bc78ab0bbe2..eecba3943b5 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/kubgOdBUY3iT30KfPRcbsA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/kubgOdBUY3iT30KfPRcbsA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [a|b |= "c"]{} | ^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/kubgOdBUY3iT30KfPRcbsA/input.css:1:1 | 1 | [a|b |= "c"]{} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/lFIVvsKPgxD4lJlULqKluw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/lFIVvsKPgxD4lJlULqKluw/output.json index 85450193800..cfcd49f0d04 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/lFIVvsKPgxD4lJlULqKluw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/lFIVvsKPgxD4lJlULqKluw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 11, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/lFIVvsKPgxD4lJlULqKluw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/lFIVvsKPgxD4lJlULqKluw/span.rust-debug index 5e650e533d2..76efd615b30 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/lFIVvsKPgxD4lJlULqKluw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/lFIVvsKPgxD4lJlULqKluw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [\61ttr] {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/lFIVvsKPgxD4lJlULqKluw/input.css:1:1 | 1 | [\61ttr] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/mJEhy0k_dxoszsTVHb3x_Q/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/mJEhy0k_dxoszsTVHb3x_Q/output.json index b02a787e59c..6cacef84faf 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/mJEhy0k_dxoszsTVHb3x_Q/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/mJEhy0k_dxoszsTVHb3x_Q/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/mJEhy0k_dxoszsTVHb3x_Q/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/mJEhy0k_dxoszsTVHb3x_Q/span.rust-debug index 661274a6612..3875696a32d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/mJEhy0k_dxoszsTVHb3x_Q/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/mJEhy0k_dxoszsTVHb3x_Q/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #112233ef } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/mJEhy0k_dxoszsTVHb3x_Q/input.css:1:1 | 1 | a { color: #112233ef } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/mTLdgh264Uoe84INHS3fAw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/mTLdgh264Uoe84INHS3fAw/output.json index 0675d819ab3..36a12b9e518 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/mTLdgh264Uoe84INHS3fAw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/mTLdgh264Uoe84INHS3fAw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 6, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/mTLdgh264Uoe84INHS3fAw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/mTLdgh264Uoe84INHS3fAw/span.rust-debug index 4ec22b9feb2..165992b9fbd 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/mTLdgh264Uoe84INHS3fAw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/mTLdgh264Uoe84INHS3fAw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | ::b {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/mTLdgh264Uoe84INHS3fAw/input.css:1:1 | 1 | ::b {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/mn3ADjaNJuY6IF0Nqms-VQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/mn3ADjaNJuY6IF0Nqms-VQ/output.json index b68bbdbf960..d65e226a4a2 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/mn3ADjaNJuY6IF0Nqms-VQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/mn3ADjaNJuY6IF0Nqms-VQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/mn3ADjaNJuY6IF0Nqms-VQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/mn3ADjaNJuY6IF0Nqms-VQ/span.rust-debug index a67db1f5936..7c22d4c05a9 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/mn3ADjaNJuY6IF0Nqms-VQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/mn3ADjaNJuY6IF0Nqms-VQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: @\2cx } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/mn3ADjaNJuY6IF0Nqms-VQ/input.css:1:1 | 1 | a { value: @\2cx } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/mnQPy45Xrp2Ze7IdrwV0Ow/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/mnQPy45Xrp2Ze7IdrwV0Ow/output.json index 33cc74d4cde..748fb4adf40 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/mnQPy45Xrp2Ze7IdrwV0Ow/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/mnQPy45Xrp2Ze7IdrwV0Ow/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 7, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/mnQPy45Xrp2Ze7IdrwV0Ow/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/mnQPy45Xrp2Ze7IdrwV0Ow/span.rust-debug index cb03f76b3f1..716a3831322 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/mnQPy45Xrp2Ze7IdrwV0Ow/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/mnQPy45Xrp2Ze7IdrwV0Ow/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | *::b {} | ^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/mnQPy45Xrp2Ze7IdrwV0Ow/input.css:1:1 | 1 | *::b {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/mx296i8q4HfA0IzZ055Xpw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/mx296i8q4HfA0IzZ055Xpw/output.json index e51c74147b2..f9e43c79f67 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/mx296i8q4HfA0IzZ055Xpw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/mx296i8q4HfA0IzZ055Xpw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 23, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/mx296i8q4HfA0IzZ055Xpw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/mx296i8q4HfA0IzZ055Xpw/span.rust-debug index 965c3efb6fa..39c4c56d504 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/mx296i8q4HfA0IzZ055Xpw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/mx296i8q4HfA0IzZ055Xpw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: url(\61bc) } | ^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/mx296i8q4HfA0IzZ055Xpw/input.css:1:1 | 1 | a { value: url(\61bc) } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/nTOoTMumkTvMLx_Y_al5RQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/nTOoTMumkTvMLx_Y_al5RQ/output.json index d1d4936ae47..3c5bbf3f3c6 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/nTOoTMumkTvMLx_Y_al5RQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/nTOoTMumkTvMLx_Y_al5RQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 17, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/nTOoTMumkTvMLx_Y_al5RQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/nTOoTMumkTvMLx_Y_al5RQ/span.rust-debug index c9a0cc0d9e5..5a5cd71381e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/nTOoTMumkTvMLx_Y_al5RQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/nTOoTMumkTvMLx_Y_al5RQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: '\,' } | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/nTOoTMumkTvMLx_Y_al5RQ/input.css:1:1 | 1 | a { value: '\,' } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/niufyVEBI4s-ZqSXdfhptA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/niufyVEBI4s-ZqSXdfhptA/output.json index 565333950fe..cfe731f5ec6 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/niufyVEBI4s-ZqSXdfhptA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/niufyVEBI4s-ZqSXdfhptA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/niufyVEBI4s-ZqSXdfhptA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/niufyVEBI4s-ZqSXdfhptA/span.rust-debug index 47b76a86924..dbc6fd30fbf 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/niufyVEBI4s-ZqSXdfhptA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/niufyVEBI4s-ZqSXdfhptA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #abcd } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/niufyVEBI4s-ZqSXdfhptA/input.css:1:1 | 1 | a { color: #abcd } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/nlYSjWzJfpf38YhsJNbwmA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/nlYSjWzJfpf38YhsJNbwmA/output.json index 13c8f6ad7c3..d64fd940ec1 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/nlYSjWzJfpf38YhsJNbwmA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/nlYSjWzJfpf38YhsJNbwmA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/nlYSjWzJfpf38YhsJNbwmA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/nlYSjWzJfpf38YhsJNbwmA/span.rust-debug index a3384cdefc7..aa12a2410e3 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/nlYSjWzJfpf38YhsJNbwmA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/nlYSjWzJfpf38YhsJNbwmA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #f00f } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/nlYSjWzJfpf38YhsJNbwmA/input.css:1:1 | 1 | a { color: #f00f } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/oNUbYW5wdxqAQR8cAY1YBA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/oNUbYW5wdxqAQR8cAY1YBA/output.json index 8877834e5ba..c3802efd3aa 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/oNUbYW5wdxqAQR8cAY1YBA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/oNUbYW5wdxqAQR8cAY1YBA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 13, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/oNUbYW5wdxqAQR8cAY1YBA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/oNUbYW5wdxqAQR8cAY1YBA/span.rust-debug index 636685b39c8..ced6a80ae53 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/oNUbYW5wdxqAQR8cAY1YBA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/oNUbYW5wdxqAQR8cAY1YBA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [b ^= "c"] {} | ^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/oNUbYW5wdxqAQR8cAY1YBA/input.css:1:1 | 1 | [b ^= "c"] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/octeetJYrV7Yu6rAS3AUFQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/octeetJYrV7Yu6rAS3AUFQ/output.json index 16b3fe6a079..d9851f558c3 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/octeetJYrV7Yu6rAS3AUFQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/octeetJYrV7Yu6rAS3AUFQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 13, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/octeetJYrV7Yu6rAS3AUFQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/octeetJYrV7Yu6rAS3AUFQ/span.rust-debug index 35486e329af..f1368dd8345 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/octeetJYrV7Yu6rAS3AUFQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/octeetJYrV7Yu6rAS3AUFQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | .selector\ {} | ^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/octeetJYrV7Yu6rAS3AUFQ/input.css:1:1 | 1 | .selector\ {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/oj5Yn0RxnGFEbVphKqrL2Q/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/oj5Yn0RxnGFEbVphKqrL2Q/output.json index cc4c24534e2..88665fe1aa0 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/oj5Yn0RxnGFEbVphKqrL2Q/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/oj5Yn0RxnGFEbVphKqrL2Q/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/oj5Yn0RxnGFEbVphKqrL2Q/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/oj5Yn0RxnGFEbVphKqrL2Q/span.rust-debug index 264e92219e8..814adecd6db 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/oj5Yn0RxnGFEbVphKqrL2Q/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/oj5Yn0RxnGFEbVphKqrL2Q/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #aabcccdd } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/oj5Yn0RxnGFEbVphKqrL2Q/input.css:1:1 | 1 | a { color: #aabcccdd } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/ottVCVON2IlQB3WCD-lu_A/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/ottVCVON2IlQB3WCD-lu_A/output.json index d6fe02cd51f..2caadc210f2 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/ottVCVON2IlQB3WCD-lu_A/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/ottVCVON2IlQB3WCD-lu_A/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 16, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/ottVCVON2IlQB3WCD-lu_A/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/ottVCVON2IlQB3WCD-lu_A/span.rust-debug index 52634006dd2..98fabbd63bf 100644 Binary files a/crates/swc_css_parser/tests/fixture/esbuild/misc/ottVCVON2IlQB3WCD-lu_A/span.rust-debug and b/crates/swc_css_parser/tests/fixture/esbuild/misc/ottVCVON2IlQB3WCD-lu_A/span.rust-debug differ diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/p4k8Aj2Nw7Pd4QNaHfLCyg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/p4k8Aj2Nw7Pd4QNaHfLCyg/output.json index 4f4ea4336ae..caf5206368e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/p4k8Aj2Nw7Pd4QNaHfLCyg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/p4k8Aj2Nw7Pd4QNaHfLCyg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 13, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/p4k8Aj2Nw7Pd4QNaHfLCyg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/p4k8Aj2Nw7Pd4QNaHfLCyg/span.rust-debug index 094955146a9..37f516bb508 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/p4k8Aj2Nw7Pd4QNaHfLCyg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/p4k8Aj2Nw7Pd4QNaHfLCyg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [attr="-"] {} | ^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/p4k8Aj2Nw7Pd4QNaHfLCyg/input.css:1:1 | 1 | [attr="-"] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/pJGP-gxqsiFs_ruNrpY3bw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/pJGP-gxqsiFs_ruNrpY3bw/output.json index 5a8753e0532..9f629291420 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/pJGP-gxqsiFs_ruNrpY3bw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/pJGP-gxqsiFs_ruNrpY3bw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 8, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/pJGP-gxqsiFs_ruNrpY3bw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/pJGP-gxqsiFs_ruNrpY3bw/span.rust-debug index 5ae14c511ab..d7c1a764046 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/pJGP-gxqsiFs_ruNrpY3bw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/pJGP-gxqsiFs_ruNrpY3bw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a:b:c {} | ^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/pJGP-gxqsiFs_ruNrpY3bw/input.css:1:1 | 1 | a:b:c {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/pLQn9swtbpZ-CVZMGw0EwA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/pLQn9swtbpZ-CVZMGw0EwA/output.json index 3431f1e500e..09c31b0a2b6 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/pLQn9swtbpZ-CVZMGw0EwA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/pLQn9swtbpZ-CVZMGw0EwA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 19, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/pLQn9swtbpZ-CVZMGw0EwA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/pLQn9swtbpZ-CVZMGw0EwA/span.rust-debug index 2a2d3a12b5a..5c5973cb57d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/pLQn9swtbpZ-CVZMGw0EwA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/pLQn9swtbpZ-CVZMGw0EwA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | :pseudo(cl\2css) {} | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/pLQn9swtbpZ-CVZMGw0EwA/input.css:1:1 | 1 | :pseudo(cl\2css) {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/pO8ANIJaeZDUsUBCBMKErg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/pO8ANIJaeZDUsUBCBMKErg/output.json index abccc550f18..1a48dc523ea 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/pO8ANIJaeZDUsUBCBMKErg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/pO8ANIJaeZDUsUBCBMKErg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 19, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/pO8ANIJaeZDUsUBCBMKErg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/pO8ANIJaeZDUsUBCBMKErg/span.rust-debug index e6f1696aa62..e4d558e59ba 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/pO8ANIJaeZDUsUBCBMKErg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/pO8ANIJaeZDUsUBCBMKErg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: -0.0%; } | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/pO8ANIJaeZDUsUBCBMKErg/input.css:1:1 | 1 | a { width: -0.0%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/pOZgFOB3GdVvQ0hiAsWfpQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/pOZgFOB3GdVvQ0hiAsWfpQ/output.json index 57a3b4d22d9..0fee1552951 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/pOZgFOB3GdVvQ0hiAsWfpQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/pOZgFOB3GdVvQ0hiAsWfpQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 14, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/pOZgFOB3GdVvQ0hiAsWfpQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/pOZgFOB3GdVvQ0hiAsWfpQ/span.rust-debug index bf6c99a53b7..89f6fd12154 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/pOZgFOB3GdVvQ0hiAsWfpQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/pOZgFOB3GdVvQ0hiAsWfpQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [b = "c" I] {} | ^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/pOZgFOB3GdVvQ0hiAsWfpQ/input.css:1:1 | 1 | [b = "c" I] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/pQWwEpWgxuUS6-uSAJR0nQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/pQWwEpWgxuUS6-uSAJR0nQ/output.json index 245fd7bf055..e45d7a00223 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/pQWwEpWgxuUS6-uSAJR0nQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/pQWwEpWgxuUS6-uSAJR0nQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/pQWwEpWgxuUS6-uSAJR0nQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/pQWwEpWgxuUS6-uSAJR0nQ/span.rust-debug index 142f52890a2..8b7ab76cccf 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/pQWwEpWgxuUS6-uSAJR0nQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/pQWwEpWgxuUS6-uSAJR0nQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: +.00; } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/pQWwEpWgxuUS6-uSAJR0nQ/input.css:1:1 | 1 | a { width: +.00; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/pRKMU9FUvZ77y9hGWxYQnw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/pRKMU9FUvZ77y9hGWxYQnw/output.json index 05e556ad91a..eff2a15770d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/pRKMU9FUvZ77y9hGWxYQnw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/pRKMU9FUvZ77y9hGWxYQnw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 12, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/pRKMU9FUvZ77y9hGWxYQnw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/pRKMU9FUvZ77y9hGWxYQnw/span.rust-debug index 827392f7304..948176918e4 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/pRKMU9FUvZ77y9hGWxYQnw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/pRKMU9FUvZ77y9hGWxYQnw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [attr=\,] {} | ^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/pRKMU9FUvZ77y9hGWxYQnw/input.css:1:1 | 1 | [attr=\,] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/pTW2Z7kJ0nR_yQzsOsjAwQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/pTW2Z7kJ0nR_yQzsOsjAwQ/output.json index 0df32ee385b..b99ec4b9e8c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/pTW2Z7kJ0nR_yQzsOsjAwQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/pTW2Z7kJ0nR_yQzsOsjAwQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/pTW2Z7kJ0nR_yQzsOsjAwQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/pTW2Z7kJ0nR_yQzsOsjAwQ/span.rust-debug index 162bf3fa4a4..131331e09c4 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/pTW2Z7kJ0nR_yQzsOsjAwQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/pTW2Z7kJ0nR_yQzsOsjAwQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #aabbcdff } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/pTW2Z7kJ0nR_yQzsOsjAwQ/input.css:1:1 | 1 | a { color: #aabbcdff } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/pUymwoCxUAxDqtaTC7CaOQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/pUymwoCxUAxDqtaTC7CaOQ/output.json index 3904b725a34..595ade78976 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/pUymwoCxUAxDqtaTC7CaOQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/pUymwoCxUAxDqtaTC7CaOQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 8, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/pUymwoCxUAxDqtaTC7CaOQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/pUymwoCxUAxDqtaTC7CaOQ/span.rust-debug index 8d049ef674b..bb6009ec57c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/pUymwoCxUAxDqtaTC7CaOQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/pUymwoCxUAxDqtaTC7CaOQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | *|div {} | ^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/pUymwoCxUAxDqtaTC7CaOQ/input.css:1:1 | 1 | *|div {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/pqHD3F10M6OunHKOop7-lA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/pqHD3F10M6OunHKOop7-lA/output.json index 9446f8603e8..544b09c5564 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/pqHD3F10M6OunHKOop7-lA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/pqHD3F10M6OunHKOop7-lA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 8, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/pqHD3F10M6OunHKOop7-lA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/pqHD3F10M6OunHKOop7-lA/span.rust-debug index 38f5ff8a136..3899147b84e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/pqHD3F10M6OunHKOop7-lA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/pqHD3F10M6OunHKOop7-lA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | .decl {} | ^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/pqHD3F10M6OunHKOop7-lA/input.css:1:1 | 1 | .decl {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/prqRW0qUpem2SVAI9WN-5w/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/prqRW0qUpem2SVAI9WN-5w/output.json index 286986f7f78..2edd949521f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/prqRW0qUpem2SVAI9WN-5w/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/prqRW0qUpem2SVAI9WN-5w/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 5, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/prqRW0qUpem2SVAI9WN-5w/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/prqRW0qUpem2SVAI9WN-5w/span.rust-debug index 9ffbf276f46..0d97ccb1306 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/prqRW0qUpem2SVAI9WN-5w/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/prqRW0qUpem2SVAI9WN-5w/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | |b {} | ^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/prqRW0qUpem2SVAI9WN-5w/input.css:1:1 | 1 | |b {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/ptR_ezJzwIRsP3geOEZI5A/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/ptR_ezJzwIRsP3geOEZI5A/output.json index fb100aef0d9..45dfb40ea27 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/ptR_ezJzwIRsP3geOEZI5A/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/ptR_ezJzwIRsP3geOEZI5A/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/ptR_ezJzwIRsP3geOEZI5A/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/ptR_ezJzwIRsP3geOEZI5A/span.rust-debug index fd4f618df91..1cf2b43b7ed 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/ptR_ezJzwIRsP3geOEZI5A/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/ptR_ezJzwIRsP3geOEZI5A/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: -.0%; } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/ptR_ezJzwIRsP3geOEZI5A/input.css:1:1 | 1 | a { width: -.0%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/puXMOLryMROitDKRX2oMmw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/puXMOLryMROitDKRX2oMmw/output.json index fc234c9be8f..2b42c667c3a 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/puXMOLryMROitDKRX2oMmw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/puXMOLryMROitDKRX2oMmw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 7, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/puXMOLryMROitDKRX2oMmw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/puXMOLryMROitDKRX2oMmw/span.rust-debug index 26b82b883e9..c7a4af43668 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/puXMOLryMROitDKRX2oMmw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/puXMOLryMROitDKRX2oMmw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | #--0 {} | ^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/puXMOLryMROitDKRX2oMmw/input.css:1:1 | 1 | #--0 {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/qgkE_nOj4HtPukMzEjCY5w/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/qgkE_nOj4HtPukMzEjCY5w/output.json index 7c46e13ae56..ed8c560a2a5 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/qgkE_nOj4HtPukMzEjCY5w/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/qgkE_nOj4HtPukMzEjCY5w/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/qgkE_nOj4HtPukMzEjCY5w/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/qgkE_nOj4HtPukMzEjCY5w/span.rust-debug index 233b7fd3f6b..8344d97ec96 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/qgkE_nOj4HtPukMzEjCY5w/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/qgkE_nOj4HtPukMzEjCY5w/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: '\2c' } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/qgkE_nOj4HtPukMzEjCY5w/input.css:1:1 | 1 | a { value: '\2c' } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/qmXSF9N8euK5gfPoFGmV_Q/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/qmXSF9N8euK5gfPoFGmV_Q/output.json index 380dbf9c3b3..479c16c1b88 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/qmXSF9N8euK5gfPoFGmV_Q/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/qmXSF9N8euK5gfPoFGmV_Q/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 20, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/qmXSF9N8euK5gfPoFGmV_Q/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/qmXSF9N8euK5gfPoFGmV_Q/span.rust-debug index 8fa7986a519..06cd1c3c99f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/qmXSF9N8euK5gfPoFGmV_Q/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/qmXSF9N8euK5gfPoFGmV_Q/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #AABBCC } | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/qmXSF9N8euK5gfPoFGmV_Q/input.css:1:1 | 1 | a { color: #AABBCC } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/qsC9vwnhYfmqVreVrA1SEg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/qsC9vwnhYfmqVreVrA1SEg/output.json index d1076017f6d..e0263689586 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/qsC9vwnhYfmqVreVrA1SEg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/qsC9vwnhYfmqVreVrA1SEg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 13, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/qsC9vwnhYfmqVreVrA1SEg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/qsC9vwnhYfmqVreVrA1SEg/span.rust-debug index d618915b79c..fdfb8408340 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/qsC9vwnhYfmqVreVrA1SEg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/qsC9vwnhYfmqVreVrA1SEg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [b |= "c"] {} | ^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/qsC9vwnhYfmqVreVrA1SEg/input.css:1:1 | 1 | [b |= "c"] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/rAzJtA56igpCO-gN3gRrYw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/rAzJtA56igpCO-gN3gRrYw/output.json index c8f266e2745..9d01440b108 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/rAzJtA56igpCO-gN3gRrYw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/rAzJtA56igpCO-gN3gRrYw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 20, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/rAzJtA56igpCO-gN3gRrYw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/rAzJtA56igpCO-gN3gRrYw/span.rust-debug index 5bda754ae98..e93259b3ae1 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/rAzJtA56igpCO-gN3gRrYw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/rAzJtA56igpCO-gN3gRrYw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: 'a\62c' } | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/rAzJtA56igpCO-gN3gRrYw/input.css:1:1 | 1 | a { value: 'a\62c' } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/rGv8hpoRRBbCTlyQ-70xVw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/rGv8hpoRRBbCTlyQ-70xVw/output.json index b33f2ba223e..154419fb6f0 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/rGv8hpoRRBbCTlyQ-70xVw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/rGv8hpoRRBbCTlyQ-70xVw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 17, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/rGv8hpoRRBbCTlyQ-70xVw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/rGv8hpoRRBbCTlyQ-70xVw/span.rust-debug index dc7c6d2a683..e6cfb171a18 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/rGv8hpoRRBbCTlyQ-70xVw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/rGv8hpoRRBbCTlyQ-70xVw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | :pseudocl\61ss {} | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/rGv8hpoRRBbCTlyQ-70xVw/input.css:1:1 | 1 | :pseudocl\61ss {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/rPWYt0NoxD_TvsI8Xrhvyg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/rPWYt0NoxD_TvsI8Xrhvyg/output.json index 1e3a21bcdc6..c4fa7611a64 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/rPWYt0NoxD_TvsI8Xrhvyg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/rPWYt0NoxD_TvsI8Xrhvyg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/rPWYt0NoxD_TvsI8Xrhvyg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/rPWYt0NoxD_TvsI8Xrhvyg/span.rust-debug index 8d75c21384a..228f0453c3d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/rPWYt0NoxD_TvsI8Xrhvyg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/rPWYt0NoxD_TvsI8Xrhvyg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: .10%; } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/rPWYt0NoxD_TvsI8Xrhvyg/input.css:1:1 | 1 | a { width: .10%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/rZIFO-RMBeLmmQK8U6nNmQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/rZIFO-RMBeLmmQK8U6nNmQ/output.json index 21ce910f91a..cdd8db710b3 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/rZIFO-RMBeLmmQK8U6nNmQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/rZIFO-RMBeLmmQK8U6nNmQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/rZIFO-RMBeLmmQK8U6nNmQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/rZIFO-RMBeLmmQK8U6nNmQ/span.rust-debug index 8f24480f017..7a9659510c8 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/rZIFO-RMBeLmmQK8U6nNmQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/rZIFO-RMBeLmmQK8U6nNmQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #11223444 } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/rZIFO-RMBeLmmQK8U6nNmQ/input.css:1:1 | 1 | a { color: #11223444 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/s6SbuS-mSQuuf1eQzngAFw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/s6SbuS-mSQuuf1eQzngAFw/output.json index 206c528c718..b38553f18be 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/s6SbuS-mSQuuf1eQzngAFw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/s6SbuS-mSQuuf1eQzngAFw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 8, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/s6SbuS-mSQuuf1eQzngAFw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/s6SbuS-mSQuuf1eQzngAFw/span.rust-debug index 5593462ab9c..77da4261cf1 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/s6SbuS-mSQuuf1eQzngAFw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/s6SbuS-mSQuuf1eQzngAFw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | #\2d- {} | ^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/s6SbuS-mSQuuf1eQzngAFw/input.css:1:1 | 1 | #\2d- {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/sAlB53zm7iv9WuhRVKadHQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/sAlB53zm7iv9WuhRVKadHQ/output.json index d7c50302f79..07791d6264b 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/sAlB53zm7iv9WuhRVKadHQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/sAlB53zm7iv9WuhRVKadHQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 7, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/sAlB53zm7iv9WuhRVKadHQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/sAlB53zm7iv9WuhRVKadHQ/span.rust-debug index 1dee0376485..4b413fecc3b 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/sAlB53zm7iv9WuhRVKadHQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/sAlB53zm7iv9WuhRVKadHQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a::b {} | ^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/sAlB53zm7iv9WuhRVKadHQ/input.css:1:1 | 1 | a::b {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/sEqPCrxONsC0GxTLw0X7IA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/sEqPCrxONsC0GxTLw0X7IA/output.json index d4dc39ae846..6155670eb72 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/sEqPCrxONsC0GxTLw0X7IA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/sEqPCrxONsC0GxTLw0X7IA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 16, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/sEqPCrxONsC0GxTLw0X7IA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/sEqPCrxONsC0GxTLw0X7IA/span.rust-debug index 74aa1c2e907..5f9273280ba 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/sEqPCrxONsC0GxTLw0X7IA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/sEqPCrxONsC0GxTLw0X7IA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [ns|\2c attr] {} | ^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/sEqPCrxONsC0GxTLw0X7IA/input.css:1:1 | 1 | [ns|\2c attr] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/sI7kJsMAHm4ehV5Ec9i9hg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/sI7kJsMAHm4ehV5Ec9i9hg/output.json index 49ddc0b9764..1051e278413 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/sI7kJsMAHm4ehV5Ec9i9hg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/sI7kJsMAHm4ehV5Ec9i9hg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 13, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/sI7kJsMAHm4ehV5Ec9i9hg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/sI7kJsMAHm4ehV5Ec9i9hg/span.rust-debug index 64a446f9417..a069058641b 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/sI7kJsMAHm4ehV5Ec9i9hg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/sI7kJsMAHm4ehV5Ec9i9hg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [attr\~=x] {} | ^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/sI7kJsMAHm4ehV5Ec9i9hg/input.css:1:1 | 1 | [attr\~=x] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/sNuIucY7tsVtjkcMTIXaGw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/sNuIucY7tsVtjkcMTIXaGw/output.json index 8916e438745..19fce3a4361 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/sNuIucY7tsVtjkcMTIXaGw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/sNuIucY7tsVtjkcMTIXaGw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 13, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/sNuIucY7tsVtjkcMTIXaGw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/sNuIucY7tsVtjkcMTIXaGw/span.rust-debug index 183396d0405..d6458b57645 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/sNuIucY7tsVtjkcMTIXaGw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/sNuIucY7tsVtjkcMTIXaGw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [\2c attr] {} | ^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/sNuIucY7tsVtjkcMTIXaGw/input.css:1:1 | 1 | [\2c attr] {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/sPEO1vW1kIUNhCVdR2d7fg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/sPEO1vW1kIUNhCVdR2d7fg/output.json index 451fe5dfe7f..62491cdd5bc 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/sPEO1vW1kIUNhCVdR2d7fg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/sPEO1vW1kIUNhCVdR2d7fg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/sPEO1vW1kIUNhCVdR2d7fg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/sPEO1vW1kIUNhCVdR2d7fg/span.rust-debug index 593187e42b6..cb61531b248 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/sPEO1vW1kIUNhCVdR2d7fg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/sPEO1vW1kIUNhCVdR2d7fg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: 10x\, } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/sPEO1vW1kIUNhCVdR2d7fg/input.css:1:1 | 1 | a { value: 10x\, } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/tJNGkqEMVKFfOWjyOm5TSg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/tJNGkqEMVKFfOWjyOm5TSg/output.json index ff7be7bcde5..7c44e7c63a9 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/tJNGkqEMVKFfOWjyOm5TSg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/tJNGkqEMVKFfOWjyOm5TSg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/tJNGkqEMVKFfOWjyOm5TSg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/tJNGkqEMVKFfOWjyOm5TSg/span.rust-debug index 090bccc432c..44ad8dcdd96 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/tJNGkqEMVKFfOWjyOm5TSg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/tJNGkqEMVKFfOWjyOm5TSg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: -0.1; } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/tJNGkqEMVKFfOWjyOm5TSg/input.css:1:1 | 1 | a { width: -0.1; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/tr7rB0yt-SnlIRotrT7uFA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/tr7rB0yt-SnlIRotrT7uFA/output.json index 51a1e9965a1..7cf15fe1234 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/tr7rB0yt-SnlIRotrT7uFA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/tr7rB0yt-SnlIRotrT7uFA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 10, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/tr7rB0yt-SnlIRotrT7uFA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/tr7rB0yt-SnlIRotrT7uFA/span.rust-debug index daacb2fdb6d..afec0b86cef 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/tr7rB0yt-SnlIRotrT7uFA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/tr7rB0yt-SnlIRotrT7uFA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | \2d 123 {} | ^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/tr7rB0yt-SnlIRotrT7uFA/input.css:1:1 | 1 | \2d 123 {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/uUAQc0UQ6MBf-ScTmlXMow/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/uUAQc0UQ6MBf-ScTmlXMow/output.json index 69096f5e168..0fc1a8ec0c5 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/uUAQc0UQ6MBf-ScTmlXMow/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/uUAQc0UQ6MBf-ScTmlXMow/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 4, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/uUAQc0UQ6MBf-ScTmlXMow/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/uUAQc0UQ6MBf-ScTmlXMow/span.rust-debug index e5f8a0ab5e4..99309cc85f8 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/uUAQc0UQ6MBf-ScTmlXMow/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/uUAQc0UQ6MBf-ScTmlXMow/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | & {} | ^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/uUAQc0UQ6MBf-ScTmlXMow/input.css:1:1 | 1 | & {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/uxHrqNkMo_2PTuF8sIRQxA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/uxHrqNkMo_2PTuF8sIRQxA/output.json index d2d78237b75..a84d4c2f50a 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/uxHrqNkMo_2PTuF8sIRQxA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/uxHrqNkMo_2PTuF8sIRQxA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/uxHrqNkMo_2PTuF8sIRQxA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/uxHrqNkMo_2PTuF8sIRQxA/span.rust-debug index 7257fe9b9f8..ccd4ff832fa 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/uxHrqNkMo_2PTuF8sIRQxA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/uxHrqNkMo_2PTuF8sIRQxA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: 10\,x } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/uxHrqNkMo_2PTuF8sIRQxA/input.css:1:1 | 1 | a { value: 10\,x } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/vCiwe_ipn8ReAa4wyU52Ng/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/vCiwe_ipn8ReAa4wyU52Ng/output.json index 0b16950dfd5..b435d68e0d6 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/vCiwe_ipn8ReAa4wyU52Ng/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/vCiwe_ipn8ReAa4wyU52Ng/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/vCiwe_ipn8ReAa4wyU52Ng/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/vCiwe_ipn8ReAa4wyU52Ng/span.rust-debug index 6ddbe6b9386..c25959fcda9 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/vCiwe_ipn8ReAa4wyU52Ng/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/vCiwe_ipn8ReAa4wyU52Ng/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: tUrQuOiSe } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/vCiwe_ipn8ReAa4wyU52Ng/input.css:1:1 | 1 | a { color: tUrQuOiSe } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/vFNgwFW2EHA0WTOoSWhSTg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/vFNgwFW2EHA0WTOoSWhSTg/output.json index ea81c383150..282820f4572 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/vFNgwFW2EHA0WTOoSWhSTg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/vFNgwFW2EHA0WTOoSWhSTg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 19, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/vFNgwFW2EHA0WTOoSWhSTg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/vFNgwFW2EHA0WTOoSWhSTg/span.rust-debug index e0c5c99f7c8..7696fb0cef7 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/vFNgwFW2EHA0WTOoSWhSTg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/vFNgwFW2EHA0WTOoSWhSTg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: +.10%; } | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/vFNgwFW2EHA0WTOoSWhSTg/input.css:1:1 | 1 | a { width: +.10%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/vIco-E1oKlSzuggLOcviNg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/vIco-E1oKlSzuggLOcviNg/output.json index c854a5033ca..bf16e910ef0 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/vIco-E1oKlSzuggLOcviNg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/vIco-E1oKlSzuggLOcviNg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/vIco-E1oKlSzuggLOcviNg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/vIco-E1oKlSzuggLOcviNg/span.rust-debug index 2c2a7a0619f..b526baee08c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/vIco-E1oKlSzuggLOcviNg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/vIco-E1oKlSzuggLOcviNg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: 0.0%; } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/vIco-E1oKlSzuggLOcviNg/input.css:1:1 | 1 | a { width: 0.0%; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/vJrDZy-xgYNUTNK3uei3cg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/vJrDZy-xgYNUTNK3uei3cg/output.json index ef814c5e80e..a63a6586850 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/vJrDZy-xgYNUTNK3uei3cg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/vJrDZy-xgYNUTNK3uei3cg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 5, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/vJrDZy-xgYNUTNK3uei3cg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/vJrDZy-xgYNUTNK3uei3cg/span.rust-debug index 938d4ce2c03..be7476ff3d3 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/vJrDZy-xgYNUTNK3uei3cg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/vJrDZy-xgYNUTNK3uei3cg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | [b]{} | ^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/vJrDZy-xgYNUTNK3uei3cg/input.css:1:1 | 1 | [b]{} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/vK9rUBJhwa0FsjBe18lL0w/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/vK9rUBJhwa0FsjBe18lL0w/output.json index a60771eace0..98c787d5c72 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/vK9rUBJhwa0FsjBe18lL0w/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/vK9rUBJhwa0FsjBe18lL0w/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 23, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/vK9rUBJhwa0FsjBe18lL0w/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/vK9rUBJhwa0FsjBe18lL0w/span.rust-debug index 26b1d92c571..4fd9d7d2a7f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/vK9rUBJhwa0FsjBe18lL0w/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/vK9rUBJhwa0FsjBe18lL0w/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: @k\65yword } | ^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/vK9rUBJhwa0FsjBe18lL0w/input.css:1:1 | 1 | a { value: @k\65yword } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/vN7xRB9YekSqanW68eIoNA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/vN7xRB9YekSqanW68eIoNA/output.json index fe7f4331099..d8437de81dc 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/vN7xRB9YekSqanW68eIoNA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/vN7xRB9YekSqanW68eIoNA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/vN7xRB9YekSqanW68eIoNA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/vN7xRB9YekSqanW68eIoNA/span.rust-debug index 8f596e3d905..77c7b4e1f31 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/vN7xRB9YekSqanW68eIoNA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/vN7xRB9YekSqanW68eIoNA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #112233ff } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/vN7xRB9YekSqanW68eIoNA/input.css:1:1 | 1 | a { color: #112233ff } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/wEB80kxMinK4EZaPb3My1A/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/wEB80kxMinK4EZaPb3My1A/output.json index 8cfb8bcda67..02facd6a2b3 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/wEB80kxMinK4EZaPb3My1A/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/wEB80kxMinK4EZaPb3My1A/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 17, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/wEB80kxMinK4EZaPb3My1A/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/wEB80kxMinK4EZaPb3My1A/span.rust-debug index 80acc648b17..44303d69d95 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/wEB80kxMinK4EZaPb3My1A/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/wEB80kxMinK4EZaPb3My1A/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: .00; } | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/wEB80kxMinK4EZaPb3My1A/input.css:1:1 | 1 | a { width: .00; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/wIDDuubF_bj7wmG8T_koVw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/wIDDuubF_bj7wmG8T_koVw/output.json index d3cce52dc98..a5bf1e5e1ee 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/wIDDuubF_bj7wmG8T_koVw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/wIDDuubF_bj7wmG8T_koVw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 7, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/wIDDuubF_bj7wmG8T_koVw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/wIDDuubF_bj7wmG8T_koVw/span.rust-debug index 4541924983e..2051a119f78 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/wIDDuubF_bj7wmG8T_koVw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/wIDDuubF_bj7wmG8T_koVw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | #\30 {} | ^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/wIDDuubF_bj7wmG8T_koVw/input.css:1:1 | 1 | #\30 {} diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/wwLEw52LUKMFH3Wp5CaBAQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/wwLEw52LUKMFH3Wp5CaBAQ/output.json index 7953961ad88..b02e826677e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/wwLEw52LUKMFH3Wp5CaBAQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/wwLEw52LUKMFH3Wp5CaBAQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/wwLEw52LUKMFH3Wp5CaBAQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/wwLEw52LUKMFH3Wp5CaBAQ/span.rust-debug index af4abc07981..d08f7a176e6 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/wwLEw52LUKMFH3Wp5CaBAQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/wwLEw52LUKMFH3Wp5CaBAQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: -0.0; } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/wwLEw52LUKMFH3Wp5CaBAQ/input.css:1:1 | 1 | a { width: -0.0; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/xVWGh0UpWtRUrgqbJEENWA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/xVWGh0UpWtRUrgqbJEENWA/output.json index 5af15994c66..8aab6920d08 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/xVWGh0UpWtRUrgqbJEENWA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/xVWGh0UpWtRUrgqbJEENWA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/xVWGh0UpWtRUrgqbJEENWA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/xVWGh0UpWtRUrgqbJEENWA/span.rust-debug index 8450f17a33c..0b8288dee8c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/xVWGh0UpWtRUrgqbJEENWA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/xVWGh0UpWtRUrgqbJEENWA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: @x\2c } | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/xVWGh0UpWtRUrgqbJEENWA/input.css:1:1 | 1 | a { value: @x\2c } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/xVqT8wNU4CEhaDlbLxGyaw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/xVqT8wNU4CEhaDlbLxGyaw/output.json index efee1625e03..b3e4972fd14 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/xVqT8wNU4CEhaDlbLxGyaw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/xVqT8wNU4CEhaDlbLxGyaw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 17, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/xVqT8wNU4CEhaDlbLxGyaw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/xVqT8wNU4CEhaDlbLxGyaw/span.rust-debug index f7a4df7a4a6..c662e100832 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/xVqT8wNU4CEhaDlbLxGyaw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/xVqT8wNU4CEhaDlbLxGyaw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: @\,x } | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/xVqT8wNU4CEhaDlbLxGyaw/input.css:1:1 | 1 | a { value: @\,x } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/xc1mD3YfHByTKL-N-FL49A/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/xc1mD3YfHByTKL-N-FL49A/output.json index 2accb02622e..4150fdb920b 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/xc1mD3YfHByTKL-N-FL49A/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/xc1mD3YfHByTKL-N-FL49A/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/xc1mD3YfHByTKL-N-FL49A/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/xc1mD3YfHByTKL-N-FL49A/span.rust-debug index 64c563ae85a..81772e34c9f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/xc1mD3YfHByTKL-N-FL49A/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/xc1mD3YfHByTKL-N-FL49A/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #ABBBCCFF } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/xc1mD3YfHByTKL-N-FL49A/input.css:1:1 | 1 | a { color: #ABBBCCFF } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/xdJ7w6fdV3po3r2aWrgPdA/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/xdJ7w6fdV3po3r2aWrgPdA/output.json index 1eaec6cfb14..50861161d2c 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/xdJ7w6fdV3po3r2aWrgPdA/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/xdJ7w6fdV3po3r2aWrgPdA/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 20, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/xdJ7w6fdV3po3r2aWrgPdA/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/xdJ7w6fdV3po3r2aWrgPdA/span.rust-debug index 9fdb4b6795f..8ff5007b348 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/xdJ7w6fdV3po3r2aWrgPdA/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/xdJ7w6fdV3po3r2aWrgPdA/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #abbbcc } | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/xdJ7w6fdV3po3r2aWrgPdA/input.css:1:1 | 1 | a { color: #abbbcc } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/yOHW3TOE35U7DAf9Hn7-Ew/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/yOHW3TOE35U7DAf9Hn7-Ew/output.json index 916ef20fb25..ec56dbf5b3f 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/yOHW3TOE35U7DAf9Hn7-Ew/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/yOHW3TOE35U7DAf9Hn7-Ew/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 19, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/yOHW3TOE35U7DAf9Hn7-Ew/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/yOHW3TOE35U7DAf9Hn7-Ew/span.rust-debug index ea48b62acc8..13d0af738e5 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/yOHW3TOE35U7DAf9Hn7-Ew/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/yOHW3TOE35U7DAf9Hn7-Ew/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: \2cx() } | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/yOHW3TOE35U7DAf9Hn7-Ew/input.css:1:1 | 1 | a { value: \2cx() } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/yVqdwpiB7OK23Te5mXKdFw/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/yVqdwpiB7OK23Te5mXKdFw/output.json index 113bf8ddd5f..8822414ac4b 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/yVqdwpiB7OK23Te5mXKdFw/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/yVqdwpiB7OK23Te5mXKdFw/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 16, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/yVqdwpiB7OK23Te5mXKdFw/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/yVqdwpiB7OK23Te5mXKdFw/span.rust-debug index 2a11a99c347..9cba16c1e6a 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/yVqdwpiB7OK23Te5mXKdFw/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/yVqdwpiB7OK23Te5mXKdFw/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { width: .0; } | ^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/yVqdwpiB7OK23Te5mXKdFw/input.css:1:1 | 1 | a { width: .0; } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/yboE7Tr5zjKHy9-m10AZTg/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/yboE7Tr5zjKHy9-m10AZTg/output.json index c9947e4c075..465a22a7a0e 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/yboE7Tr5zjKHy9-m10AZTg/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/yboE7Tr5zjKHy9-m10AZTg/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/yboE7Tr5zjKHy9-m10AZTg/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/yboE7Tr5zjKHy9-m10AZTg/span.rust-debug index ead664b20b3..879f2b16656 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/yboE7Tr5zjKHy9-m10AZTg/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/yboE7Tr5zjKHy9-m10AZTg/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #11223344 } | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/yboE7Tr5zjKHy9-m10AZTg/input.css:1:1 | 1 | a { color: #11223344 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/zUuWz4A8Y6yZO8JMLAe2fQ/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/zUuWz4A8Y6yZO8JMLAe2fQ/output.json index b1a86a9a607..473ca4ee9ca 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/zUuWz4A8Y6yZO8JMLAe2fQ/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/zUuWz4A8Y6yZO8JMLAe2fQ/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 20, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/zUuWz4A8Y6yZO8JMLAe2fQ/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/zUuWz4A8Y6yZO8JMLAe2fQ/span.rust-debug index 34c11890d2c..bd491e47f26 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/zUuWz4A8Y6yZO8JMLAe2fQ/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/zUuWz4A8Y6yZO8JMLAe2fQ/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { color: #ff0000 } | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/zUuWz4A8Y6yZO8JMLAe2fQ/input.css:1:1 | 1 | a { color: #ff0000 } diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/zz_B6vK87VUHpkOMFR_R1g/output.json b/crates/swc_css_parser/tests/fixture/esbuild/misc/zz_B6vK87VUHpkOMFR_R1g/output.json index e3ee2734cd1..aaeaf1f678d 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/zz_B6vK87VUHpkOMFR_R1g/output.json +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/zz_B6vK87VUHpkOMFR_R1g/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 20, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/esbuild/misc/zz_B6vK87VUHpkOMFR_R1g/span.rust-debug b/crates/swc_css_parser/tests/fixture/esbuild/misc/zz_B6vK87VUHpkOMFR_R1g/span.rust-debug index b8a35954151..935520685a4 100644 --- a/crates/swc_css_parser/tests/fixture/esbuild/misc/zz_B6vK87VUHpkOMFR_R1g/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/esbuild/misc/zz_B6vK87VUHpkOMFR_R1g/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | a { value: 10e\32x } | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/esbuild/misc/zz_B6vK87VUHpkOMFR_R1g/input.css:1:1 | 1 | a { value: 10e\32x } diff --git a/crates/swc_css_parser/tests/fixture/function/url/output.json b/crates/swc_css_parser/tests/fixture/function/url/output.json index bb62fa0b9c3..3887047f7bc 100644 --- a/crates/swc_css_parser/tests/fixture/function/url/output.json +++ b/crates/swc_css_parser/tests/fixture/function/url/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 1042, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/function/url/span.rust-debug b/crates/swc_css_parser/tests/fixture/function/url/span.rust-debug index e31f103d87a..f540babe139 100644 --- a/crates/swc_css_parser/tests/fixture/function/url/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/function/url/span.rust-debug @@ -22,7 +22,7 @@ error: Rule 43 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/function/url/input.css:1:1 | 1 | / a { diff --git a/crates/swc_css_parser/tests/fixture/hex-colors/output.json b/crates/swc_css_parser/tests/fixture/hex-colors/output.json index 3c15157ea6e..9626d796949 100644 --- a/crates/swc_css_parser/tests/fixture/hex-colors/output.json +++ b/crates/swc_css_parser/tests/fixture/hex-colors/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 192, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/hex-colors/span.rust-debug b/crates/swc_css_parser/tests/fixture/hex-colors/span.rust-debug index 885c11d441c..612b7bdb5e9 100644 --- a/crates/swc_css_parser/tests/fixture/hex-colors/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/hex-colors/span.rust-debug @@ -22,7 +22,7 @@ error: Rule 13 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/hex-colors/input.css:1:1 | 1 | / a { diff --git a/crates/swc_css_parser/tests/fixture/important/basic/output.json b/crates/swc_css_parser/tests/fixture/important/basic/output.json index fc66a6a2781..cb210eb231c 100644 --- a/crates/swc_css_parser/tests/fixture/important/basic/output.json +++ b/crates/swc_css_parser/tests/fixture/important/basic/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 495, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/important/basic/span.rust-debug b/crates/swc_css_parser/tests/fixture/important/basic/span.rust-debug index 8e49cb999a6..38fed101683 100644 --- a/crates/swc_css_parser/tests/fixture/important/basic/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/important/basic/span.rust-debug @@ -22,7 +22,7 @@ error: Rule 17 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/important/basic/input.css:1:1 | 1 | / .a { diff --git a/crates/swc_css_parser/tests/fixture/number/output.json b/crates/swc_css_parser/tests/fixture/number/output.json index c937f248d23..e958af2465e 100644 --- a/crates/swc_css_parser/tests/fixture/number/output.json +++ b/crates/swc_css_parser/tests/fixture/number/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 675, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/number/span.rust-debug b/crates/swc_css_parser/tests/fixture/number/span.rust-debug index b87003a56d7..2e3cba2da15 100644 --- a/crates/swc_css_parser/tests/fixture/number/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/number/span.rust-debug @@ -22,7 +22,7 @@ error: Rule 36 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/number/input.css:1:1 | 1 | / div { diff --git a/crates/swc_css_parser/tests/fixture/property/escaped/output.json b/crates/swc_css_parser/tests/fixture/property/escaped/output.json index dd54e659449..1efc1102863 100644 --- a/crates/swc_css_parser/tests/fixture/property/escaped/output.json +++ b/crates/swc_css_parser/tests/fixture/property/escaped/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 27, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/property/escaped/span.rust-debug b/crates/swc_css_parser/tests/fixture/property/escaped/span.rust-debug index 5f6a7b11576..de0c9c0549d 100644 --- a/crates/swc_css_parser/tests/fixture/property/escaped/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/property/escaped/span.rust-debug @@ -14,7 +14,7 @@ error: Rule 3 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/property/escaped/input.css:1:1 | 1 | / table { diff --git a/crates/swc_css_parser/tests/fixture/rome/calc/output.json b/crates/swc_css_parser/tests/fixture/rome/calc/output.json index 67a9dbd48f3..46573d45e96 100644 --- a/crates/swc_css_parser/tests/fixture/rome/calc/output.json +++ b/crates/swc_css_parser/tests/fixture/rome/calc/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 238, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/rome/calc/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/calc/span.rust-debug index 0aaf17a8d2e..3bbc4f844b1 100644 --- a/crates/swc_css_parser/tests/fixture/rome/calc/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/calc/span.rust-debug @@ -22,7 +22,7 @@ error: Rule 10 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/calc/input.css:1:1 | 1 | / .style { diff --git a/crates/swc_css_parser/tests/fixture/rome/comment/output.json b/crates/swc_css_parser/tests/fixture/rome/comment/output.json index c89a4a7f819..f96a62a14e9 100644 --- a/crates/swc_css_parser/tests/fixture/rome/comment/output.json +++ b/crates/swc_css_parser/tests/fixture/rome/comment/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 20, "end": 54, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 20, @@ -105,13 +105,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 56, "end": 90, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 56, @@ -203,13 +203,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 92, "end": 126, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 92, diff --git a/crates/swc_css_parser/tests/fixture/rome/comment/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/comment/span.rust-debug index 866c51f9d6c..20868e8ed35 100644 --- a/crates/swc_css_parser/tests/fixture/rome/comment/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/comment/span.rust-debug @@ -18,7 +18,7 @@ error: Rule 7 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/comment/input.css:5:1 | 5 | / a { @@ -97,7 +97,7 @@ error: Rule 11 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/comment/input.css:9:1 | 9 | / a { @@ -176,7 +176,7 @@ error: Rule 15 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/comment/input.css:13:1 | 13 | / a /* comment */ { diff --git a/crates/swc_css_parser/tests/fixture/rome/custom-properties/output.json b/crates/swc_css_parser/tests/fixture/rome/custom-properties/output.json index b2b66f2fff0..9561ac2c017 100644 --- a/crates/swc_css_parser/tests/fixture/rome/custom-properties/output.json +++ b/crates/swc_css_parser/tests/fixture/rome/custom-properties/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 507, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/rome/custom-properties/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/custom-properties/span.rust-debug index ec99317d742..82c3511bc91 100644 --- a/crates/swc_css_parser/tests/fixture/rome/custom-properties/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/custom-properties/span.rust-debug @@ -22,7 +22,7 @@ error: Rule 23 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/custom-properties/input.css:1:1 | 1 | / .style { diff --git a/crates/swc_css_parser/tests/fixture/rome/fit-content/output.json b/crates/swc_css_parser/tests/fixture/rome/fit-content/output.json index 9be124f7b57..f21a15757dc 100644 --- a/crates/swc_css_parser/tests/fixture/rome/fit-content/output.json +++ b/crates/swc_css_parser/tests/fixture/rome/fit-content/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 73, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/rome/fit-content/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/fit-content/span.rust-debug index 6a6b7516310..8fa92dfd0c3 100644 --- a/crates/swc_css_parser/tests/fixture/rome/fit-content/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/fit-content/span.rust-debug @@ -14,7 +14,7 @@ error: Rule 3 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/fit-content/input.css:1:1 | 1 | / .style { diff --git a/crates/swc_css_parser/tests/fixture/rome/functions/output.json b/crates/swc_css_parser/tests/fixture/rome/functions/output.json index c42e0556200..3c6735af750 100644 --- a/crates/swc_css_parser/tests/fixture/rome/functions/output.json +++ b/crates/swc_css_parser/tests/fixture/rome/functions/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 165, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/rome/functions/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/functions/span.rust-debug index e0165476bfc..1bda9631b29 100644 --- a/crates/swc_css_parser/tests/fixture/rome/functions/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/functions/span.rust-debug @@ -22,7 +22,7 @@ error: Rule 8 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/functions/input.css:1:1 | 1 | / .style { diff --git a/crates/swc_css_parser/tests/fixture/rome/grid/minmax/output.json b/crates/swc_css_parser/tests/fixture/rome/grid/minmax/output.json index 3831fbd0650..1fb179ce74c 100644 --- a/crates/swc_css_parser/tests/fixture/rome/grid/minmax/output.json +++ b/crates/swc_css_parser/tests/fixture/rome/grid/minmax/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 114, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/rome/grid/minmax/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/grid/minmax/span.rust-debug index 641d746df97..b74bce94dcc 100644 --- a/crates/swc_css_parser/tests/fixture/rome/grid/minmax/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/grid/minmax/span.rust-debug @@ -14,7 +14,7 @@ error: Rule 3 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/grid/minmax/input.css:1:1 | 1 | / .style { diff --git a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/fit-content/output.json b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/fit-content/output.json index 75ca73b23c2..f39c76ce8d2 100644 --- a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/fit-content/output.json +++ b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/fit-content/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 65, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/fit-content/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/fit-content/span.rust-debug index 870b4d23dcb..03d151045b6 100644 --- a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/fit-content/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/fit-content/span.rust-debug @@ -14,7 +14,7 @@ error: Rule 3 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/grid/repeat/fit-content/input.css:1:1 | 1 | / .style { diff --git a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/flex/output.json b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/flex/output.json index ff66f785d4c..960cadcef4c 100644 --- a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/flex/output.json +++ b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/flex/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 50, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/flex/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/flex/span.rust-debug index 5b08a8651e0..4d33d72d5e5 100644 --- a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/flex/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/flex/span.rust-debug @@ -14,7 +14,7 @@ error: Rule 3 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/grid/repeat/flex/input.css:1:1 | 1 | / .style { diff --git a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/line-name/output.json b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/line-name/output.json index 045717d962d..9aed2381c7e 100644 --- a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/line-name/output.json +++ b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/line-name/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 58, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/line-name/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/line-name/span.rust-debug index ed396ec8c18..097b41727fd 100644 --- a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/line-name/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/line-name/span.rust-debug @@ -14,7 +14,7 @@ error: Rule 3 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/grid/repeat/line-name/input.css:1:1 | 1 | / .style { diff --git a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/minmax/output.json b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/minmax/output.json index 81e7f5916bb..b745b4bd8ee 100644 --- a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/minmax/output.json +++ b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/minmax/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 73, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/minmax/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/minmax/span.rust-debug index 9647c436780..2a2a64e753a 100644 --- a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/minmax/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/minmax/span.rust-debug @@ -14,7 +14,7 @@ error: Rule 3 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/grid/repeat/minmax/input.css:1:1 | 1 | / .style { diff --git a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/multi-values/output.json b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/multi-values/output.json index 6f2845c3ed1..a923340ded7 100644 --- a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/multi-values/output.json +++ b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/multi-values/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 105, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/multi-values/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/multi-values/span.rust-debug index 3db022a248f..14da9b34bd1 100644 --- a/crates/swc_css_parser/tests/fixture/rome/grid/repeat/multi-values/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/grid/repeat/multi-values/span.rust-debug @@ -14,7 +14,7 @@ error: Rule 3 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/grid/repeat/multi-values/input.css:1:1 | 1 | / .style { diff --git a/crates/swc_css_parser/tests/fixture/rome/media/condition/output.json b/crates/swc_css_parser/tests/fixture/rome/media/condition/output.json index dd2a8687395..03c42636eb6 100644 --- a/crates/swc_css_parser/tests/fixture/rome/media/condition/output.json +++ b/crates/swc_css_parser/tests/fixture/rome/media/condition/output.json @@ -860,13 +860,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 383, "end": 390, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 383, @@ -926,13 +926,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 392, "end": 404, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 392, diff --git a/crates/swc_css_parser/tests/fixture/rome/media/condition/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/media/condition/span.rust-debug index 70bc5a394c5..90d5b4f7d58 100644 --- a/crates/swc_css_parser/tests/fixture/rome/media/condition/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/media/condition/span.rust-debug @@ -895,7 +895,7 @@ error: Rule 9 | | } | |_____^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/media/condition/input.css:7:2 | 7 | a { @@ -952,7 +952,7 @@ error: Rule 12 | | } | |_____^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/media/condition/input.css:10:2 | 10 | .style { diff --git a/crates/swc_css_parser/tests/fixture/rome/min-and-max/output.json b/crates/swc_css_parser/tests/fixture/rome/min-and-max/output.json index e2bb54ae192..b2be1ae49e7 100644 --- a/crates/swc_css_parser/tests/fixture/rome/min-and-max/output.json +++ b/crates/swc_css_parser/tests/fixture/rome/min-and-max/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 390, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/rome/min-and-max/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/min-and-max/span.rust-debug index fadf797bd1c..f589f29a362 100644 --- a/crates/swc_css_parser/tests/fixture/rome/min-and-max/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/min-and-max/span.rust-debug @@ -22,7 +22,7 @@ error: Rule 12 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/min-and-max/input.css:1:1 | 1 | / .style { diff --git a/crates/swc_css_parser/tests/fixture/rome/selectors/output.json b/crates/swc_css_parser/tests/fixture/rome/selectors/output.json index 54bbdc08e47..193f2e21bbf 100644 --- a/crates/swc_css_parser/tests/fixture/rome/selectors/output.json +++ b/crates/swc_css_parser/tests/fixture/rome/selectors/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 41, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, @@ -307,13 +307,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 43, "end": 69, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 43, @@ -374,13 +374,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 71, "end": 86, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 71, @@ -479,13 +479,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 88, "end": 117, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 88, @@ -600,13 +600,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 119, "end": 158, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 119, @@ -730,13 +730,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 160, "end": 200, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 160, @@ -860,13 +860,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 202, "end": 259, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 202, @@ -1021,13 +1021,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 261, "end": 286, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 261, @@ -1128,13 +1128,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 288, "end": 305, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 288, @@ -1252,13 +1252,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 307, "end": 326, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 307, @@ -1329,13 +1329,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 328, "end": 351, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 328, diff --git a/crates/swc_css_parser/tests/fixture/rome/selectors/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/selectors/span.rust-debug index 8b81c962357..f22346d5e4e 100644 --- a/crates/swc_css_parser/tests/fixture/rome/selectors/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/selectors/span.rust-debug @@ -18,7 +18,7 @@ error: Rule 3 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/selectors/input.css:1:1 | 1 | / div, div + #id, div ~ #id, div > #id { @@ -235,7 +235,7 @@ error: Rule 7 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/selectors/input.css:5:1 | 5 | / .escaped\.class\.name { @@ -296,7 +296,7 @@ error: Rule 11 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/selectors/input.css:9:1 | 9 | / .class + * { @@ -381,7 +381,7 @@ error: Rule 15 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/selectors/input.css:13:1 | 13 | / a[title] { @@ -478,7 +478,7 @@ error: Rule 19 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/selectors/input.css:17:1 | 17 | / a[title = "title"] { @@ -581,7 +581,7 @@ error: Rule 23 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/selectors/input.css:21:1 | 21 | / a[title~="title" i] { @@ -684,7 +684,7 @@ error: Rule 27 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/selectors/input.css:25:1 | 25 | / a[title = "title"][href*="image/*" S] { @@ -810,7 +810,7 @@ error: Rule 30 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/selectors/input.css:29:1 | 29 | / p:nth-last-of-type(2) { @@ -892,7 +892,7 @@ error: Rule 33 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/selectors/input.css:32:1 | 32 | / :lang(en, ko) { @@ -980,7 +980,7 @@ error: Rule 36 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/selectors/input.css:35:1 | 35 | / ::pseudo-elem() { @@ -1044,7 +1044,7 @@ error: Rule 39 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/selectors/input.css:38:1 | 38 | / ::pseudo-elem(a, b) { diff --git a/crates/swc_css_parser/tests/fixture/rome/smoke/output.json b/crates/swc_css_parser/tests/fixture/rome/smoke/output.json index fbf45efabb3..48516e0c25f 100644 --- a/crates/swc_css_parser/tests/fixture/rome/smoke/output.json +++ b/crates/swc_css_parser/tests/fixture/rome/smoke/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 22, "end": 78, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 22, diff --git a/crates/swc_css_parser/tests/fixture/rome/smoke/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/smoke/span.rust-debug index c7fd14f3415..ec4f893a4b8 100644 --- a/crates/swc_css_parser/tests/fixture/rome/smoke/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/smoke/span.rust-debug @@ -18,7 +18,7 @@ error: Rule 5 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/smoke/input.css:2:1 | 2 | / body { diff --git a/crates/swc_css_parser/tests/fixture/rome/values/output.json b/crates/swc_css_parser/tests/fixture/rome/values/output.json index b017f7c92b2..fbbd65d075d 100644 --- a/crates/swc_css_parser/tests/fixture/rome/values/output.json +++ b/crates/swc_css_parser/tests/fixture/rome/values/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 36, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, @@ -126,13 +126,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 38, "end": 115, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 38, @@ -334,13 +334,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 117, "end": 139, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 117, @@ -432,13 +432,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 141, "end": 182, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 141, diff --git a/crates/swc_css_parser/tests/fixture/rome/values/span.rust-debug b/crates/swc_css_parser/tests/fixture/rome/values/span.rust-debug index f6a3eff8398..dcbecdb1e80 100644 --- a/crates/swc_css_parser/tests/fixture/rome/values/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/rome/values/span.rust-debug @@ -18,7 +18,7 @@ error: Rule 3 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/values/input.css:1:1 | 1 | / p::before { @@ -118,7 +118,7 @@ error: Rule 10 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/values/input.css:5:1 | 5 | / .number { @@ -293,7 +293,7 @@ error: Rule 14 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/values/input.css:12:1 | 12 | / foo { @@ -373,7 +373,7 @@ error: Rule 19 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/rome/values/input.css:16:1 | 16 | / bar { diff --git a/crates/swc_css_parser/tests/fixture/selector/attribute/output.json b/crates/swc_css_parser/tests/fixture/selector/attribute/output.json index 07c5867fce3..a9b79caf23b 100644 --- a/crates/swc_css_parser/tests/fixture/selector/attribute/output.json +++ b/crates/swc_css_parser/tests/fixture/selector/attribute/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 10, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, @@ -78,13 +78,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 11, "end": 25, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 11, @@ -158,13 +158,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 26, "end": 42, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 26, @@ -238,13 +238,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 43, "end": 63, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 43, @@ -318,13 +318,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 64, "end": 92, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 64, @@ -398,13 +398,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 93, "end": 111, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 93, @@ -478,13 +478,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 112, "end": 127, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 112, @@ -558,13 +558,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 128, "end": 142, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 128, @@ -638,13 +638,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 143, "end": 160, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 143, @@ -718,13 +718,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 161, "end": 181, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 161, @@ -798,13 +798,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 182, "end": 208, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 182, @@ -878,13 +878,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 209, "end": 235, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 209, @@ -958,13 +958,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 236, "end": 255, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 236, @@ -1038,13 +1038,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 256, "end": 275, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 256, @@ -1118,13 +1118,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 276, "end": 292, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 276, @@ -1207,13 +1207,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 293, "end": 303, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 293, @@ -1287,13 +1287,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 304, "end": 320, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 304, @@ -1367,13 +1367,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 321, "end": 330, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 321, @@ -1447,13 +1447,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 331, "end": 342, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 331, @@ -1527,13 +1527,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 343, "end": 358, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 343, @@ -1607,13 +1607,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 359, "end": 367, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 359, @@ -1678,13 +1678,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 368, "end": 378, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 368, @@ -1749,13 +1749,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 379, "end": 393, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 379, @@ -1820,13 +1820,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 394, "end": 416, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 394, @@ -1918,13 +1918,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 417, "end": 447, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 417, @@ -2016,13 +2016,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 448, "end": 476, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 448, @@ -2096,13 +2096,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 477, "end": 511, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 477, @@ -2176,13 +2176,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 512, "end": 552, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 512, @@ -2256,13 +2256,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 553, "end": 568, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 553, diff --git a/crates/swc_css_parser/tests/fixture/selector/attribute/span.rust-debug b/crates/swc_css_parser/tests/fixture/selector/attribute/span.rust-debug index 102b9c467e2..a3e404c7855 100644 --- a/crates/swc_css_parser/tests/fixture/selector/attribute/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/selector/attribute/span.rust-debug @@ -16,7 +16,7 @@ error: Rule 1 | [title] {} | ^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/attribute/input.css:1:1 | 1 | [title] {} @@ -70,7 +70,7 @@ error: Rule 2 | [title=foo] {} | ^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/attribute/input.css:2:1 | 2 | [title=foo] {} @@ -130,7 +130,7 @@ error: Rule 3 | [title="foo"] {} | ^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/attribute/input.css:3:1 | 3 | [title="foo"] {} @@ -190,7 +190,7 @@ error: Rule 4 | [ title = "foo" ] {} | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/attribute/input.css:4:1 | 4 | [ title = "foo" ] {} @@ -250,7 +250,7 @@ error: Rule 5 | [ title = "foo" ] {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/attribute/input.css:5:1 | 5 | [ title = "foo" ] {} @@ -310,7 +310,7 @@ error: Rule 6 | [lang~="en-us"] {} | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/attribute/input.css:6:1 | 6 | [lang~="en-us"] {} @@ -370,7 +370,7 @@ error: Rule 7 | [lang|="zh"] {} | ^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/attribute/input.css:7:1 | 7 | [lang|="zh"] {} @@ -430,7 +430,7 @@ error: Rule 8 | [href^="#"] {} | ^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/attribute/input.css:8:1 | 8 | [href^="#"] {} @@ -490,7 +490,7 @@ error: Rule 9 | [href$=".org"] {} | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/attribute/input.css:9:1 | 9 | [href$=".org"] {} @@ -550,7 +550,7 @@ error: Rule 10 | [href*="example"] {} | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/attribute/input.css:10:1 | 10 | [href*="example"] {} @@ -610,7 +610,7 @@ error: Rule 11 | [href*="insensitive" i] {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/attribute/input.css:11:1 | 11 | [href*="insensitive" i] {} @@ -670,7 +670,7 @@ error: Rule 12 | [href*="insensitive" I] {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/attribute/input.css:12:1 | 12 | [href*="insensitive" I] {} @@ -730,7 +730,7 @@ error: Rule 13 | [href*="cAsE" s] {} | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/attribute/input.css:13:1 | 13 | [href*="cAsE" s] {} @@ -790,7 +790,7 @@ error: Rule 14 | [href*="cAsE" S] {} | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/attribute/input.css:14:1 | 14 | [href*="cAsE" S] {} @@ -850,7 +850,7 @@ error: Rule 15 | [foo|att=val] {} | ^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/attribute/input.css:15:1 | 15 | [foo|att=val] {} @@ -916,7 +916,7 @@ error: Rule 16 | [*|att] {} | ^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/attribute/input.css:16:1 | 16 | [*|att] {} @@ -976,7 +976,7 @@ error: Rule 17 | [ *|att ] {} | ^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/attribute/input.css:17:1 | 17 | [ *|att ] {} @@ -1036,7 +1036,7 @@ error: Rule 18 | [|att] {} | ^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/attribute/input.css:18:1 | 18 | [|att] {} @@ -1096,7 +1096,7 @@ error: Rule 19 | [ |att ] {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/attribute/input.css:19:1 | 19 | [ |att ] {} @@ -1156,7 +1156,7 @@ error: Rule 20 | [ |att ] {} | ^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/attribute/input.css:20:1 | 20 | [ |att ] {} @@ -1216,7 +1216,7 @@ error: Rule 21 | [att] {} | ^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/attribute/input.css:21:1 | 21 | [att] {} @@ -1270,7 +1270,7 @@ error: Rule 22 | [ att ] {} | ^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/attribute/input.css:22:1 | 22 | [ att ] {} @@ -1324,7 +1324,7 @@ error: Rule 23 | [ att ] {} | ^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/attribute/input.css:23:1 | 23 | [ att ] {} @@ -1378,7 +1378,7 @@ error: Rule 24 | a[ class = "test" ] {} | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/attribute/input.css:24:1 | 24 | a[ class = "test" ] {} @@ -1450,7 +1450,7 @@ error: Rule 25 | a[ class = "test" ] {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/attribute/input.css:25:1 | 25 | a[ class = "test" ] {} @@ -1522,7 +1522,7 @@ error: Rule 26 | [href*="insensitive" i] {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/attribute/input.css:26:1 | 26 | [href*="insensitive" i] {} @@ -1582,7 +1582,7 @@ error: Rule 27 | [ href*="insensitive" i ] {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/attribute/input.css:27:1 | 27 | [ href*="insensitive" i ] {} @@ -1642,7 +1642,7 @@ error: Rule 28 | [ href *= "insensitive" i ] {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/attribute/input.css:28:1 | 28 | [ href *= "insensitive" i ] {} @@ -1702,7 +1702,7 @@ error: Rule 29 | [ href ] {} | ^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/attribute/input.css:29:1 | 29 | [ href ] {} diff --git a/crates/swc_css_parser/tests/fixture/selector/class/output.json b/crates/swc_css_parser/tests/fixture/selector/class/output.json index cef06d10cc0..da30cd75f7d 100644 --- a/crates/swc_css_parser/tests/fixture/selector/class/output.json +++ b/crates/swc_css_parser/tests/fixture/selector/class/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 9, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, @@ -74,13 +74,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 10, "end": 17, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 10, @@ -141,13 +141,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 18, "end": 24, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 18, @@ -208,13 +208,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 25, "end": 41, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 25, @@ -275,13 +275,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 42, "end": 52, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 42, @@ -342,13 +342,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 53, "end": 63, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 53, @@ -409,13 +409,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 64, "end": 84, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 64, @@ -476,13 +476,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 85, "end": 93, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 85, @@ -543,13 +543,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 94, "end": 100, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 94, @@ -610,13 +610,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 101, "end": 107, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 101, @@ -677,13 +677,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 108, "end": 114, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 108, @@ -744,13 +744,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 115, "end": 125, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 115, @@ -811,13 +811,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 126, "end": 138, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 126, @@ -878,13 +878,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 139, "end": 149, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 139, @@ -945,13 +945,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 150, "end": 163, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 150, @@ -1012,13 +1012,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 164, "end": 173, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 164, @@ -1079,13 +1079,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 174, "end": 196, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 174, @@ -1146,13 +1146,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 197, "end": 423, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 197, @@ -1213,13 +1213,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 424, "end": 430, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 424, @@ -1280,13 +1280,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 431, "end": 439, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 431, @@ -1347,13 +1347,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 440, "end": 454, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 440, @@ -1414,13 +1414,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 455, "end": 461, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 455, @@ -1481,13 +1481,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 462, "end": 470, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 462, @@ -1548,13 +1548,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 471, "end": 488, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 471, @@ -1615,13 +1615,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 489, "end": 501, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 489, @@ -1682,13 +1682,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 502, "end": 515, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 502, @@ -1749,13 +1749,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 516, "end": 548, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 516, @@ -1816,13 +1816,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 549, "end": 568, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 549, @@ -1883,13 +1883,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 569, "end": 580, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 569, @@ -1950,13 +1950,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 581, "end": 592, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 581, @@ -2017,13 +2017,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 593, "end": 604, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 593, @@ -2084,13 +2084,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 605, "end": 616, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 605, @@ -2151,13 +2151,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 617, "end": 628, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 617, @@ -2218,13 +2218,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 629, "end": 640, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 629, @@ -2285,13 +2285,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 641, "end": 652, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 641, @@ -2352,13 +2352,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 653, "end": 664, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 653, @@ -2419,13 +2419,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 665, "end": 678, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 665, diff --git a/crates/swc_css_parser/tests/fixture/selector/class/span.rust-debug b/crates/swc_css_parser/tests/fixture/selector/class/span.rust-debug index feb71b587cd..6ee8937c993 100644 --- a/crates/swc_css_parser/tests/fixture/selector/class/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/selector/class/span.rust-debug @@ -16,7 +16,7 @@ error: Rule 1 | .class {} | ^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:1:1 | 1 | .class {} @@ -70,7 +70,7 @@ error: Rule 2 | .♥ {} | ^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:2:1 | 2 | .♥ {} @@ -124,7 +124,7 @@ error: Rule 3 | .© {} | ^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:3:1 | 3 | .© {} @@ -178,7 +178,7 @@ error: Rule 4 | .“‘’” {} | ^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:4:1 | 4 | .“‘’” {} @@ -232,7 +232,7 @@ error: Rule 5 | .☺☃ {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:5:1 | 5 | .☺☃ {} @@ -286,7 +286,7 @@ error: Rule 6 | .⌘⌥ {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:6:1 | 6 | .⌘⌥ {} @@ -340,7 +340,7 @@ error: Rule 7 | .𝄞♪♩♫♬ {} | ^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:7:1 | 7 | .𝄞♪♩♫♬ {} @@ -394,7 +394,7 @@ error: Rule 8 | .💩 {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:8:1 | 8 | .💩 {} @@ -448,7 +448,7 @@ error: Rule 9 | .\? {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:9:1 | 9 | .\? {} @@ -502,7 +502,7 @@ error: Rule 10 | .\@ {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:10:1 | 10 | .\@ {} @@ -556,7 +556,7 @@ error: Rule 11 | .\. {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:11:1 | 11 | .\. {} @@ -610,7 +610,7 @@ error: Rule 12 | .\3A \) {} | ^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:12:1 | 12 | .\3A \) {} @@ -664,7 +664,7 @@ error: Rule 13 | .\3A \`\( {} | ^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:13:1 | 13 | .\3A \`\( {} @@ -718,7 +718,7 @@ error: Rule 14 | .\31 23 {} | ^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:14:1 | 14 | .\31 23 {} @@ -772,7 +772,7 @@ error: Rule 15 | .\31 a2b3c {} | ^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:15:1 | 15 | .\31 a2b3c {} @@ -826,7 +826,7 @@ error: Rule 16 | .\
{} | ^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:16:1 | 16 | .\
{} @@ -880,7 +880,7 @@ error: Rule 17 | .\<\>\<\<\<\>\>\<\> {} | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:17:1 | 17 | .\<\>\<\<\<\>\>\<\> {} @@ -934,7 +934,7 @@ error: Rule 18 | .\+\+\+\+\+\+\+\+\+\+\[\>\+\+\+\+\+\+\+\>\+\+\+\+\+\+\+\+\+\+\>\+\+\+\>\+\<\<\<\<\-\]\>\+\+\.\>\+\.\+\+\+\+\+\+\+\.\.\+\+\+\.\>\+\+\.\<\<\+\+\+\+\+\+\+\+\+\+\+\+\+\+\+\.\>\.\+\+\+\.\-\-\-\-\-\-\.\-\-\-\-\-\-\-\-\.\>\+\.\>\. {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:18:1 | 18 | .\+\+\+\+\+\+\+\+\+\+\[\>\+\+\+\+\+\+\+\>\+\+\+\+\+\+\+\+\+\+\>\+\+\+\>\+\<\<\<\<\-\]\>\+\+\.\>\+\.\+\+\+\+\+\+\+\.\.\+\+\+\.\>\+\+\.\<\<\+\+\+\+\+\+\+\+\+\+\+\+\+\+\+\.\>\.\+\+\+\.\-\-\-\-\-\-\.\-\-\-\-\-\-\-\-\.\>\+\.\>\. {} @@ -988,7 +988,7 @@ error: Rule 19 | .\# {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:19:1 | 19 | .\# {} @@ -1042,7 +1042,7 @@ error: Rule 20 | .\#\# {} | ^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:20:1 | 20 | .\#\# {} @@ -1096,7 +1096,7 @@ error: Rule 21 | .\#\.\#\.\# {} | ^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:21:1 | 21 | .\#\.\#\.\# {} @@ -1150,7 +1150,7 @@ error: Rule 22 | .\_ {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:22:1 | 22 | .\_ {} @@ -1204,7 +1204,7 @@ error: Rule 23 | .\{\} {} | ^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:23:1 | 23 | .\{\} {} @@ -1258,7 +1258,7 @@ error: Rule 24 | .\.fake\-class {} | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:24:1 | 24 | .\.fake\-class {} @@ -1312,7 +1312,7 @@ error: Rule 25 | .foo\.bar {} | ^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:25:1 | 25 | .foo\.bar {} @@ -1366,7 +1366,7 @@ error: Rule 26 | .\3A hover {} | ^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:26:1 | 26 | .\3A hover {} @@ -1420,7 +1420,7 @@ error: Rule 27 | .\3A hover\3A focus\3A active {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:27:1 | 27 | .\3A hover\3A focus\3A active {} @@ -1474,7 +1474,7 @@ error: Rule 28 | .\[attr\=value\] {} | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:28:1 | 28 | .\[attr\=value\] {} @@ -1528,7 +1528,7 @@ error: Rule 29 | .f\/o\/o {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:29:1 | 29 | .f\/o\/o {} @@ -1582,7 +1582,7 @@ error: Rule 30 | .f\\o\\o {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:30:1 | 30 | .f\\o\\o {} @@ -1636,7 +1636,7 @@ error: Rule 31 | .f\*o\*o {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:31:1 | 31 | .f\*o\*o {} @@ -1690,7 +1690,7 @@ error: Rule 32 | .f\!o\!o {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:32:1 | 32 | .f\!o\!o {} @@ -1744,7 +1744,7 @@ error: Rule 33 | .f\'o\'o {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:33:1 | 33 | .f\'o\'o {} @@ -1798,7 +1798,7 @@ error: Rule 34 | .f\~o\~o {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:34:1 | 34 | .f\~o\~o {} @@ -1852,7 +1852,7 @@ error: Rule 35 | .f\+o\+o {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:35:1 | 35 | .f\+o\+o {} @@ -1906,7 +1906,7 @@ error: Rule 36 | .-a-b-c- {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:36:1 | 36 | .-a-b-c- {} @@ -1960,7 +1960,7 @@ error: Rule 37 | .\#fake-id {} | ^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/class/input.css:37:1 | 37 | .\#fake-id {} diff --git a/crates/swc_css_parser/tests/fixture/selector/combinators/output.json b/crates/swc_css_parser/tests/fixture/selector/combinators/output.json index 3676c7b6aae..175281742e7 100644 --- a/crates/swc_css_parser/tests/fixture/selector/combinators/output.json +++ b/crates/swc_css_parser/tests/fixture/selector/combinators/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 19, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/selector/combinators/span.rust-debug b/crates/swc_css_parser/tests/fixture/selector/combinators/span.rust-debug index ee227ef9bf5..eee42aa42bf 100644 --- a/crates/swc_css_parser/tests/fixture/selector/combinators/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/selector/combinators/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | article p p {} | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/combinators/input.css:1:1 | 1 | article p p {} diff --git a/crates/swc_css_parser/tests/fixture/selector/comments/output.json b/crates/swc_css_parser/tests/fixture/selector/comments/output.json index 1632608037f..03a66a1e471 100644 --- a/crates/swc_css_parser/tests/fixture/selector/comments/output.json +++ b/crates/swc_css_parser/tests/fixture/selector/comments/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 9, "end": 15, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 9, @@ -111,13 +111,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 26, "end": 32, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 26, @@ -215,13 +215,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 43, "end": 49, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 43, @@ -319,13 +319,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 61, "end": 67, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 61, @@ -423,13 +423,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 68, "end": 82, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 68, @@ -527,13 +527,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 83, "end": 98, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 83, @@ -631,13 +631,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 99, "end": 115, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 99, @@ -735,13 +735,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 116, "end": 133, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 116, @@ -839,13 +839,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 134, "end": 149, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 134, @@ -943,13 +943,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 150, "end": 166, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 150, @@ -1047,13 +1047,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 167, "end": 183, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 167, @@ -1151,13 +1151,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 184, "end": 201, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 184, @@ -1255,13 +1255,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 202, "end": 216, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 202, @@ -1359,13 +1359,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 217, "end": 232, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 217, @@ -1463,13 +1463,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 233, "end": 258, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 233, @@ -1568,13 +1568,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 259, "end": 289, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 259, diff --git a/crates/swc_css_parser/tests/fixture/selector/comments/span.rust-debug b/crates/swc_css_parser/tests/fixture/selector/comments/span.rust-debug index bcff632089e..d221aa59fd7 100644 --- a/crates/swc_css_parser/tests/fixture/selector/comments/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/selector/comments/span.rust-debug @@ -17,7 +17,7 @@ error: Rule 1 | /* { } */a b {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/comments/input.css:1:10 | 1 | /* { } */a b {} @@ -89,7 +89,7 @@ error: Rule 2 | /* test */a b {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/comments/input.css:2:11 | 2 | /* test */a b {} @@ -161,7 +161,7 @@ error: Rule 3 | /* { } */ a b {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/comments/input.css:3:11 | 3 | /* { } */ a b {} @@ -233,7 +233,7 @@ error: Rule 4 | /* test */ a b {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/comments/input.css:4:12 | 4 | /* test */ a b {} @@ -305,7 +305,7 @@ error: Rule 5 | a/* { } */b {} | ^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/comments/input.css:5:1 | 5 | a/* { } */b {} @@ -377,7 +377,7 @@ error: Rule 6 | a/* test */b {} | ^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/comments/input.css:6:1 | 6 | a/* test */b {} @@ -449,7 +449,7 @@ error: Rule 7 | a /* { } */ b {} | ^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/comments/input.css:7:1 | 7 | a /* { } */ b {} @@ -521,7 +521,7 @@ error: Rule 8 | a /* test */ b {} | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/comments/input.css:8:1 | 8 | a /* test */ b {} @@ -593,7 +593,7 @@ error: Rule 9 | a b/* { } */ {} | ^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/comments/input.css:9:1 | 9 | a b/* { } */ {} @@ -665,7 +665,7 @@ error: Rule 10 | a b/* test */ {} | ^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/comments/input.css:10:1 | 10 | a b/* test */ {} @@ -737,7 +737,7 @@ error: Rule 11 | a b /* { } */ {} | ^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/comments/input.css:11:1 | 11 | a b /* { } */ {} @@ -809,7 +809,7 @@ error: Rule 12 | a b /* test */ {} | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/comments/input.css:12:1 | 12 | a b /* test */ {} @@ -881,7 +881,7 @@ error: Rule 13 | a b/* { } */{} | ^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/comments/input.css:13:1 | 13 | a b/* { } */{} @@ -953,7 +953,7 @@ error: Rule 14 | a b/* test */{} | ^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/comments/input.css:14:1 | 14 | a b/* test */{} @@ -1025,7 +1025,7 @@ error: Rule 15 | a/* test */,/* test */b{} | ^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/comments/input.css:15:1 | 15 | a/* test */,/* test */b{} @@ -1097,7 +1097,7 @@ error: Rule 16 | a /* test */ , /* test */ b {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/comments/input.css:16:1 | 16 | a /* test */ , /* test */ b {} diff --git a/crates/swc_css_parser/tests/fixture/selector/id/output.json b/crates/swc_css_parser/tests/fixture/selector/id/output.json index 5e359557b4d..d0c572cecd0 100644 --- a/crates/swc_css_parser/tests/fixture/selector/id/output.json +++ b/crates/swc_css_parser/tests/fixture/selector/id/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 6, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, @@ -74,13 +74,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 7, "end": 14, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 7, @@ -141,13 +141,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 15, "end": 21, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 15, @@ -208,13 +208,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 22, "end": 38, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 22, @@ -275,13 +275,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 39, "end": 49, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 39, @@ -342,13 +342,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 50, "end": 60, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 50, @@ -409,13 +409,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 61, "end": 81, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 61, @@ -476,13 +476,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 82, "end": 90, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 82, @@ -543,13 +543,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 91, "end": 97, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 91, @@ -610,13 +610,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 98, "end": 104, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 98, @@ -677,13 +677,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 105, "end": 111, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 105, @@ -744,13 +744,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 112, "end": 122, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 112, @@ -811,13 +811,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 123, "end": 135, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 123, @@ -878,13 +878,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 136, "end": 146, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 136, @@ -945,13 +945,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 147, "end": 160, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 147, @@ -1012,13 +1012,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 161, "end": 170, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 161, @@ -1079,13 +1079,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 171, "end": 193, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 171, @@ -1146,13 +1146,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 194, "end": 420, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 194, @@ -1213,13 +1213,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 421, "end": 427, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 421, @@ -1280,13 +1280,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 428, "end": 436, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 428, @@ -1347,13 +1347,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 437, "end": 451, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 437, @@ -1414,13 +1414,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 452, "end": 458, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 452, @@ -1481,13 +1481,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 459, "end": 467, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 459, @@ -1548,13 +1548,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 468, "end": 485, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 468, @@ -1615,13 +1615,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 486, "end": 498, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 486, @@ -1682,13 +1682,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 499, "end": 512, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 499, @@ -1749,13 +1749,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 513, "end": 545, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 513, @@ -1816,13 +1816,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 546, "end": 565, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 546, @@ -1883,13 +1883,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 566, "end": 577, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 566, @@ -1950,13 +1950,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 578, "end": 589, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 578, @@ -2017,13 +2017,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 590, "end": 601, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 590, @@ -2084,13 +2084,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 602, "end": 613, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 602, @@ -2151,13 +2151,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 614, "end": 625, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 614, @@ -2218,13 +2218,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 626, "end": 637, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 626, @@ -2285,13 +2285,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 638, "end": 649, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 638, diff --git a/crates/swc_css_parser/tests/fixture/selector/id/span.rust-debug b/crates/swc_css_parser/tests/fixture/selector/id/span.rust-debug index c4e9ee7fdd4..4f796af94ba 100644 --- a/crates/swc_css_parser/tests/fixture/selector/id/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/selector/id/span.rust-debug @@ -16,7 +16,7 @@ error: Rule 1 | #id {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:1:1 | 1 | #id {} @@ -70,7 +70,7 @@ error: Rule 2 | #♥ {} | ^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:2:1 | 2 | #♥ {} @@ -124,7 +124,7 @@ error: Rule 3 | #© {} | ^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:3:1 | 3 | #© {} @@ -178,7 +178,7 @@ error: Rule 4 | #“‘’” {} | ^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:4:1 | 4 | #“‘’” {} @@ -232,7 +232,7 @@ error: Rule 5 | #☺☃ {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:5:1 | 5 | #☺☃ {} @@ -286,7 +286,7 @@ error: Rule 6 | #⌘⌥ {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:6:1 | 6 | #⌘⌥ {} @@ -340,7 +340,7 @@ error: Rule 7 | #𝄞♪♩♫♬ {} | ^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:7:1 | 7 | #𝄞♪♩♫♬ {} @@ -394,7 +394,7 @@ error: Rule 8 | #💩 {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:8:1 | 8 | #💩 {} @@ -448,7 +448,7 @@ error: Rule 9 | #\? {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:9:1 | 9 | #\? {} @@ -502,7 +502,7 @@ error: Rule 10 | #\@ {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:10:1 | 10 | #\@ {} @@ -556,7 +556,7 @@ error: Rule 11 | #\. {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:11:1 | 11 | #\. {} @@ -610,7 +610,7 @@ error: Rule 12 | #\3A \) {} | ^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:12:1 | 12 | #\3A \) {} @@ -664,7 +664,7 @@ error: Rule 13 | #\3A \`\( {} | ^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:13:1 | 13 | #\3A \`\( {} @@ -718,7 +718,7 @@ error: Rule 14 | #\31 23 {} | ^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:14:1 | 14 | #\31 23 {} @@ -772,7 +772,7 @@ error: Rule 15 | #\31 a2b3c {} | ^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:15:1 | 15 | #\31 a2b3c {} @@ -826,7 +826,7 @@ error: Rule 16 | #\
{} | ^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:16:1 | 16 | #\
{} @@ -880,7 +880,7 @@ error: Rule 17 | #\<\>\<\<\<\>\>\<\> {} | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:17:1 | 17 | #\<\>\<\<\<\>\>\<\> {} @@ -934,7 +934,7 @@ error: Rule 18 | #\+\+\+\+\+\+\+\+\+\+\[\>\+\+\+\+\+\+\+\>\+\+\+\+\+\+\+\+\+\+\>\+\+\+\>\+\<\<\<\<\-\]\>\+\+\.\>\+\.\+\+\+\+\+\+\+\.\.\+\+\+\.\>\+\+\.\<\<\+\+\+\+\+\+\+\+\+\+\+\+\+\+\+\.\>\.\+\+\+\.\-\-\-\-\-\-\.\-\-\-\-\-\-\-\-\.\>\+\.\>\. {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:18:1 | 18 | #\+\+\+\+\+\+\+\+\+\+\[\>\+\+\+\+\+\+\+\>\+\+\+\+\+\+\+\+\+\+\>\+\+\+\>\+\<\<\<\<\-\]\>\+\+\.\>\+\.\+\+\+\+\+\+\+\.\.\+\+\+\.\>\+\+\.\<\<\+\+\+\+\+\+\+\+\+\+\+\+\+\+\+\.\>\.\+\+\+\.\-\-\-\-\-\-\.\-\-\-\-\-\-\-\-\.\>\+\.\>\. {} @@ -988,7 +988,7 @@ error: Rule 19 | #\# {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:19:1 | 19 | #\# {} @@ -1042,7 +1042,7 @@ error: Rule 20 | #\#\# {} | ^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:20:1 | 20 | #\#\# {} @@ -1096,7 +1096,7 @@ error: Rule 21 | #\#\.\#\.\# {} | ^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:21:1 | 21 | #\#\.\#\.\# {} @@ -1150,7 +1150,7 @@ error: Rule 22 | #\_ {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:22:1 | 22 | #\_ {} @@ -1204,7 +1204,7 @@ error: Rule 23 | #\{\} {} | ^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:23:1 | 23 | #\{\} {} @@ -1258,7 +1258,7 @@ error: Rule 24 | #\.fake\-class {} | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:24:1 | 24 | #\.fake\-class {} @@ -1312,7 +1312,7 @@ error: Rule 25 | #foo\.bar {} | ^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:25:1 | 25 | #foo\.bar {} @@ -1366,7 +1366,7 @@ error: Rule 26 | #\3A hover {} | ^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:26:1 | 26 | #\3A hover {} @@ -1420,7 +1420,7 @@ error: Rule 27 | #\3A hover\3A focus\3A active {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:27:1 | 27 | #\3A hover\3A focus\3A active {} @@ -1474,7 +1474,7 @@ error: Rule 28 | #\[attr\=value\] {} | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:28:1 | 28 | #\[attr\=value\] {} @@ -1528,7 +1528,7 @@ error: Rule 29 | #f\/o\/o {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:29:1 | 29 | #f\/o\/o {} @@ -1582,7 +1582,7 @@ error: Rule 30 | #f\\o\\o {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:30:1 | 30 | #f\\o\\o {} @@ -1636,7 +1636,7 @@ error: Rule 31 | #f\*o\*o {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:31:1 | 31 | #f\*o\*o {} @@ -1690,7 +1690,7 @@ error: Rule 32 | #f\!o\!o {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:32:1 | 32 | #f\!o\!o {} @@ -1744,7 +1744,7 @@ error: Rule 33 | #f\'o\'o {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:33:1 | 33 | #f\'o\'o {} @@ -1798,7 +1798,7 @@ error: Rule 34 | #f\~o\~o {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:34:1 | 34 | #f\~o\~o {} @@ -1852,7 +1852,7 @@ error: Rule 35 | #f\+o\+o {} | ^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/id/input.css:35:1 | 35 | #f\+o\+o {} diff --git a/crates/swc_css_parser/tests/fixture/selector/nesting/output.json b/crates/swc_css_parser/tests/fixture/selector/nesting/output.json index f7a2813e679..3eb1d9e8719 100644 --- a/crates/swc_css_parser/tests/fixture/selector/nesting/output.json +++ b/crates/swc_css_parser/tests/fixture/selector/nesting/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 24, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/selector/nesting/span.rust-debug b/crates/swc_css_parser/tests/fixture/selector/nesting/span.rust-debug index 754abfe224f..31be052727b 100644 --- a/crates/swc_css_parser/tests/fixture/selector/nesting/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/selector/nesting/span.rust-debug @@ -10,7 +10,7 @@ error: Rule 1 | & > .bar { color: red; } | ^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/nesting/input.css:1:1 | 1 | & > .bar { color: red; } diff --git a/crates/swc_css_parser/tests/fixture/selector/pseudo-classs/an-plus-b/output.json b/crates/swc_css_parser/tests/fixture/selector/pseudo-classs/an-plus-b/output.json index 57632e95b0e..34a5870bc6e 100644 --- a/crates/swc_css_parser/tests/fixture/selector/pseudo-classs/an-plus-b/output.json +++ b/crates/swc_css_parser/tests/fixture/selector/pseudo-classs/an-plus-b/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 19, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, @@ -96,13 +96,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 20, "end": 40, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 20, @@ -185,13 +185,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 41, "end": 62, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 41, @@ -274,13 +274,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 63, "end": 83, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 63, @@ -363,13 +363,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 84, "end": 103, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 84, @@ -452,13 +452,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 104, "end": 124, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 104, @@ -541,13 +541,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 125, "end": 145, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 125, @@ -630,13 +630,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 146, "end": 167, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 146, @@ -719,13 +719,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 168, "end": 188, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 168, @@ -808,13 +808,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 189, "end": 210, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 189, @@ -897,13 +897,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 211, "end": 233, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 211, @@ -986,13 +986,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 234, "end": 255, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 234, @@ -1075,13 +1075,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 256, "end": 276, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 256, @@ -1164,13 +1164,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 277, "end": 298, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 277, @@ -1253,13 +1253,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 299, "end": 321, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 299, @@ -1342,13 +1342,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 322, "end": 342, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 322, @@ -1431,13 +1431,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 343, "end": 364, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 343, @@ -1520,13 +1520,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 365, "end": 387, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 365, @@ -1609,13 +1609,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 388, "end": 409, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 388, @@ -1698,13 +1698,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 410, "end": 430, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 410, @@ -1787,13 +1787,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 431, "end": 452, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 431, @@ -1876,13 +1876,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 453, "end": 474, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 453, @@ -1965,13 +1965,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 475, "end": 497, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 475, @@ -2054,13 +2054,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 498, "end": 516, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 498, @@ -2143,13 +2143,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 517, "end": 536, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 517, @@ -2232,13 +2232,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 537, "end": 557, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 537, @@ -2321,13 +2321,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 558, "end": 577, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 558, @@ -2410,13 +2410,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 578, "end": 596, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 578, @@ -2499,13 +2499,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 597, "end": 616, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 597, @@ -2588,13 +2588,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 617, "end": 636, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 617, @@ -2677,13 +2677,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 637, "end": 657, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 637, @@ -2766,13 +2766,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 658, "end": 677, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 658, @@ -2855,13 +2855,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 678, "end": 698, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 678, @@ -2944,13 +2944,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 699, "end": 720, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 699, @@ -3033,13 +3033,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 721, "end": 741, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 721, @@ -3122,13 +3122,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 742, "end": 761, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 742, @@ -3211,13 +3211,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 762, "end": 782, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 762, @@ -3300,13 +3300,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 783, "end": 803, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 783, @@ -3389,13 +3389,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 804, "end": 825, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 804, @@ -3478,13 +3478,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 826, "end": 845, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 826, @@ -3567,13 +3567,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 846, "end": 866, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 846, @@ -3656,13 +3656,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 867, "end": 888, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 867, @@ -3745,13 +3745,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 889, "end": 909, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 889, @@ -3834,13 +3834,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 910, "end": 929, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 910, @@ -3923,13 +3923,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 930, "end": 950, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 930, @@ -4012,13 +4012,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 951, "end": 971, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 951, @@ -4101,13 +4101,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 972, "end": 993, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 972, @@ -4190,13 +4190,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 994, "end": 1010, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 994, @@ -4279,13 +4279,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1011, "end": 1028, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1011, @@ -4368,13 +4368,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1029, "end": 1046, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1029, @@ -4457,13 +4457,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1047, "end": 1064, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1047, @@ -4546,13 +4546,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1065, "end": 1083, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1065, @@ -4635,13 +4635,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1084, "end": 1102, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1084, @@ -4724,13 +4724,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1103, "end": 1119, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1103, @@ -4813,13 +4813,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1120, "end": 1137, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1120, @@ -4902,13 +4902,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1138, "end": 1155, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1138, @@ -4991,13 +4991,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1156, "end": 1173, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1156, @@ -5080,13 +5080,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1174, "end": 1192, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1174, @@ -5169,13 +5169,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1193, "end": 1211, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1193, @@ -5258,13 +5258,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1212, "end": 1228, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1212, @@ -5347,13 +5347,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1229, "end": 1246, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1229, @@ -5436,13 +5436,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1247, "end": 1264, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1247, @@ -5525,13 +5525,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1265, "end": 1296, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1265, @@ -5614,13 +5614,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1298, "end": 1317, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1298, @@ -5703,13 +5703,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1318, "end": 1337, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1318, @@ -5792,13 +5792,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1339, "end": 1357, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1339, @@ -5879,13 +5879,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1358, "end": 1376, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1358, @@ -5966,13 +5966,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1377, "end": 1395, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1377, @@ -6053,13 +6053,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1396, "end": 1415, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1396, @@ -6140,13 +6140,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1416, "end": 1435, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1416, @@ -6227,13 +6227,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1436, "end": 1455, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1436, @@ -6314,13 +6314,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1457, "end": 1508, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1457, @@ -6403,13 +6403,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1509, "end": 1566, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1509, @@ -6492,13 +6492,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1568, "end": 1595, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1568, @@ -6581,13 +6581,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1596, "end": 1629, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1596, @@ -6670,13 +6670,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1631, "end": 1651, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1631, @@ -6759,13 +6759,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1652, "end": 1676, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1652, @@ -6848,13 +6848,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1677, "end": 1698, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1677, @@ -6937,13 +6937,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 1699, "end": 1725, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 1699, diff --git a/crates/swc_css_parser/tests/fixture/selector/pseudo-classs/an-plus-b/span.rust-debug b/crates/swc_css_parser/tests/fixture/selector/pseudo-classs/an-plus-b/span.rust-debug index 43b1d7a3be4..249780e9f0e 100644 --- a/crates/swc_css_parser/tests/fixture/selector/pseudo-classs/an-plus-b/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/selector/pseudo-classs/an-plus-b/span.rust-debug @@ -16,7 +16,7 @@ error: Rule 1 | :nth-child(2n+1) {} | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:1:1 | 1 | :nth-child(2n+1) {} @@ -82,7 +82,7 @@ error: Rule 2 | :nth-child(2n +1) {} | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:2:1 | 2 | :nth-child(2n +1) {} @@ -148,7 +148,7 @@ error: Rule 3 | :nth-child(2n + 1) {} | ^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:3:1 | 3 | :nth-child(2n + 1) {} @@ -214,7 +214,7 @@ error: Rule 4 | :nth-child(2n+ 1) {} | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:4:1 | 4 | :nth-child(2n+ 1) {} @@ -280,7 +280,7 @@ error: Rule 5 | :nth-child(2n-1) {} | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:5:1 | 5 | :nth-child(2n-1) {} @@ -346,7 +346,7 @@ error: Rule 6 | :nth-child(2n -1) {} | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:6:1 | 6 | :nth-child(2n -1) {} @@ -412,7 +412,7 @@ error: Rule 7 | :nth-child(2n- 1) {} | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:7:1 | 7 | :nth-child(2n- 1) {} @@ -478,7 +478,7 @@ error: Rule 8 | :nth-child(2n - 1) {} | ^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:8:1 | 8 | :nth-child(2n - 1) {} @@ -544,7 +544,7 @@ error: Rule 9 | :nth-child(-2n+1) {} | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:9:1 | 9 | :nth-child(-2n+1) {} @@ -610,7 +610,7 @@ error: Rule 10 | :nth-child(-2n +1) {} | ^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:10:1 | 10 | :nth-child(-2n +1) {} @@ -676,7 +676,7 @@ error: Rule 11 | :nth-child(-2n + 1) {} | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:11:1 | 11 | :nth-child(-2n + 1) {} @@ -742,7 +742,7 @@ error: Rule 12 | :nth-child(-2n+ 1) {} | ^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:12:1 | 12 | :nth-child(-2n+ 1) {} @@ -808,7 +808,7 @@ error: Rule 13 | :nth-child(-2n-1) {} | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:13:1 | 13 | :nth-child(-2n-1) {} @@ -874,7 +874,7 @@ error: Rule 14 | :nth-child(-2n -1) {} | ^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:14:1 | 14 | :nth-child(-2n -1) {} @@ -940,7 +940,7 @@ error: Rule 15 | :nth-child(-2n - 1) {} | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:15:1 | 15 | :nth-child(-2n - 1) {} @@ -1006,7 +1006,7 @@ error: Rule 16 | :nth-child(+2n+1) {} | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:16:1 | 16 | :nth-child(+2n+1) {} @@ -1072,7 +1072,7 @@ error: Rule 17 | :nth-child(+2n +1) {} | ^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:17:1 | 17 | :nth-child(+2n +1) {} @@ -1138,7 +1138,7 @@ error: Rule 18 | :nth-child(+2n + 1) {} | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:18:1 | 18 | :nth-child(+2n + 1) {} @@ -1204,7 +1204,7 @@ error: Rule 19 | :nth-child(+2n+ 1) {} | ^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:19:1 | 19 | :nth-child(+2n+ 1) {} @@ -1270,7 +1270,7 @@ error: Rule 20 | :nth-child(+2n-1) {} | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:20:1 | 20 | :nth-child(+2n-1) {} @@ -1336,7 +1336,7 @@ error: Rule 21 | :nth-child(+2n -1) {} | ^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:21:1 | 21 | :nth-child(+2n -1) {} @@ -1402,7 +1402,7 @@ error: Rule 22 | :nth-child(+2n- 1) {} | ^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:22:1 | 22 | :nth-child(+2n- 1) {} @@ -1468,7 +1468,7 @@ error: Rule 23 | :nth-child(+2n - 1) {} | ^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:23:1 | 23 | :nth-child(+2n - 1) {} @@ -1534,7 +1534,7 @@ error: Rule 24 | :nth-child(n+1) {} | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:24:1 | 24 | :nth-child(n+1) {} @@ -1600,7 +1600,7 @@ error: Rule 25 | :nth-child(n +1) {} | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:25:1 | 25 | :nth-child(n +1) {} @@ -1666,7 +1666,7 @@ error: Rule 26 | :nth-child(n + 1) {} | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:26:1 | 26 | :nth-child(n + 1) {} @@ -1732,7 +1732,7 @@ error: Rule 27 | :nth-child(n+ 1) {} | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:27:1 | 27 | :nth-child(n+ 1) {} @@ -1798,7 +1798,7 @@ error: Rule 28 | :nth-child(n-1) {} | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:28:1 | 28 | :nth-child(n-1) {} @@ -1864,7 +1864,7 @@ error: Rule 29 | :nth-child(n -1) {} | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:29:1 | 29 | :nth-child(n -1) {} @@ -1930,7 +1930,7 @@ error: Rule 30 | :nth-child(n- 1) {} | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:30:1 | 30 | :nth-child(n- 1) {} @@ -1996,7 +1996,7 @@ error: Rule 31 | :nth-child(n - 1) {} | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:31:1 | 31 | :nth-child(n - 1) {} @@ -2062,7 +2062,7 @@ error: Rule 32 | :nth-child(-n+1) {} | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:32:1 | 32 | :nth-child(-n+1) {} @@ -2128,7 +2128,7 @@ error: Rule 33 | :nth-child(-n +1) {} | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:33:1 | 33 | :nth-child(-n +1) {} @@ -2194,7 +2194,7 @@ error: Rule 34 | :nth-child(-n + 1) {} | ^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:34:1 | 34 | :nth-child(-n + 1) {} @@ -2260,7 +2260,7 @@ error: Rule 35 | :nth-child(-n+ 1) {} | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:35:1 | 35 | :nth-child(-n+ 1) {} @@ -2326,7 +2326,7 @@ error: Rule 36 | :nth-child(-n-1) {} | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:36:1 | 36 | :nth-child(-n-1) {} @@ -2392,7 +2392,7 @@ error: Rule 37 | :nth-child(-n -1) {} | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:37:1 | 37 | :nth-child(-n -1) {} @@ -2458,7 +2458,7 @@ error: Rule 38 | :nth-child(-n- 1) {} | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:38:1 | 38 | :nth-child(-n- 1) {} @@ -2524,7 +2524,7 @@ error: Rule 39 | :nth-child(-n - 1) {} | ^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:39:1 | 39 | :nth-child(-n - 1) {} @@ -2590,7 +2590,7 @@ error: Rule 40 | :nth-child(+n+1) {} | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:40:1 | 40 | :nth-child(+n+1) {} @@ -2656,7 +2656,7 @@ error: Rule 41 | :nth-child(+n +1) {} | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:41:1 | 41 | :nth-child(+n +1) {} @@ -2722,7 +2722,7 @@ error: Rule 42 | :nth-child(+n + 1) {} | ^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:42:1 | 42 | :nth-child(+n + 1) {} @@ -2788,7 +2788,7 @@ error: Rule 43 | :nth-child(+n+ 1) {} | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:43:1 | 43 | :nth-child(+n+ 1) {} @@ -2854,7 +2854,7 @@ error: Rule 44 | :nth-child(+n-1) {} | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:44:1 | 44 | :nth-child(+n-1) {} @@ -2920,7 +2920,7 @@ error: Rule 45 | :nth-child(+n -1) {} | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:45:1 | 45 | :nth-child(+n -1) {} @@ -2986,7 +2986,7 @@ error: Rule 46 | :nth-child(+n- 1) {} | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:46:1 | 46 | :nth-child(+n- 1) {} @@ -3052,7 +3052,7 @@ error: Rule 47 | :nth-child(+n - 1) {} | ^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:47:1 | 47 | :nth-child(+n - 1) {} @@ -3118,7 +3118,7 @@ error: Rule 48 | :nth-child(n) {} | ^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:48:1 | 48 | :nth-child(n) {} @@ -3184,7 +3184,7 @@ error: Rule 49 | :nth-child(-n) {} | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:49:1 | 49 | :nth-child(-n) {} @@ -3250,7 +3250,7 @@ error: Rule 50 | :nth-child(+n) {} | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:50:1 | 50 | :nth-child(+n) {} @@ -3316,7 +3316,7 @@ error: Rule 51 | :nth-child(2n) {} | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:51:1 | 51 | :nth-child(2n) {} @@ -3382,7 +3382,7 @@ error: Rule 52 | :nth-child(-2n) {} | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:52:1 | 52 | :nth-child(-2n) {} @@ -3448,7 +3448,7 @@ error: Rule 53 | :nth-child(+2n) {} | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:53:1 | 53 | :nth-child(+2n) {} @@ -3514,7 +3514,7 @@ error: Rule 54 | :nth-child(N) {} | ^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:54:1 | 54 | :nth-child(N) {} @@ -3580,7 +3580,7 @@ error: Rule 55 | :nth-child(-N) {} | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:55:1 | 55 | :nth-child(-N) {} @@ -3646,7 +3646,7 @@ error: Rule 56 | :nth-child(+N) {} | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:56:1 | 56 | :nth-child(+N) {} @@ -3712,7 +3712,7 @@ error: Rule 57 | :nth-child(2N) {} | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:57:1 | 57 | :nth-child(2N) {} @@ -3778,7 +3778,7 @@ error: Rule 58 | :nth-child(-2N) {} | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:58:1 | 58 | :nth-child(-2N) {} @@ -3844,7 +3844,7 @@ error: Rule 59 | :nth-child(+2N) {} | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:59:1 | 59 | :nth-child(+2N) {} @@ -3910,7 +3910,7 @@ error: Rule 60 | :nth-child(1) {} | ^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:60:1 | 60 | :nth-child(1) {} @@ -3976,7 +3976,7 @@ error: Rule 61 | :nth-child(-1) {} | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:61:1 | 61 | :nth-child(-1) {} @@ -4042,7 +4042,7 @@ error: Rule 62 | :nth-child(+1) {} | ^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:62:1 | 62 | :nth-child(+1) {} @@ -4108,7 +4108,7 @@ error: Rule 63 | :nth-child(123456n-12345678) {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:63:1 | 63 | :nth-child(123456n-12345678) {} @@ -4174,7 +4174,7 @@ error: Rule 65 | :Nth-Child(2n+1) {} | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:65:1 | 65 | :Nth-Child(2n+1) {} @@ -4240,7 +4240,7 @@ error: Rule 66 | :NTH-CHILD(2n+1) {} | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:66:1 | 66 | :NTH-CHILD(2n+1) {} @@ -4306,7 +4306,7 @@ error: Rule 68 | :nth-child(odd) {} | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:68:1 | 68 | :nth-child(odd) {} @@ -4372,7 +4372,7 @@ error: Rule 69 | :nth-child(ODD) {} | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:69:1 | 69 | :nth-child(ODD) {} @@ -4438,7 +4438,7 @@ error: Rule 70 | :nth-child(oDd) {} | ^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:70:1 | 70 | :nth-child(oDd) {} @@ -4504,7 +4504,7 @@ error: Rule 71 | :nth-child(even) {} | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:71:1 | 71 | :nth-child(even) {} @@ -4570,7 +4570,7 @@ error: Rule 72 | :nth-child(eVeN) {} | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:72:1 | 72 | :nth-child(eVeN) {} @@ -4636,7 +4636,7 @@ error: Rule 73 | :nth-child(EVEN) {} | ^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:73:1 | 73 | :nth-child(EVEN) {} @@ -4702,7 +4702,7 @@ error: Rule 75 | :nth-child(/*test*/2n/*test*/+/*test*/1/*test*/) {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:75:1 | 75 | :nth-child(/*test*/2n/*test*/+/*test*/1/*test*/) {} @@ -4768,7 +4768,7 @@ error: Rule 76 | :nth-last-child(/*test*/+3n/*test*/-/*test*/2/*test*/) {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:76:1 | 76 | :nth-last-child(/*test*/+3n/*test*/-/*test*/2/*test*/) {} @@ -4834,7 +4834,7 @@ error: Rule 78 | :nth-child( 2n + 1 ) {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:78:1 | 78 | :nth-child( 2n + 1 ) {} @@ -4900,7 +4900,7 @@ error: Rule 79 | :nth-last-child( +3n - 2 ) {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:79:1 | 79 | :nth-last-child( +3n - 2 ) {} @@ -4966,7 +4966,7 @@ error: Rule 81 | :nth-child(-2n+1) {} | ^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:81:1 | 81 | :nth-child(-2n+1) {} @@ -5032,7 +5032,7 @@ error: Rule 82 | :nth-last-child(2n+1) {} | ^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:82:1 | 82 | :nth-last-child(2n+1) {} @@ -5098,7 +5098,7 @@ error: Rule 83 | :nth-of-type(2n+1) {} | ^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:83:1 | 83 | :nth-of-type(2n+1) {} @@ -5164,7 +5164,7 @@ error: Rule 84 | :nth-last-of-type(2n+1) {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/pseudo-classs/an-plus-b/input.css:84:1 | 84 | :nth-last-of-type(2n+1) {} diff --git a/crates/swc_css_parser/tests/fixture/selector/type/output.json b/crates/swc_css_parser/tests/fixture/selector/type/output.json index 8304c47e779..be8dc14898c 100644 --- a/crates/swc_css_parser/tests/fixture/selector/type/output.json +++ b/crates/swc_css_parser/tests/fixture/selector/type/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 6, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, @@ -82,13 +82,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 7, "end": 16, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 7, @@ -157,13 +157,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 17, "end": 25, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 17, @@ -232,13 +232,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 26, "end": 32, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 26, @@ -307,13 +307,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 33, "end": 40, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 33, @@ -382,13 +382,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 41, "end": 46, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 41, @@ -448,13 +448,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 47, "end": 53, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 47, @@ -514,13 +514,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 54, "end": 62, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 54, diff --git a/crates/swc_css_parser/tests/fixture/selector/type/span.rust-debug b/crates/swc_css_parser/tests/fixture/selector/type/span.rust-debug index 4a7ce7ba166..42a43cd09e1 100644 --- a/crates/swc_css_parser/tests/fixture/selector/type/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/selector/type/span.rust-debug @@ -16,7 +16,7 @@ error: Rule 1 | *|* {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/type/input.css:1:1 | 1 | *|* {} @@ -64,7 +64,7 @@ error: Rule 2 | foo|h1 {} | ^^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/type/input.css:2:1 | 2 | foo|h1 {} @@ -118,7 +118,7 @@ error: Rule 3 | foo|* {} | ^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/type/input.css:3:1 | 3 | foo|* {} @@ -166,7 +166,7 @@ error: Rule 4 | |h1 {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/type/input.css:4:1 | 4 | |h1 {} @@ -220,7 +220,7 @@ error: Rule 5 | *|h1 {} | ^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/type/input.css:5:1 | 5 | *|h1 {} @@ -274,7 +274,7 @@ error: Rule 6 | h1 {} | ^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/type/input.css:6:1 | 6 | h1 {} @@ -322,7 +322,7 @@ error: Rule 7 | \2d {} | ^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/type/input.css:7:1 | 7 | \2d {} @@ -370,7 +370,7 @@ error: Rule 8 | \2d a {} | ^^^^^^^^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/type/input.css:8:1 | 8 | \2d a {} diff --git a/crates/swc_css_parser/tests/fixture/selector/universal/output.json b/crates/swc_css_parser/tests/fixture/selector/universal/output.json index b3abb36d8db..e4501fe8a77 100644 --- a/crates/swc_css_parser/tests/fixture/selector/universal/output.json +++ b/crates/swc_css_parser/tests/fixture/selector/universal/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 25, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/selector/universal/span.rust-debug b/crates/swc_css_parser/tests/fixture/selector/universal/span.rust-debug index 926af57a9aa..def905b043d 100644 --- a/crates/swc_css_parser/tests/fixture/selector/universal/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/selector/universal/span.rust-debug @@ -14,7 +14,7 @@ error: Rule 3 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/selector/universal/input.css:1:1 | 1 | / * { diff --git a/crates/swc_css_parser/tests/fixture/styled-jsx/selector/1/output.json b/crates/swc_css_parser/tests/fixture/styled-jsx/selector/1/output.json index e91ba43be96..546bf9f184d 100644 --- a/crates/swc_css_parser/tests/fixture/styled-jsx/selector/1/output.json +++ b/crates/swc_css_parser/tests/fixture/styled-jsx/selector/1/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 37, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/styled-jsx/selector/1/span.rust-debug b/crates/swc_css_parser/tests/fixture/styled-jsx/selector/1/span.rust-debug index ab0d7528071..83916b36822 100644 --- a/crates/swc_css_parser/tests/fixture/styled-jsx/selector/1/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/styled-jsx/selector/1/span.rust-debug @@ -14,7 +14,7 @@ error: Rule 3 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/styled-jsx/selector/1/input.css:1:1 | 1 | / :global(.foo + a) { diff --git a/crates/swc_css_parser/tests/fixture/styled-jsx/selector/2/output.json b/crates/swc_css_parser/tests/fixture/styled-jsx/selector/2/output.json index 81b27999e8f..6d4a0241121 100644 --- a/crates/swc_css_parser/tests/fixture/styled-jsx/selector/2/output.json +++ b/crates/swc_css_parser/tests/fixture/styled-jsx/selector/2/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 48, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/styled-jsx/selector/2/span.rust-debug b/crates/swc_css_parser/tests/fixture/styled-jsx/selector/2/span.rust-debug index b04a1635ab0..37d446f4cc8 100644 --- a/crates/swc_css_parser/tests/fixture/styled-jsx/selector/2/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/styled-jsx/selector/2/span.rust-debug @@ -14,7 +14,7 @@ error: Rule 3 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/styled-jsx/selector/2/input.css:1:1 | 1 | / p :global(span:not(.test)) { diff --git a/crates/swc_css_parser/tests/fixture/stylis/comma/01/output.json b/crates/swc_css_parser/tests/fixture/stylis/comma/01/output.json index 1b598f8d332..92a3f03c2db 100644 --- a/crates/swc_css_parser/tests/fixture/stylis/comma/01/output.json +++ b/crates/swc_css_parser/tests/fixture/stylis/comma/01/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 54, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/stylis/comma/01/span.rust-debug b/crates/swc_css_parser/tests/fixture/stylis/comma/01/span.rust-debug index 692a8bb17b2..cb70ea3f97a 100644 --- a/crates/swc_css_parser/tests/fixture/stylis/comma/01/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/stylis/comma/01/span.rust-debug @@ -14,7 +14,7 @@ error: Rule 3 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/stylis/comma/01/input.css:1:1 | 1 | / a { diff --git a/crates/swc_css_parser/tests/fixture/value/custom-property/output.json b/crates/swc_css_parser/tests/fixture/value/custom-property/output.json index 67b5fcd49c4..3fbce71bcda 100644 --- a/crates/swc_css_parser/tests/fixture/value/custom-property/output.json +++ b/crates/swc_css_parser/tests/fixture/value/custom-property/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 432, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/value/custom-property/span.rust-debug b/crates/swc_css_parser/tests/fixture/value/custom-property/span.rust-debug index 37636864bf5..80705b708d7 100644 --- a/crates/swc_css_parser/tests/fixture/value/custom-property/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/value/custom-property/span.rust-debug @@ -22,7 +22,7 @@ error: Rule 21 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/value/custom-property/input.css:1:1 | 1 | / :root { diff --git a/crates/swc_css_parser/tests/fixture/value/escaped/output.json b/crates/swc_css_parser/tests/fixture/value/escaped/output.json index a2b6f3e8852..d4f8f07ee88 100644 --- a/crates/swc_css_parser/tests/fixture/value/escaped/output.json +++ b/crates/swc_css_parser/tests/fixture/value/escaped/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 26, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/value/escaped/span.rust-debug b/crates/swc_css_parser/tests/fixture/value/escaped/span.rust-debug index 5629330746c..158da090bca 100644 --- a/crates/swc_css_parser/tests/fixture/value/escaped/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/value/escaped/span.rust-debug @@ -14,7 +14,7 @@ error: Rule 3 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/value/escaped/input.css:1:1 | 1 | / table { diff --git a/crates/swc_css_parser/tests/fixture/value/quotes/output.json b/crates/swc_css_parser/tests/fixture/value/quotes/output.json index 9a0962eabf3..ada588803ce 100644 --- a/crates/swc_css_parser/tests/fixture/value/quotes/output.json +++ b/crates/swc_css_parser/tests/fixture/value/quotes/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 878, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, @@ -684,13 +684,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 880, "end": 937, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 880, @@ -814,13 +814,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 938, "end": 993, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 938, diff --git a/crates/swc_css_parser/tests/fixture/value/quotes/span.rust-debug b/crates/swc_css_parser/tests/fixture/value/quotes/span.rust-debug index 0255e2ebb6e..cbc2bb1922f 100644 --- a/crates/swc_css_parser/tests/fixture/value/quotes/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/value/quotes/span.rust-debug @@ -22,7 +22,7 @@ error: Rule 29 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/value/quotes/input.css:1:1 | 1 | / a::before { @@ -594,7 +594,7 @@ error: Rule 34 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/value/quotes/input.css:31:1 | 31 | / a[title="a not s\ @@ -707,7 +707,7 @@ error: Rule 37 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/value/quotes/input.css:35:1 | 35 | / a[title="a not so very long title"] { diff --git a/crates/swc_css_parser/tests/fixture/value/square-brackets/output.json b/crates/swc_css_parser/tests/fixture/value/square-brackets/output.json index 7c396c96431..ce2d4e1a4e0 100644 --- a/crates/swc_css_parser/tests/fixture/value/square-brackets/output.json +++ b/crates/swc_css_parser/tests/fixture/value/square-brackets/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 156, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/fixture/value/square-brackets/span.rust-debug b/crates/swc_css_parser/tests/fixture/value/square-brackets/span.rust-debug index 894a65d1a9b..28718c5736b 100644 --- a/crates/swc_css_parser/tests/fixture/value/square-brackets/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/value/square-brackets/span.rust-debug @@ -22,7 +22,7 @@ error: Rule 7 | | } | |_^ -error: StyleRule +error: QualifiedRule --> $DIR/tests/fixture/value/square-brackets/input.css:1:1 | 1 | / div { diff --git a/crates/swc_css_parser/tests/line-comment/css-in-js/1/output.json b/crates/swc_css_parser/tests/line-comment/css-in-js/1/output.json index 60e092f40d4..f9f42d7197f 100644 --- a/crates/swc_css_parser/tests/line-comment/css-in-js/1/output.json +++ b/crates/swc_css_parser/tests/line-comment/css-in-js/1/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 16, "end": 39, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 16, diff --git a/crates/swc_css_parser/tests/line-comment/css-in-js/2/output.json b/crates/swc_css_parser/tests/line-comment/css-in-js/2/output.json index 5d7e11e732b..186a362f2ab 100644 --- a/crates/swc_css_parser/tests/line-comment/css-in-js/2/output.json +++ b/crates/swc_css_parser/tests/line-comment/css-in-js/2/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 43, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/line-comment/css-in-js/3/output.json b/crates/swc_css_parser/tests/line-comment/css-in-js/3/output.json index f9655c7ae3b..98fcfbb8e50 100644 --- a/crates/swc_css_parser/tests/line-comment/css-in-js/3/output.json +++ b/crates/swc_css_parser/tests/line-comment/css-in-js/3/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 43, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/line-comment/css-in-js/4/output.json b/crates/swc_css_parser/tests/line-comment/css-in-js/4/output.json index 140d6a46a1c..ee03f8db716 100644 --- a/crates/swc_css_parser/tests/line-comment/css-in-js/4/output.json +++ b/crates/swc_css_parser/tests/line-comment/css-in-js/4/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 55, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/line-comment/css-in-js/5/output.json b/crates/swc_css_parser/tests/line-comment/css-in-js/5/output.json index 6eb978538b2..54b5b263f5c 100644 --- a/crates/swc_css_parser/tests/line-comment/css-in-js/5/output.json +++ b/crates/swc_css_parser/tests/line-comment/css-in-js/5/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 32, "end": 55, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 32, diff --git a/crates/swc_css_parser/tests/line-comment/css-in-js/6/output.json b/crates/swc_css_parser/tests/line-comment/css-in-js/6/output.json index d3c697b4caa..e9d0b6590c0 100644 --- a/crates/swc_css_parser/tests/line-comment/css-in-js/6/output.json +++ b/crates/swc_css_parser/tests/line-comment/css-in-js/6/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 63, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/recovery/bad-url-token/double-quotes/output.json b/crates/swc_css_parser/tests/recovery/bad-url-token/double-quotes/output.json index 7de49760069..d7a33d8a01b 100644 --- a/crates/swc_css_parser/tests/recovery/bad-url-token/double-quotes/output.json +++ b/crates/swc_css_parser/tests/recovery/bad-url-token/double-quotes/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 56, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/recovery/bad-url-token/left-parenthesis/output.json b/crates/swc_css_parser/tests/recovery/bad-url-token/left-parenthesis/output.json index f4b25b2ff4b..b756a2fc60c 100644 --- a/crates/swc_css_parser/tests/recovery/bad-url-token/left-parenthesis/output.json +++ b/crates/swc_css_parser/tests/recovery/bad-url-token/left-parenthesis/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 56, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/recovery/bad-url-token/single-quotes/output.json b/crates/swc_css_parser/tests/recovery/bad-url-token/single-quotes/output.json index 08b98f0db51..a46bff3e7da 100644 --- a/crates/swc_css_parser/tests/recovery/bad-url-token/single-quotes/output.json +++ b/crates/swc_css_parser/tests/recovery/bad-url-token/single-quotes/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 56, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/recovery/bad-url-token/whitespace/output.json b/crates/swc_css_parser/tests/recovery/bad-url-token/whitespace/output.json index a224b3d5fcf..787063cd981 100644 --- a/crates/swc_css_parser/tests/recovery/bad-url-token/whitespace/output.json +++ b/crates/swc_css_parser/tests/recovery/bad-url-token/whitespace/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 60, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/recovery/delim-token/ampersand/output.json b/crates/swc_css_parser/tests/recovery/delim-token/ampersand/output.json index 8a0ddb774ae..003fd64c119 100644 --- a/crates/swc_css_parser/tests/recovery/delim-token/ampersand/output.json +++ b/crates/swc_css_parser/tests/recovery/delim-token/ampersand/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/recovery/delim-token/asterisk/output.json b/crates/swc_css_parser/tests/recovery/delim-token/asterisk/output.json index 9f485df91d4..070c0382aab 100644 --- a/crates/swc_css_parser/tests/recovery/delim-token/asterisk/output.json +++ b/crates/swc_css_parser/tests/recovery/delim-token/asterisk/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 19, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/recovery/delim-token/at-sign/output.json b/crates/swc_css_parser/tests/recovery/delim-token/at-sign/output.json index c62e299fe73..ba049eec325 100644 --- a/crates/swc_css_parser/tests/recovery/delim-token/at-sign/output.json +++ b/crates/swc_css_parser/tests/recovery/delim-token/at-sign/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 23, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/recovery/delim-token/bang/output.json b/crates/swc_css_parser/tests/recovery/delim-token/bang/output.json index 4a9ea474a9f..0143d76e0c2 100644 --- a/crates/swc_css_parser/tests/recovery/delim-token/bang/output.json +++ b/crates/swc_css_parser/tests/recovery/delim-token/bang/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 20, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/recovery/delim-token/bar/output.json b/crates/swc_css_parser/tests/recovery/delim-token/bar/output.json index 5a0928cf41b..5c17a140c24 100644 --- a/crates/swc_css_parser/tests/recovery/delim-token/bar/output.json +++ b/crates/swc_css_parser/tests/recovery/delim-token/bar/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/recovery/delim-token/caret/output.json b/crates/swc_css_parser/tests/recovery/delim-token/caret/output.json index 86571ed48c5..f3540ee33ce 100644 --- a/crates/swc_css_parser/tests/recovery/delim-token/caret/output.json +++ b/crates/swc_css_parser/tests/recovery/delim-token/caret/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/recovery/delim-token/div/output.json b/crates/swc_css_parser/tests/recovery/delim-token/div/output.json index ad2c5576dd1..88b2ab1c9c3 100644 --- a/crates/swc_css_parser/tests/recovery/delim-token/div/output.json +++ b/crates/swc_css_parser/tests/recovery/delim-token/div/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/recovery/delim-token/dollar/output.json b/crates/swc_css_parser/tests/recovery/delim-token/dollar/output.json index 2ec3faa1cff..d3304a1014a 100644 --- a/crates/swc_css_parser/tests/recovery/delim-token/dollar/output.json +++ b/crates/swc_css_parser/tests/recovery/delim-token/dollar/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/recovery/delim-token/equals/output.json b/crates/swc_css_parser/tests/recovery/delim-token/equals/output.json index d9f4e2b70f7..6de24a7d8ed 100644 --- a/crates/swc_css_parser/tests/recovery/delim-token/equals/output.json +++ b/crates/swc_css_parser/tests/recovery/delim-token/equals/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/recovery/delim-token/greater-than/output.json b/crates/swc_css_parser/tests/recovery/delim-token/greater-than/output.json index 08a6ab4b4d3..2bb9cbc1334 100644 --- a/crates/swc_css_parser/tests/recovery/delim-token/greater-than/output.json +++ b/crates/swc_css_parser/tests/recovery/delim-token/greater-than/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/recovery/delim-token/hash/output.json b/crates/swc_css_parser/tests/recovery/delim-token/hash/output.json index db42868a029..cbec06e0e74 100644 --- a/crates/swc_css_parser/tests/recovery/delim-token/hash/output.json +++ b/crates/swc_css_parser/tests/recovery/delim-token/hash/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 20, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/recovery/delim-token/less-than/output.json b/crates/swc_css_parser/tests/recovery/delim-token/less-than/output.json index 7cfb4a7f39e..2265520ad52 100644 --- a/crates/swc_css_parser/tests/recovery/delim-token/less-than/output.json +++ b/crates/swc_css_parser/tests/recovery/delim-token/less-than/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 19, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/recovery/delim-token/minus/output.json b/crates/swc_css_parser/tests/recovery/delim-token/minus/output.json index a8670c3f82d..7b04f5a3d92 100644 --- a/crates/swc_css_parser/tests/recovery/delim-token/minus/output.json +++ b/crates/swc_css_parser/tests/recovery/delim-token/minus/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/recovery/delim-token/percent/output.json b/crates/swc_css_parser/tests/recovery/delim-token/percent/output.json index c1a6582eea6..152b240b937 100644 --- a/crates/swc_css_parser/tests/recovery/delim-token/percent/output.json +++ b/crates/swc_css_parser/tests/recovery/delim-token/percent/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/recovery/delim-token/plus/output.json b/crates/swc_css_parser/tests/recovery/delim-token/plus/output.json index ae42238c8bf..e9de0cab31c 100644 --- a/crates/swc_css_parser/tests/recovery/delim-token/plus/output.json +++ b/crates/swc_css_parser/tests/recovery/delim-token/plus/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 18, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/recovery/delim-token/question-mark/output.json b/crates/swc_css_parser/tests/recovery/delim-token/question-mark/output.json index c67912aa9a5..cdff9ae9a2a 100644 --- a/crates/swc_css_parser/tests/recovery/delim-token/question-mark/output.json +++ b/crates/swc_css_parser/tests/recovery/delim-token/question-mark/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 19, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/recovery/delim-token/star/output.json b/crates/swc_css_parser/tests/recovery/delim-token/star/output.json index 9f485df91d4..070c0382aab 100644 --- a/crates/swc_css_parser/tests/recovery/delim-token/star/output.json +++ b/crates/swc_css_parser/tests/recovery/delim-token/star/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 19, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/recovery/delim-token/tilde/output.json b/crates/swc_css_parser/tests/recovery/delim-token/tilde/output.json index 5e917bff233..c004df5c290 100644 --- a/crates/swc_css_parser/tests/recovery/delim-token/tilde/output.json +++ b/crates/swc_css_parser/tests/recovery/delim-token/tilde/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 19, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/recovery/function-token/output.json b/crates/swc_css_parser/tests/recovery/function-token/output.json index e89161072b9..a5137cf5d85 100644 --- a/crates/swc_css_parser/tests/recovery/function-token/output.json +++ b/crates/swc_css_parser/tests/recovery/function-token/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 29, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/recovery/selector/pseudo-class/an-plus-b/output.json b/crates/swc_css_parser/tests/recovery/selector/pseudo-class/an-plus-b/output.json index 92626c1f598..bea8c16948e 100644 --- a/crates/swc_css_parser/tests/recovery/selector/pseudo-class/an-plus-b/output.json +++ b/crates/swc_css_parser/tests/recovery/selector/pseudo-class/an-plus-b/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 22, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/recovery/styled-jsx/1/output.json b/crates/swc_css_parser/tests/recovery/styled-jsx/1/output.json index 716ea71b2c7..3488f8ea055 100644 --- a/crates/swc_css_parser/tests/recovery/styled-jsx/1/output.json +++ b/crates/swc_css_parser/tests/recovery/styled-jsx/1/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 109, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, @@ -168,13 +168,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 111, "end": 286, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 111, @@ -514,13 +514,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 308, "end": 413, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 308, @@ -769,13 +769,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 437, "end": 542, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 437, diff --git a/crates/swc_css_parser/tests/recovery/styled-jsx/2/output.json b/crates/swc_css_parser/tests/recovery/styled-jsx/2/output.json index 5e03902b170..e0111d015f3 100644 --- a/crates/swc_css_parser/tests/recovery/styled-jsx/2/output.json +++ b/crates/swc_css_parser/tests/recovery/styled-jsx/2/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 66, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/recovery/value/quotes/output.json b/crates/swc_css_parser/tests/recovery/value/quotes/output.json index 4b376382553..6f53aa49237 100644 --- a/crates/swc_css_parser/tests/recovery/value/quotes/output.json +++ b/crates/swc_css_parser/tests/recovery/value/quotes/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 39, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_parser/tests/recovery/vercel/001/output.json b/crates/swc_css_parser/tests/recovery/vercel/001/output.json index ad236c74180..a74b56d3946 100644 --- a/crates/swc_css_parser/tests/recovery/vercel/001/output.json +++ b/crates/swc_css_parser/tests/recovery/vercel/001/output.json @@ -63,13 +63,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 32, "end": 85, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 32, @@ -202,13 +202,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 90, "end": 140, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 90, @@ -321,13 +321,13 @@ } }, { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 145, "end": 271, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 145, diff --git a/crates/swc_css_parser/tests/recovery/whitespaces/output.json b/crates/swc_css_parser/tests/recovery/whitespaces/output.json index 9669ad05c4e..ad86ef38c04 100644 --- a/crates/swc_css_parser/tests/recovery/whitespaces/output.json +++ b/crates/swc_css_parser/tests/recovery/whitespaces/output.json @@ -7,13 +7,13 @@ }, "rules": [ { - "type": "StyleRule", + "type": "QualifiedRule", "span": { "start": 0, "end": 66, "ctxt": 0 }, - "selectors": { + "prelude": { "type": "SelectorList", "span": { "start": 0, diff --git a/crates/swc_css_visit/src/lib.rs b/crates/swc_css_visit/src/lib.rs index 4d590611c83..7b647f96713 100644 --- a/crates/swc_css_visit/src/lib.rs +++ b/crates/swc_css_visit/src/lib.rs @@ -34,9 +34,9 @@ define!({ pub important: Option, } - pub struct StyleRule { + pub struct QualifiedRule { pub span: Span, - pub selectors: SelectorList, + pub prelude: SelectorList, pub block: Block, } @@ -292,11 +292,11 @@ define!({ } pub enum Rule { - Style(StyleRule), - - Invalid(Tokens), + QualifiedRule(QualifiedRule), AtRule(AtRule), + + Invalid(Tokens), } pub struct Invalid {