diff --git a/crates/swc_css_codegen/tests/fixture/at-rules/unknown/output.css b/crates/swc_css_codegen/tests/fixture/at-rules/unknown/output.css index 32208f9359d..14e246fd3f8 100644 --- a/crates/swc_css_codegen/tests/fixture/at-rules/unknown/output.css +++ b/crates/swc_css_codegen/tests/fixture/at-rules/unknown/output.css @@ -15,4 +15,4 @@ @unknown x ( a + b ) ; @unknown x ( a - b ) ; @unknown x ( a , b ) ; -@unknown x(a, b) ; +@unknown x( a , b ) ; diff --git a/crates/swc_css_codegen/tests/fixture/at-rules/unknown/output.min.css b/crates/swc_css_codegen/tests/fixture/at-rules/unknown/output.min.css index 5e9408114c7..992b8092e55 100644 --- a/crates/swc_css_codegen/tests/fixture/at-rules/unknown/output.min.css +++ b/crates/swc_css_codegen/tests/fixture/at-rules/unknown/output.min.css @@ -1 +1 @@ -@unknown {}@unknown url(image.png) {}@unknown url( image.png ) {}@unknown url("image.png") {}@unknown url( image.png img ) {}@unknown url( image.png"" img ) {}@unknown url( image.png\ img ) {}@unknown url( image.png\) ) {}@unknown;@unknown x;@unknown x{}@unknown x {}@unknown{}@unknown{a: b; c: d;}@unknown x ( a + b ) ;@unknown x ( a - b ) ;@unknown x ( a , b ) ;@unknown x(a,b) ; +@unknown {}@unknown url(image.png) {}@unknown url( image.png ) {}@unknown url("image.png") {}@unknown url( image.png img ) {}@unknown url( image.png"" img ) {}@unknown url( image.png\ img ) {}@unknown url( image.png\) ) {}@unknown;@unknown x;@unknown x{}@unknown x {}@unknown{}@unknown{a: b; c: d;}@unknown x ( a + b ) ;@unknown x ( a - b ) ;@unknown x ( a , b ) ;@unknown x( a , b ) ; diff --git a/crates/swc_css_parser/src/parser/at_rule.rs b/crates/swc_css_parser/src/parser/at_rule.rs index 5c6fe380c2f..ecdcddbe316 100644 --- a/crates/swc_css_parser/src/parser/at_rule.rs +++ b/crates/swc_css_parser/src/parser/at_rule.rs @@ -408,7 +408,15 @@ where Token::Function { value, .. } if *value.to_ascii_lowercase() == *"layer" => { - let name = ImportPreludeLayerName::Function(parser.parse()?); + // TODO improve me + let ctx = Ctx { + block_contents_grammar: BlockContentsGrammar::DeclarationValue, + ..parser.ctx + }; + + let name = ImportPreludeLayerName::Function( + parser.with_ctx(ctx).parse_as::()?, + ); parser.input.skip_ws()?; @@ -679,7 +687,12 @@ where } }; - let component_value = self.parse()?; + let ctx = Ctx { + block_contents_grammar: BlockContentsGrammar::NoGrammar, + ..self.ctx + }; + let component_value = + self.with_ctx(ctx).parse_as::()?; list_of_component_value.children.push(component_value); list_of_component_value.span = Span::new( @@ -999,7 +1012,9 @@ where Ok(SupportsFeature::Declaration(declaration)) } Token::Function { value, .. } if &*value.to_lowercase() == "selector" => { + // TODO improve me let ctx = Ctx { + block_contents_grammar: BlockContentsGrammar::DeclarationValue, in_supports_at_rule: true, ..self.ctx }; @@ -1064,7 +1079,15 @@ where { Ok(DocumentPreludeMatchingFunction::Url(self.parse()?)) } else { - Ok(DocumentPreludeMatchingFunction::Function(self.parse()?)) + // TODO improve me + let ctx = Ctx { + block_contents_grammar: BlockContentsGrammar::DeclarationValue, + ..self.ctx + }; + + let function = self.with_ctx(ctx).parse_as::()?; + + Ok(DocumentPreludeMatchingFunction::Function(function)) } } _ => { diff --git a/crates/swc_css_parser/src/parser/base.rs b/crates/swc_css_parser/src/parser/base.rs index 628a911a095..ec0bb9a0bb5 100644 --- a/crates/swc_css_parser/src/parser/base.rs +++ b/crates/swc_css_parser/src/parser/base.rs @@ -499,7 +499,33 @@ where { fn parse(&mut self) -> PResult { match self.ctx.block_contents_grammar { - BlockContentsGrammar::DeclarationValue => { + BlockContentsGrammar::NoGrammar => { + // Consume the next input token. + match cur!(self) { + // If the current input token is a <{-token>, <[-token>, or <(-token>, consume a + // simple block and return it. + tok!("[") | tok!("(") | tok!("{") => { + let block = self.parse()?; + + Ok(ComponentValue::SimpleBlock(block)) + } + // Otherwise, if the current input token is a , consume a + // function and return it. + tok!("function") => Ok(ComponentValue::Function(self.parse()?)), + // Otherwise, return the current input token. + _ => { + let token = self.input.bump()?; + + match token { + Some(t) => Ok(ComponentValue::PreservedToken(t)), + _ => { + unreachable!(); + } + } + } + } + } + _ => { // TODO refactor me self.input.skip_ws()?; @@ -576,36 +602,6 @@ where Err(Error::new(span, ErrorKind::Expected("Declaration value"))) } - _ => { - // Consume the next input token. - match cur!(self) { - // If the current input token is a <{-token>, <[-token>, or <(-token>, consume a - // simple block and return it. - tok!("[") | tok!("(") | tok!("{") => { - let ctx = Ctx { - block_contents_grammar: BlockContentsGrammar::NoGrammar, - ..self.ctx - }; - let block = self.with_ctx(ctx).parse_as::()?; - - Ok(ComponentValue::SimpleBlock(block)) - } - // Otherwise, if the current input token is a , consume a - // function and return it. - tok!("function") => Ok(ComponentValue::Function(self.parse()?)), - // Otherwise, return the current input token. - _ => { - let token = self.input.bump()?; - - match token { - Some(t) => Ok(ComponentValue::PreservedToken(t)), - _ => { - unreachable!(); - } - } - } - } - } } } } diff --git a/crates/swc_css_parser/src/parser/value/mod.rs b/crates/swc_css_parser/src/parser/value/mod.rs index 455f9e04d39..f571b83a950 100644 --- a/crates/swc_css_parser/src/parser/value/mod.rs +++ b/crates/swc_css_parser/src/parser/value/mod.rs @@ -2318,22 +2318,34 @@ where // anything else // Reconsume the current input token. Consume a component value and append the // returned value to the function’s value. - _ => { - let state = self.input.state(); - let values = self.parse_function_values(function_name); + _ => match self.ctx.block_contents_grammar { + BlockContentsGrammar::NoGrammar => { + let ctx = Ctx { + block_contents_grammar: BlockContentsGrammar::NoGrammar, + ..self.ctx + }; - match values { - Ok(values) => { - function.value.extend(values); - } - Err(err) => { - self.errors.push(err); - self.input.reset(&state); + let component_value = self.with_ctx(ctx).parse_as::()?; - function.value.push(self.parse()?); + function.value.push(component_value); + } + _ => { + let state = self.input.state(); + let values = self.parse_function_values(function_name); + + match values { + Ok(values) => { + function.value.extend(values); + } + Err(err) => { + self.errors.push(err); + self.input.reset(&state); + + function.value.push(self.parse()?); + } } } - } + }, } } diff --git a/crates/swc_css_parser/tests/fixture/at-rule/supports/output.json b/crates/swc_css_parser/tests/fixture/at-rule/supports/output.json index ddc8b591157..ec3f674e484 100644 --- a/crates/swc_css_parser/tests/fixture/at-rule/supports/output.json +++ b/crates/swc_css_parser/tests/fixture/at-rule/supports/output.json @@ -3972,14 +3972,18 @@ }, "value": [ { - "type": "String", + "type": "PreservedToken", "span": { "start": 1718, "end": 1729, "ctxt": 0 }, - "value": ".minwidth", - "raw": "\".minwidth\"" + "token": { + "String": { + "value": ".minwidth", + "raw": "\".minwidth\"" + } + } } ] } @@ -4853,52 +4857,93 @@ }, "value": [ { - "type": "Integer", + "type": "PreservedToken", "span": { "start": 2028, "end": 2030, "ctxt": 0 }, - "value": 10, - "raw": "10" + "token": { + "Number": { + "value": 10.0, + "raw": "10", + "type": "integer" + } + } }, { - "type": "Delimiter", + "type": "PreservedToken", "span": { "start": 2030, "end": 2031, "ctxt": 0 }, - "value": "," + "token": "Comma" }, { - "type": "Integer", + "type": "PreservedToken", + "span": { + "start": 2031, + "end": 2032, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", "span": { "start": 2032, "end": 2034, "ctxt": 0 }, - "value": 20, - "raw": "20" + "token": { + "Number": { + "value": 20.0, + "raw": "20", + "type": "integer" + } + } }, { - "type": "Delimiter", + "type": "PreservedToken", "span": { "start": 2034, "end": 2035, "ctxt": 0 }, - "value": "," + "token": "Comma" }, { - "type": "Integer", + "type": "PreservedToken", + "span": { + "start": 2035, + "end": 2036, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", "span": { "start": 2036, "end": 2038, "ctxt": 0 }, - "value": 40, - "raw": "40" + "token": { + "Number": { + "value": 40.0, + "raw": "40", + "type": "integer" + } + } } ] } @@ -5057,52 +5102,93 @@ }, "value": [ { - "type": "Integer", + "type": "PreservedToken", "span": { "start": 2088, "end": 2090, "ctxt": 0 }, - "value": 10, - "raw": "10" + "token": { + "Number": { + "value": 10.0, + "raw": "10", + "type": "integer" + } + } }, { - "type": "Delimiter", + "type": "PreservedToken", "span": { "start": 2090, "end": 2091, "ctxt": 0 }, - "value": "," + "token": "Comma" }, { - "type": "Integer", + "type": "PreservedToken", + "span": { + "start": 2091, + "end": 2092, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", "span": { "start": 2092, "end": 2094, "ctxt": 0 }, - "value": 20, - "raw": "20" + "token": { + "Number": { + "value": 20.0, + "raw": "20", + "type": "integer" + } + } }, { - "type": "Delimiter", + "type": "PreservedToken", "span": { "start": 2094, "end": 2095, "ctxt": 0 }, - "value": "," + "token": "Comma" }, { - "type": "Integer", + "type": "PreservedToken", + "span": { + "start": 2095, + "end": 2096, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", "span": { "start": 2096, "end": 2098, "ctxt": 0 }, - "value": 40, - "raw": "40" + "token": { + "Number": { + "value": 40.0, + "raw": "40", + "type": "integer" + } + } } ] } @@ -5263,52 +5349,145 @@ }, "value": [ { - "type": "Integer", + "type": "PreservedToken", + "span": { + "start": 2152, + "end": 2155, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", "span": { "start": 2155, "end": 2157, "ctxt": 0 }, - "value": 10, - "raw": "10" + "token": { + "Number": { + "value": 10.0, + "raw": "10", + "type": "integer" + } + } }, { - "type": "Delimiter", + "type": "PreservedToken", + "span": { + "start": 2157, + "end": 2160, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", "span": { "start": 2160, "end": 2161, "ctxt": 0 }, - "value": "," + "token": "Comma" }, { - "type": "Integer", + "type": "PreservedToken", + "span": { + "start": 2161, + "end": 2164, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", "span": { "start": 2164, "end": 2166, "ctxt": 0 }, - "value": 20, - "raw": "20" + "token": { + "Number": { + "value": 20.0, + "raw": "20", + "type": "integer" + } + } }, { - "type": "Delimiter", + "type": "PreservedToken", + "span": { + "start": 2166, + "end": 2169, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", "span": { "start": 2169, "end": 2170, "ctxt": 0 }, - "value": "," + "token": "Comma" }, { - "type": "Integer", + "type": "PreservedToken", + "span": { + "start": 2170, + "end": 2173, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", "span": { "start": 2173, "end": 2175, "ctxt": 0 }, - "value": 40, - "raw": "40" + "token": { + "Number": { + "value": 40.0, + "raw": "40", + "type": "integer" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 2175, + "end": 2178, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } } ] } diff --git a/crates/swc_css_parser/tests/fixture/at-rule/supports/span.rust-debug b/crates/swc_css_parser/tests/fixture/at-rule/supports/span.rust-debug index f31be2fbfec..c3d2d526737 100644 --- a/crates/swc_css_parser/tests/fixture/at-rule/supports/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/at-rule/supports/span.rust-debug @@ -4749,7 +4749,7 @@ : ^^^^^^^^^^^ `---- - x Str + x String { value: Atom('.minwidth' type=dynamic), raw: Atom('".minwidth"' type=dynamic) } ,-[$DIR/tests/fixture/at-rule/supports/input.css:51:1] 51 | @supports (--element(".minwidth")) { : ^^^^^^^^^^^ @@ -5706,7 +5706,7 @@ : ^^ `---- - x Integer + x Number { value: 10.0, raw: Atom('10' type=inline), type_flag: Integer } ,-[$DIR/tests/fixture/at-rule/supports/input.css:73:1] 73 | @supports func(10, 20, 40) { : ^^ @@ -5718,19 +5718,31 @@ : ^ `---- - x Delimiter + x Comma ,-[$DIR/tests/fixture/at-rule/supports/input.css:73:1] 73 | @supports func(10, 20, 40) { : ^ `---- + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/supports/input.css:73:1] + 73 | @supports func(10, 20, 40) { + : ^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/supports/input.css:73:1] + 73 | @supports func(10, 20, 40) { + : ^ + `---- + x ComponentValue ,-[$DIR/tests/fixture/at-rule/supports/input.css:73:1] 73 | @supports func(10, 20, 40) { : ^^ `---- - x Integer + x Number { value: 20.0, raw: Atom('20' type=inline), type_flag: Integer } ,-[$DIR/tests/fixture/at-rule/supports/input.css:73:1] 73 | @supports func(10, 20, 40) { : ^^ @@ -5742,19 +5754,31 @@ : ^ `---- - x Delimiter + x Comma ,-[$DIR/tests/fixture/at-rule/supports/input.css:73:1] 73 | @supports func(10, 20, 40) { : ^ `---- + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/supports/input.css:73:1] + 73 | @supports func(10, 20, 40) { + : ^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/supports/input.css:73:1] + 73 | @supports func(10, 20, 40) { + : ^ + `---- + x ComponentValue ,-[$DIR/tests/fixture/at-rule/supports/input.css:73:1] 73 | @supports func(10, 20, 40) { : ^^ `---- - x Integer + x Number { value: 40.0, raw: Atom('40' type=inline), type_flag: Integer } ,-[$DIR/tests/fixture/at-rule/supports/input.css:73:1] 73 | @supports func(10, 20, 40) { : ^^ @@ -5931,7 +5955,7 @@ : ^^ `---- - x Integer + x Number { value: 10.0, raw: Atom('10' type=inline), type_flag: Integer } ,-[$DIR/tests/fixture/at-rule/supports/input.css:77:1] 77 | @supports (func(10, 20, 40)) { : ^^ @@ -5943,19 +5967,31 @@ : ^ `---- - x Delimiter + x Comma ,-[$DIR/tests/fixture/at-rule/supports/input.css:77:1] 77 | @supports (func(10, 20, 40)) { : ^ `---- + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/supports/input.css:77:1] + 77 | @supports (func(10, 20, 40)) { + : ^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/supports/input.css:77:1] + 77 | @supports (func(10, 20, 40)) { + : ^ + `---- + x ComponentValue ,-[$DIR/tests/fixture/at-rule/supports/input.css:77:1] 77 | @supports (func(10, 20, 40)) { : ^^ `---- - x Integer + x Number { value: 20.0, raw: Atom('20' type=inline), type_flag: Integer } ,-[$DIR/tests/fixture/at-rule/supports/input.css:77:1] 77 | @supports (func(10, 20, 40)) { : ^^ @@ -5967,19 +6003,31 @@ : ^ `---- - x Delimiter + x Comma ,-[$DIR/tests/fixture/at-rule/supports/input.css:77:1] 77 | @supports (func(10, 20, 40)) { : ^ `---- + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/supports/input.css:77:1] + 77 | @supports (func(10, 20, 40)) { + : ^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/supports/input.css:77:1] + 77 | @supports (func(10, 20, 40)) { + : ^ + `---- + x ComponentValue ,-[$DIR/tests/fixture/at-rule/supports/input.css:77:1] 77 | @supports (func(10, 20, 40)) { : ^^ `---- - x Integer + x Number { value: 40.0, raw: Atom('40' type=inline), type_flag: Integer } ,-[$DIR/tests/fixture/at-rule/supports/input.css:77:1] 77 | @supports (func(10, 20, 40)) { : ^^ @@ -6150,49 +6198,97 @@ : ^^^^ `---- + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/supports/input.css:81:1] + 81 | @supports ( func( 10 , 20 , 40 ) ) { + : ^^^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/supports/input.css:81:1] + 81 | @supports ( func( 10 , 20 , 40 ) ) { + : ^^^ + `---- + x ComponentValue ,-[$DIR/tests/fixture/at-rule/supports/input.css:81:1] 81 | @supports ( func( 10 , 20 , 40 ) ) { : ^^ `---- - x Integer + x Number { value: 10.0, raw: Atom('10' type=inline), type_flag: Integer } ,-[$DIR/tests/fixture/at-rule/supports/input.css:81:1] 81 | @supports ( func( 10 , 20 , 40 ) ) { : ^^ `---- + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/supports/input.css:81:1] + 81 | @supports ( func( 10 , 20 , 40 ) ) { + : ^^^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/supports/input.css:81:1] + 81 | @supports ( func( 10 , 20 , 40 ) ) { + : ^^^ + `---- + x ComponentValue ,-[$DIR/tests/fixture/at-rule/supports/input.css:81:1] 81 | @supports ( func( 10 , 20 , 40 ) ) { : ^ `---- - x Delimiter + x Comma ,-[$DIR/tests/fixture/at-rule/supports/input.css:81:1] 81 | @supports ( func( 10 , 20 , 40 ) ) { : ^ `---- + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/supports/input.css:81:1] + 81 | @supports ( func( 10 , 20 , 40 ) ) { + : ^^^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/supports/input.css:81:1] + 81 | @supports ( func( 10 , 20 , 40 ) ) { + : ^^^ + `---- + x ComponentValue ,-[$DIR/tests/fixture/at-rule/supports/input.css:81:1] 81 | @supports ( func( 10 , 20 , 40 ) ) { : ^^ `---- - x Integer + x Number { value: 20.0, raw: Atom('20' type=inline), type_flag: Integer } ,-[$DIR/tests/fixture/at-rule/supports/input.css:81:1] 81 | @supports ( func( 10 , 20 , 40 ) ) { : ^^ `---- + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/supports/input.css:81:1] + 81 | @supports ( func( 10 , 20 , 40 ) ) { + : ^^^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/supports/input.css:81:1] + 81 | @supports ( func( 10 , 20 , 40 ) ) { + : ^^^ + `---- + x ComponentValue ,-[$DIR/tests/fixture/at-rule/supports/input.css:81:1] 81 | @supports ( func( 10 , 20 , 40 ) ) { : ^ `---- - x Delimiter + x Comma ,-[$DIR/tests/fixture/at-rule/supports/input.css:81:1] 81 | @supports ( func( 10 , 20 , 40 ) ) { : ^ @@ -6201,15 +6297,39 @@ x ComponentValue ,-[$DIR/tests/fixture/at-rule/supports/input.css:81:1] 81 | @supports ( func( 10 , 20 , 40 ) ) { - : ^^ + : ^^^ `---- - x Integer + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/supports/input.css:81:1] + 81 | @supports ( func( 10 , 20 , 40 ) ) { + : ^^^ + `---- + + x ComponentValue ,-[$DIR/tests/fixture/at-rule/supports/input.css:81:1] 81 | @supports ( func( 10 , 20 , 40 ) ) { : ^^ `---- + x Number { value: 40.0, raw: Atom('40' type=inline), type_flag: Integer } + ,-[$DIR/tests/fixture/at-rule/supports/input.css:81:1] + 81 | @supports ( func( 10 , 20 , 40 ) ) { + : ^^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/supports/input.css:81:1] + 81 | @supports ( func( 10 , 20 , 40 ) ) { + : ^^^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/supports/input.css:81:1] + 81 | @supports ( func( 10 , 20 , 40 ) ) { + : ^^^ + `---- + x SimpleBlock ,-[$DIR/tests/fixture/at-rule/supports/input.css:81:1] 81 | ,-> @supports ( func( 10 , 20 , 40 ) ) { diff --git a/crates/swc_css_parser/tests/fixture/at-rule/unknown/input.css b/crates/swc_css_parser/tests/fixture/at-rule/unknown/input.css index 34f8a89c28a..cb1ea1b9819 100644 --- a/crates/swc_css_parser/tests/fixture/at-rule/unknown/input.css +++ b/crates/swc_css_parser/tests/fixture/at-rule/unknown/input.css @@ -2,8 +2,8 @@ @unknown x y; @unknown "blah"; @unknown \"blah\"; -/*@unknown!*test*!;*/ -/*@unknown!*test*!x!*test*! y;*/ +@unknown /*test*/; +@unknown /*test*/x/*test*/ y; @unknown ; @unknown x y; @@ -15,11 +15,11 @@ @unknown x, y x(1) {p:v} @unknown x, y x(1+2) {p:v} @unknown/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} -/*@unknown!*test*!x!*test*! y!*test*!{!*test*!p!*test*!:!*test*!v!*test*!}*/ -/*@unknown!*test*!x!*test*!,!*test*!y!*test*! x(!*test*!1!*test*!+!*test*!2!*test*!)!*test*!{!*test*!p!*test*!:!*test*!v!*test*!}*/ +@unknown /*test*/x/*test*/ y/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} +/*@unknown !*test*!x!*test*!,!*test*!y!*test*! x(!*test*!1!*test*!+!*test*!2!*test*!)!*test*!{!*test*!p!*test*!:!*test*!v!*test*!}*/ @unknown { p : v } @unknown x y { p : v } -/*@unknown x , y x( 1 + 2 ) { p : v }*/ +@unknown x , y x( 1 + 2 ) { p : v } @unknown {s{p:v}} @unknown x y {s{p:v}} @@ -27,8 +27,8 @@ @unknown x, y f(1+2) {s{p:v}} @unknown { .a { p: v; } .b { p: v } } @unknown/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} -/*@unknown!*test*!x!*test*! y!*test*!{!*test*!s!*test*!{!*test*!p!*test*!:!*test*!v!*test*!}!*test*!}*/ -/*@unknown!*test*!x!*test*!,!*test*!y!*test*! f(!*test*!1!*test*!+!*test*!2!*test*!)!*test*!{!*test*!s!*test*!{!*test*!p!*test*!:!*test*!v!*test*!}!*test*!}*/ +@unknown /*test*/x/*test*/ y/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} +/*@unknown !*test*!x!*test*!,!*test*!y!*test*! f(!*test*!1!*test*!+!*test*!2!*test*!)!*test*!{!*test*!s!*test*!{!*test*!p!*test*!:!*test*!v!*test*!}!*test*!}*/ @unknown { s { p : v } } @unknown x y { s { p : v } } @unknown x , y f( 1 ) { s { p : v } } diff --git a/crates/swc_css_parser/tests/fixture/at-rule/unknown/output.json b/crates/swc_css_parser/tests/fixture/at-rule/unknown/output.json index 6b31f9db644..6a3903abdb1 100644 --- a/crates/swc_css_parser/tests/fixture/at-rule/unknown/output.json +++ b/crates/swc_css_parser/tests/fixture/at-rule/unknown/output.json @@ -2,7 +2,7 @@ "type": "Stylesheet", "span": { "start": 0, - "end": 1675, + "end": 1661, "ctxt": 0 }, "rules": [ @@ -224,15 +224,15 @@ { "type": "AtRule", "span": { - "start": 115, - "end": 126, + "start": 60, + "end": 78, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 116, - "end": 123, + "start": 61, + "end": 68, "ctxt": 0 }, "value": "unknown", @@ -241,21 +241,21 @@ "prelude": { "type": "ListOfComponentValues", "span": { - "start": 123, - "end": 125, + "start": 68, + "end": 69, "ctxt": 0 }, "children": [ { "type": "PreservedToken", "span": { - "start": 123, - "end": 125, + "start": 68, + "end": 69, "ctxt": 0 }, "token": { "WhiteSpace": { - "value": " " + "value": " " } } } @@ -266,15 +266,15 @@ { "type": "AtRule", "span": { - "start": 127, - "end": 142, + "start": 79, + "end": 108, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 128, - "end": 135, + "start": 80, + "end": 87, "ctxt": 0 }, "value": "unknown", @@ -283,29 +283,29 @@ "prelude": { "type": "ListOfComponentValues", "span": { - "start": 135, - "end": 141, + "start": 87, + "end": 107, "ctxt": 0 }, "children": [ { "type": "PreservedToken", "span": { - "start": 135, - "end": 137, + "start": 87, + "end": 88, "ctxt": 0 }, "token": { "WhiteSpace": { - "value": " " + "value": " " } } }, { "type": "PreservedToken", "span": { - "start": 137, - "end": 138, + "start": 96, + "end": 97, "ctxt": 0 }, "token": { @@ -318,21 +318,21 @@ { "type": "PreservedToken", "span": { - "start": 138, - "end": 140, + "start": 105, + "end": 106, "ctxt": 0 }, "token": { "WhiteSpace": { - "value": " " + "value": " " } } }, { "type": "PreservedToken", "span": { - "start": 140, - "end": 141, + "start": 106, + "end": 107, "ctxt": 0 }, "token": { @@ -349,15 +349,15 @@ { "type": "AtRule", "span": { - "start": 144, - "end": 155, + "start": 109, + "end": 120, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 145, - "end": 152, + "start": 110, + "end": 117, "ctxt": 0 }, "value": "unknown", @@ -366,16 +366,141 @@ "prelude": { "type": "ListOfComponentValues", "span": { - "start": 152, - "end": 153, + "start": 117, + "end": 119, "ctxt": 0 }, "children": [ { "type": "PreservedToken", "span": { - "start": 152, - "end": 153, + "start": 117, + "end": 119, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + } + ] + }, + "block": null + }, + { + "type": "AtRule", + "span": { + "start": 121, + "end": 136, + "ctxt": 0 + }, + "name": { + "type": "Ident", + "span": { + "start": 122, + "end": 129, + "ctxt": 0 + }, + "value": "unknown", + "raw": "unknown" + }, + "prelude": { + "type": "ListOfComponentValues", + "span": { + "start": 129, + "end": 135, + "ctxt": 0 + }, + "children": [ + { + "type": "PreservedToken", + "span": { + "start": 129, + "end": 131, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 131, + "end": 132, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "x", + "raw": "x" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 132, + "end": 134, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 134, + "end": 135, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "y", + "raw": "y" + } + } + } + ] + }, + "block": null + }, + { + "type": "AtRule", + "span": { + "start": 138, + "end": 149, + "ctxt": 0 + }, + "name": { + "type": "Ident", + "span": { + "start": 139, + "end": 146, + "ctxt": 0 + }, + "value": "unknown", + "raw": "unknown" + }, + "prelude": { + "type": "ListOfComponentValues", + "span": { + "start": 146, + "end": 147, + "ctxt": 0 + }, + "children": [ + { + "type": "PreservedToken", + "span": { + "start": 146, + "end": 147, "ctxt": 0 }, "token": { @@ -389,8 +514,8 @@ "block": { "type": "SimpleBlock", "span": { - "start": 153, - "end": 155, + "start": 147, + "end": 149, "ctxt": 0 }, "name": "{", @@ -400,15 +525,15 @@ { "type": "AtRule", "span": { - "start": 156, - "end": 168, + "start": 150, + "end": 162, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 157, - "end": 165, + "start": 151, + "end": 159, "ctxt": 0 }, "value": "unknown", @@ -417,16 +542,16 @@ "prelude": { "type": "ListOfComponentValues", "span": { - "start": 165, - "end": 166, + "start": 159, + "end": 160, "ctxt": 0 }, "children": [ { "type": "PreservedToken", "span": { - "start": 165, - "end": 166, + "start": 159, + "end": 160, "ctxt": 0 }, "token": { @@ -440,8 +565,8 @@ "block": { "type": "SimpleBlock", "span": { - "start": 166, - "end": 168, + "start": 160, + "end": 162, "ctxt": 0 }, "name": "{", @@ -451,15 +576,15 @@ { "type": "AtRule", "span": { - "start": 169, - "end": 184, + "start": 163, + "end": 178, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 170, - "end": 177, + "start": 164, + "end": 171, "ctxt": 0 }, "value": "unknown", @@ -468,16 +593,16 @@ "prelude": { "type": "ListOfComponentValues", "span": { - "start": 177, - "end": 182, + "start": 171, + "end": 176, "ctxt": 0 }, "children": [ { "type": "PreservedToken", "span": { - "start": 177, - "end": 178, + "start": 171, + "end": 172, "ctxt": 0 }, "token": { @@ -489,8 +614,8 @@ { "type": "PreservedToken", "span": { - "start": 178, - "end": 179, + "start": 172, + "end": 173, "ctxt": 0 }, "token": { @@ -503,8 +628,8 @@ { "type": "PreservedToken", "span": { - "start": 179, - "end": 180, + "start": 173, + "end": 174, "ctxt": 0 }, "token": { @@ -516,8 +641,8 @@ { "type": "PreservedToken", "span": { - "start": 180, - "end": 181, + "start": 174, + "end": 175, "ctxt": 0 }, "token": { @@ -530,8 +655,8 @@ { "type": "PreservedToken", "span": { - "start": 181, - "end": 182, + "start": 175, + "end": 176, "ctxt": 0 }, "token": { @@ -545,8 +670,8 @@ "block": { "type": "SimpleBlock", "span": { - "start": 182, - "end": 184, + "start": 176, + "end": 178, "ctxt": 0 }, "name": "{", @@ -556,15 +681,15 @@ { "type": "AtRule", "span": { - "start": 185, - "end": 199, + "start": 179, + "end": 193, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 186, - "end": 193, + "start": 180, + "end": 187, "ctxt": 0 }, "value": "unknown", @@ -573,16 +698,16 @@ "prelude": { "type": "ListOfComponentValues", "span": { - "start": 193, - "end": 194, + "start": 187, + "end": 188, "ctxt": 0 }, "children": [ { "type": "PreservedToken", "span": { - "start": 193, - "end": 194, + "start": 187, + "end": 188, "ctxt": 0 }, "token": { @@ -596,8 +721,8 @@ "block": { "type": "SimpleBlock", "span": { - "start": 194, - "end": 199, + "start": 188, + "end": 193, "ctxt": 0 }, "name": "{", @@ -605,8 +730,8 @@ { "type": "PreservedToken", "span": { - "start": 195, - "end": 196, + "start": 189, + "end": 190, "ctxt": 0 }, "token": { @@ -619,8 +744,8 @@ { "type": "PreservedToken", "span": { - "start": 196, - "end": 197, + "start": 190, + "end": 191, "ctxt": 0 }, "token": "Colon" @@ -628,8 +753,8 @@ { "type": "PreservedToken", "span": { - "start": 197, - "end": 198, + "start": 191, + "end": 192, "ctxt": 0 }, "token": { @@ -645,15 +770,15 @@ { "type": "AtRule", "span": { - "start": 200, - "end": 218, + "start": 194, + "end": 212, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 201, - "end": 208, + "start": 195, + "end": 202, "ctxt": 0 }, "value": "unknown", @@ -662,11 +787,89 @@ "prelude": { "type": "ListOfComponentValues", "span": { - "start": 208, - "end": 213, + "start": 202, + "end": 207, "ctxt": 0 }, "children": [ + { + "type": "PreservedToken", + "span": { + "start": 202, + "end": 203, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 203, + "end": 204, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "x", + "raw": "x" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 204, + "end": 205, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 205, + "end": 206, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "y", + "raw": "y" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 206, + "end": 207, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + } + ] + }, + "block": { + "type": "SimpleBlock", + "span": { + "start": 207, + "end": 212, + "ctxt": 0 + }, + "name": "{", + "value": [ { "type": "PreservedToken", "span": { @@ -675,8 +878,9 @@ "ctxt": 0 }, "token": { - "WhiteSpace": { - "value": " " + "Ident": { + "value": "p", + "raw": "p" } } }, @@ -687,12 +891,7 @@ "end": 210, "ctxt": 0 }, - "token": { - "Ident": { - "value": "x", - "raw": "x" - } - } + "token": "Colon" }, { "type": "PreservedToken", @@ -701,80 +900,6 @@ "end": 211, "ctxt": 0 }, - "token": { - "WhiteSpace": { - "value": " " - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 211, - "end": 212, - "ctxt": 0 - }, - "token": { - "Ident": { - "value": "y", - "raw": "y" - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 212, - "end": 213, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - } - ] - }, - "block": { - "type": "SimpleBlock", - "span": { - "start": 213, - "end": 218, - "ctxt": 0 - }, - "name": "{", - "value": [ - { - "type": "PreservedToken", - "span": { - "start": 214, - "end": 215, - "ctxt": 0 - }, - "token": { - "Ident": { - "value": "p", - "raw": "p" - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 215, - "end": 216, - "ctxt": 0 - }, - "token": "Colon" - }, - { - "type": "PreservedToken", - "span": { - "start": 216, - "end": 217, - "ctxt": 0 - }, "token": { "Ident": { "value": "v", @@ -788,15 +913,15 @@ { "type": "AtRule", "span": { - "start": 219, - "end": 243, + "start": 213, + "end": 237, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 220, - "end": 227, + "start": 214, + "end": 221, "ctxt": 0 }, "value": "unknown", @@ -805,16 +930,16 @@ "prelude": { "type": "ListOfComponentValues", "span": { - "start": 227, - "end": 238, + "start": 221, + "end": 232, "ctxt": 0 }, "children": [ { "type": "PreservedToken", "span": { - "start": 227, - "end": 228, + "start": 221, + "end": 222, "ctxt": 0 }, "token": { @@ -826,8 +951,8 @@ { "type": "PreservedToken", "span": { - "start": 228, - "end": 229, + "start": 222, + "end": 223, "ctxt": 0 }, "token": { @@ -840,8 +965,8 @@ { "type": "PreservedToken", "span": { - "start": 229, - "end": 230, + "start": 223, + "end": 224, "ctxt": 0 }, "token": "Comma" @@ -849,8 +974,8 @@ { "type": "PreservedToken", "span": { - "start": 230, - "end": 231, + "start": 224, + "end": 225, "ctxt": 0 }, "token": { @@ -859,6 +984,68 @@ } } }, + { + "type": "PreservedToken", + "span": { + "start": 225, + "end": 226, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "y", + "raw": "y" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 226, + "end": 227, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "Function", + "span": { + "start": 227, + "end": 231, + "ctxt": 0 + }, + "name": { + "type": "Ident", + "span": { + "start": 227, + "end": 228, + "ctxt": 0 + }, + "value": "x", + "raw": "x" + }, + "value": [ + { + "type": "PreservedToken", + "span": { + "start": 229, + "end": 230, + "ctxt": 0 + }, + "token": { + "Number": { + "value": 1.0, + "raw": "1", + "type": "integer" + } + } + } + ] + }, { "type": "PreservedToken", "span": { @@ -866,63 +1053,6 @@ "end": 232, "ctxt": 0 }, - "token": { - "Ident": { - "value": "y", - "raw": "y" - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 232, - "end": 233, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - }, - { - "type": "Function", - "span": { - "start": 233, - "end": 237, - "ctxt": 0 - }, - "name": { - "type": "Ident", - "span": { - "start": 233, - "end": 234, - "ctxt": 0 - }, - "value": "x", - "raw": "x" - }, - "value": [ - { - "type": "Integer", - "span": { - "start": 235, - "end": 236, - "ctxt": 0 - }, - "value": 1, - "raw": "1" - } - ] - }, - { - "type": "PreservedToken", - "span": { - "start": 237, - "end": 238, - "ctxt": 0 - }, "token": { "WhiteSpace": { "value": " " @@ -934,8 +1064,8 @@ "block": { "type": "SimpleBlock", "span": { - "start": 238, - "end": 243, + "start": 232, + "end": 237, "ctxt": 0 }, "name": "{", @@ -943,8 +1073,8 @@ { "type": "PreservedToken", "span": { - "start": 239, - "end": 240, + "start": 233, + "end": 234, "ctxt": 0 }, "token": { @@ -957,8 +1087,8 @@ { "type": "PreservedToken", "span": { - "start": 240, - "end": 241, + "start": 234, + "end": 235, "ctxt": 0 }, "token": "Colon" @@ -966,8 +1096,8 @@ { "type": "PreservedToken", "span": { - "start": 241, - "end": 242, + "start": 235, + "end": 236, "ctxt": 0 }, "token": { @@ -983,15 +1113,15 @@ { "type": "AtRule", "span": { - "start": 244, - "end": 270, + "start": 238, + "end": 264, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 245, - "end": 252, + "start": 239, + "end": 246, "ctxt": 0 }, "value": "unknown", @@ -1000,16 +1130,16 @@ "prelude": { "type": "ListOfComponentValues", "span": { - "start": 252, - "end": 265, + "start": 246, + "end": 259, "ctxt": 0 }, "children": [ { "type": "PreservedToken", "span": { - "start": 252, - "end": 253, + "start": 246, + "end": 247, "ctxt": 0 }, "token": { @@ -1021,8 +1151,8 @@ { "type": "PreservedToken", "span": { - "start": 253, - "end": 254, + "start": 247, + "end": 248, "ctxt": 0 }, "token": { @@ -1035,8 +1165,8 @@ { "type": "PreservedToken", "span": { - "start": 254, - "end": 255, + "start": 248, + "end": 249, "ctxt": 0 }, "token": "Comma" @@ -1044,8 +1174,8 @@ { "type": "PreservedToken", "span": { - "start": 255, - "end": 256, + "start": 249, + "end": 250, "ctxt": 0 }, "token": { @@ -1057,8 +1187,8 @@ { "type": "PreservedToken", "span": { - "start": 256, - "end": 257, + "start": 250, + "end": 251, "ctxt": 0 }, "token": { @@ -1071,8 +1201,8 @@ { "type": "PreservedToken", "span": { - "start": 257, - "end": 258, + "start": 251, + "end": 252, "ctxt": 0 }, "token": { @@ -1084,15 +1214,15 @@ { "type": "Function", "span": { - "start": 258, - "end": 264, + "start": 252, + "end": 258, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 258, - "end": 259, + "start": 252, + "end": 253, "ctxt": 0 }, "value": "x", @@ -1100,32 +1230,42 @@ }, "value": [ { - "type": "Integer", + "type": "PreservedToken", "span": { - "start": 260, - "end": 261, + "start": 254, + "end": 255, "ctxt": 0 }, - "value": 1, - "raw": "1" + "token": { + "Number": { + "value": 1.0, + "raw": "1", + "type": "integer" + } + } }, { - "type": "Integer", + "type": "PreservedToken", "span": { - "start": 261, - "end": 263, + "start": 255, + "end": 257, "ctxt": 0 }, - "value": 2, - "raw": "+2" + "token": { + "Number": { + "value": 2.0, + "raw": "+2", + "type": "integer" + } + } } ] }, { "type": "PreservedToken", "span": { - "start": 264, - "end": 265, + "start": 258, + "end": 259, "ctxt": 0 }, "token": { @@ -1139,8 +1279,8 @@ "block": { "type": "SimpleBlock", "span": { - "start": 265, - "end": 270, + "start": 259, + "end": 264, "ctxt": 0 }, "name": "{", @@ -1148,8 +1288,8 @@ { "type": "PreservedToken", "span": { - "start": 266, - "end": 267, + "start": 260, + "end": 261, "ctxt": 0 }, "token": { @@ -1162,8 +1302,8 @@ { "type": "PreservedToken", "span": { - "start": 267, - "end": 268, + "start": 261, + "end": 262, "ctxt": 0 }, "token": "Colon" @@ -1171,8 +1311,8 @@ { "type": "PreservedToken", "span": { - "start": 268, - "end": 269, + "start": 262, + "end": 263, "ctxt": 0 }, "token": { @@ -1188,15 +1328,15 @@ { "type": "AtRule", "span": { - "start": 271, - "end": 324, + "start": 265, + "end": 318, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 272, - "end": 279, + "start": 266, + "end": 273, "ctxt": 0 }, "value": "unknown", @@ -1206,8 +1346,8 @@ "block": { "type": "SimpleBlock", "span": { - "start": 287, - "end": 324, + "start": 281, + "end": 318, "ctxt": 0 }, "name": "{", @@ -1215,8 +1355,8 @@ { "type": "PreservedToken", "span": { - "start": 296, - "end": 297, + "start": 290, + "end": 291, "ctxt": 0 }, "token": { @@ -1229,8 +1369,8 @@ { "type": "PreservedToken", "span": { - "start": 305, - "end": 306, + "start": 299, + "end": 300, "ctxt": 0 }, "token": "Colon" @@ -1238,8 +1378,8 @@ { "type": "PreservedToken", "span": { - "start": 314, - "end": 315, + "start": 308, + "end": 309, "ctxt": 0 }, "token": { @@ -1255,15 +1395,15 @@ { "type": "AtRule", "span": { - "start": 534, - "end": 557, + "start": 319, + "end": 392, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 535, - "end": 542, + "start": 320, + "end": 327, "ctxt": 0 }, "value": "unknown", @@ -1272,16 +1412,146 @@ "prelude": { "type": "ListOfComponentValues", "span": { - "start": 542, - "end": 544, + "start": 327, + "end": 347, "ctxt": 0 }, "children": [ { "type": "PreservedToken", "span": { - "start": 542, - "end": 544, + "start": 327, + "end": 328, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 336, + "end": 337, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "x", + "raw": "x" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 345, + "end": 346, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 346, + "end": 347, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "y", + "raw": "y" + } + } + } + ] + }, + "block": { + "type": "SimpleBlock", + "span": { + "start": 355, + "end": 392, + "ctxt": 0 + }, + "name": "{", + "value": [ + { + "type": "PreservedToken", + "span": { + "start": 364, + "end": 365, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "p", + "raw": "p" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 373, + "end": 374, + "ctxt": 0 + }, + "token": "Colon" + }, + { + "type": "PreservedToken", + "span": { + "start": 382, + "end": 383, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "v", + "raw": "v" + } + } + } + ] + } + }, + { + "type": "AtRule", + "span": { + "start": 526, + "end": 549, + "ctxt": 0 + }, + "name": { + "type": "Ident", + "span": { + "start": 527, + "end": 534, + "ctxt": 0 + }, + "value": "unknown", + "raw": "unknown" + }, + "prelude": { + "type": "ListOfComponentValues", + "span": { + "start": 534, + "end": 536, + "ctxt": 0 + }, + "children": [ + { + "type": "PreservedToken", + "span": { + "start": 534, + "end": 536, "ctxt": 0 }, "token": { @@ -1295,8 +1565,8 @@ "block": { "type": "SimpleBlock", "span": { - "start": 544, - "end": 557, + "start": 536, + "end": 549, "ctxt": 0 }, "name": "{", @@ -1304,8 +1574,8 @@ { "type": "PreservedToken", "span": { - "start": 545, - "end": 547, + "start": 537, + "end": 539, "ctxt": 0 }, "token": { @@ -1317,8 +1587,8 @@ { "type": "PreservedToken", "span": { - "start": 547, - "end": 548, + "start": 539, + "end": 540, "ctxt": 0 }, "token": { @@ -1331,8 +1601,8 @@ { "type": "PreservedToken", "span": { - "start": 548, - "end": 550, + "start": 540, + "end": 542, "ctxt": 0 }, "token": { @@ -1344,8 +1614,8 @@ { "type": "PreservedToken", "span": { - "start": 550, - "end": 551, + "start": 542, + "end": 543, "ctxt": 0 }, "token": "Colon" @@ -1353,8 +1623,8 @@ { "type": "PreservedToken", "span": { - "start": 551, - "end": 553, + "start": 543, + "end": 545, "ctxt": 0 }, "token": { @@ -1366,8 +1636,8 @@ { "type": "PreservedToken", "span": { - "start": 553, - "end": 554, + "start": 545, + "end": 546, "ctxt": 0 }, "token": { @@ -1380,8 +1650,8 @@ { "type": "PreservedToken", "span": { - "start": 554, - "end": 556, + "start": 546, + "end": 548, "ctxt": 0 }, "token": { @@ -1396,15 +1666,15 @@ { "type": "AtRule", "span": { - "start": 558, - "end": 587, + "start": 550, + "end": 579, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 559, - "end": 566, + "start": 551, + "end": 558, "ctxt": 0 }, "value": "unknown", @@ -1413,16 +1683,16 @@ "prelude": { "type": "ListOfComponentValues", "span": { - "start": 566, - "end": 574, + "start": 558, + "end": 566, "ctxt": 0 }, "children": [ { "type": "PreservedToken", "span": { - "start": 566, - "end": 568, + "start": 558, + "end": 560, "ctxt": 0 }, "token": { @@ -1434,8 +1704,8 @@ { "type": "PreservedToken", "span": { - "start": 568, - "end": 569, + "start": 560, + "end": 561, "ctxt": 0 }, "token": { @@ -1445,75 +1715,75 @@ } } }, + { + "type": "PreservedToken", + "span": { + "start": 561, + "end": 563, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 563, + "end": 564, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "y", + "raw": "y" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 564, + "end": 566, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + } + ] + }, + "block": { + "type": "SimpleBlock", + "span": { + "start": 566, + "end": 579, + "ctxt": 0 + }, + "name": "{", + "value": [ + { + "type": "PreservedToken", + "span": { + "start": 567, + "end": 569, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, { "type": "PreservedToken", "span": { "start": 569, - "end": 571, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 571, - "end": 572, - "ctxt": 0 - }, - "token": { - "Ident": { - "value": "y", - "raw": "y" - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 572, - "end": 574, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - } - ] - }, - "block": { - "type": "SimpleBlock", - "span": { - "start": 574, - "end": 587, - "ctxt": 0 - }, - "name": "{", - "value": [ - { - "type": "PreservedToken", - "span": { - "start": 575, - "end": 577, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 577, - "end": 578, + "end": 570, "ctxt": 0 }, "token": { @@ -1526,8 +1796,8 @@ { "type": "PreservedToken", "span": { - "start": 578, - "end": 580, + "start": 570, + "end": 572, "ctxt": 0 }, "token": { @@ -1539,8 +1809,8 @@ { "type": "PreservedToken", "span": { - "start": 580, - "end": 581, + "start": 572, + "end": 573, "ctxt": 0 }, "token": "Colon" @@ -1548,8 +1818,8 @@ { "type": "PreservedToken", "span": { - "start": 581, - "end": 583, + "start": 573, + "end": 575, "ctxt": 0 }, "token": { @@ -1561,8 +1831,8 @@ { "type": "PreservedToken", "span": { - "start": 583, - "end": 584, + "start": 575, + "end": 576, "ctxt": 0 }, "token": { @@ -1575,8 +1845,8 @@ { "type": "PreservedToken", "span": { - "start": 584, - "end": 586, + "start": 576, + "end": 578, "ctxt": 0 }, "token": { @@ -1591,15 +1861,15 @@ { "type": "AtRule", "span": { - "start": 642, - "end": 659, + "start": 580, + "end": 628, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 643, - "end": 650, + "start": 581, + "end": 588, "ctxt": 0 }, "value": "unknown", @@ -1608,143 +1878,29 @@ "prelude": { "type": "ListOfComponentValues", "span": { - "start": 650, - "end": 651, + "start": 588, + "end": 615, "ctxt": 0 }, "children": [ { "type": "PreservedToken", "span": { - "start": 650, - "end": 651, + "start": 588, + "end": 590, "ctxt": 0 }, "token": { "WhiteSpace": { - "value": " " - } - } - } - ] - }, - "block": { - "type": "SimpleBlock", - "span": { - "start": 651, - "end": 659, - "ctxt": 0 - }, - "name": "{", - "value": [ - { - "type": "PreservedToken", - "span": { - "start": 652, - "end": 653, - "ctxt": 0 - }, - "token": { - "Ident": { - "value": "s", - "raw": "s" - } - } - }, - { - "type": "SimpleBlock", - "span": { - "start": 653, - "end": 658, - "ctxt": 0 - }, - "name": "{", - "value": [ - { - "type": "PreservedToken", - "span": { - "start": 654, - "end": 655, - "ctxt": 0 - }, - "token": { - "Ident": { - "value": "p", - "raw": "p" - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 655, - "end": 656, - "ctxt": 0 - }, - "token": "Colon" - }, - { - "type": "PreservedToken", - "span": { - "start": 656, - "end": 657, - "ctxt": 0 - }, - "token": { - "Ident": { - "value": "v", - "raw": "v" - } - } - } - ] - } - ] - } - }, - { - "type": "AtRule", - "span": { - "start": 660, - "end": 681, - "ctxt": 0 - }, - "name": { - "type": "Ident", - "span": { - "start": 661, - "end": 668, - "ctxt": 0 - }, - "value": "unknown", - "raw": "unknown" - }, - "prelude": { - "type": "ListOfComponentValues", - "span": { - "start": 668, - "end": 673, - "ctxt": 0 - }, - "children": [ - { - "type": "PreservedToken", - "span": { - "start": 668, - "end": 669, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " + "value": " " } } }, { "type": "PreservedToken", "span": { - "start": 669, - "end": 670, + "start": 590, + "end": 591, "ctxt": 0 }, "token": { @@ -1757,176 +1913,21 @@ { "type": "PreservedToken", "span": { - "start": 670, - "end": 671, + "start": 591, + "end": 593, "ctxt": 0 }, "token": { "WhiteSpace": { - "value": " " + "value": " " } } }, { "type": "PreservedToken", "span": { - "start": 671, - "end": 672, - "ctxt": 0 - }, - "token": { - "Ident": { - "value": "y", - "raw": "y" - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 672, - "end": 673, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - } - ] - }, - "block": { - "type": "SimpleBlock", - "span": { - "start": 673, - "end": 681, - "ctxt": 0 - }, - "name": "{", - "value": [ - { - "type": "PreservedToken", - "span": { - "start": 674, - "end": 675, - "ctxt": 0 - }, - "token": { - "Ident": { - "value": "s", - "raw": "s" - } - } - }, - { - "type": "SimpleBlock", - "span": { - "start": 675, - "end": 680, - "ctxt": 0 - }, - "name": "{", - "value": [ - { - "type": "PreservedToken", - "span": { - "start": 676, - "end": 677, - "ctxt": 0 - }, - "token": { - "Ident": { - "value": "p", - "raw": "p" - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 677, - "end": 678, - "ctxt": 0 - }, - "token": "Colon" - }, - { - "type": "PreservedToken", - "span": { - "start": 678, - "end": 679, - "ctxt": 0 - }, - "token": { - "Ident": { - "value": "v", - "raw": "v" - } - } - } - ] - } - ] - } - }, - { - "type": "AtRule", - "span": { - "start": 682, - "end": 709, - "ctxt": 0 - }, - "name": { - "type": "Ident", - "span": { - "start": 683, - "end": 690, - "ctxt": 0 - }, - "value": "unknown", - "raw": "unknown" - }, - "prelude": { - "type": "ListOfComponentValues", - "span": { - "start": 690, - "end": 701, - "ctxt": 0 - }, - "children": [ - { - "type": "PreservedToken", - "span": { - "start": 690, - "end": 691, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 691, - "end": 692, - "ctxt": 0 - }, - "token": { - "Ident": { - "value": "x", - "raw": "x" - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 692, - "end": 693, + "start": 593, + "end": 594, "ctxt": 0 }, "token": "Comma" @@ -1934,21 +1935,21 @@ { "type": "PreservedToken", "span": { - "start": 693, - "end": 694, + "start": 594, + "end": 596, "ctxt": 0 }, "token": { "WhiteSpace": { - "value": " " + "value": " " } } }, { "type": "PreservedToken", "span": { - "start": 694, - "end": 695, + "start": 596, + "end": 597, "ctxt": 0 }, "token": { @@ -1961,8 +1962,622 @@ { "type": "PreservedToken", "span": { - "start": 695, - "end": 696, + "start": 597, + "end": 599, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "Function", + "span": { + "start": 599, + "end": 613, + "ctxt": 0 + }, + "name": { + "type": "Ident", + "span": { + "start": 599, + "end": 600, + "ctxt": 0 + }, + "value": "x", + "raw": "x" + }, + "value": [ + { + "type": "PreservedToken", + "span": { + "start": 601, + "end": 603, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 603, + "end": 604, + "ctxt": 0 + }, + "token": { + "Number": { + "value": 1.0, + "raw": "1", + "type": "integer" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 604, + "end": 606, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 606, + "end": 607, + "ctxt": 0 + }, + "token": { + "Delim": { + "value": "+" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 607, + "end": 609, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 609, + "end": 610, + "ctxt": 0 + }, + "token": { + "Number": { + "value": 2.0, + "raw": "2", + "type": "integer" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 610, + "end": 612, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + } + ] + }, + { + "type": "PreservedToken", + "span": { + "start": 613, + "end": 615, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + } + ] + }, + "block": { + "type": "SimpleBlock", + "span": { + "start": 615, + "end": 628, + "ctxt": 0 + }, + "name": "{", + "value": [ + { + "type": "PreservedToken", + "span": { + "start": 616, + "end": 618, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 618, + "end": 619, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "p", + "raw": "p" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 619, + "end": 621, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 621, + "end": 622, + "ctxt": 0 + }, + "token": "Colon" + }, + { + "type": "PreservedToken", + "span": { + "start": 622, + "end": 624, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 624, + "end": 625, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "v", + "raw": "v" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 625, + "end": 627, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + } + ] + } + }, + { + "type": "AtRule", + "span": { + "start": 630, + "end": 647, + "ctxt": 0 + }, + "name": { + "type": "Ident", + "span": { + "start": 631, + "end": 638, + "ctxt": 0 + }, + "value": "unknown", + "raw": "unknown" + }, + "prelude": { + "type": "ListOfComponentValues", + "span": { + "start": 638, + "end": 639, + "ctxt": 0 + }, + "children": [ + { + "type": "PreservedToken", + "span": { + "start": 638, + "end": 639, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + } + ] + }, + "block": { + "type": "SimpleBlock", + "span": { + "start": 639, + "end": 647, + "ctxt": 0 + }, + "name": "{", + "value": [ + { + "type": "PreservedToken", + "span": { + "start": 640, + "end": 641, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "s", + "raw": "s" + } + } + }, + { + "type": "SimpleBlock", + "span": { + "start": 641, + "end": 646, + "ctxt": 0 + }, + "name": "{", + "value": [ + { + "type": "PreservedToken", + "span": { + "start": 642, + "end": 643, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "p", + "raw": "p" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 643, + "end": 644, + "ctxt": 0 + }, + "token": "Colon" + }, + { + "type": "PreservedToken", + "span": { + "start": 644, + "end": 645, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "v", + "raw": "v" + } + } + } + ] + } + ] + } + }, + { + "type": "AtRule", + "span": { + "start": 648, + "end": 669, + "ctxt": 0 + }, + "name": { + "type": "Ident", + "span": { + "start": 649, + "end": 656, + "ctxt": 0 + }, + "value": "unknown", + "raw": "unknown" + }, + "prelude": { + "type": "ListOfComponentValues", + "span": { + "start": 656, + "end": 661, + "ctxt": 0 + }, + "children": [ + { + "type": "PreservedToken", + "span": { + "start": 656, + "end": 657, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 657, + "end": 658, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "x", + "raw": "x" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 658, + "end": 659, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 659, + "end": 660, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "y", + "raw": "y" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 660, + "end": 661, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + } + ] + }, + "block": { + "type": "SimpleBlock", + "span": { + "start": 661, + "end": 669, + "ctxt": 0 + }, + "name": "{", + "value": [ + { + "type": "PreservedToken", + "span": { + "start": 662, + "end": 663, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "s", + "raw": "s" + } + } + }, + { + "type": "SimpleBlock", + "span": { + "start": 663, + "end": 668, + "ctxt": 0 + }, + "name": "{", + "value": [ + { + "type": "PreservedToken", + "span": { + "start": 664, + "end": 665, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "p", + "raw": "p" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 665, + "end": 666, + "ctxt": 0 + }, + "token": "Colon" + }, + { + "type": "PreservedToken", + "span": { + "start": 666, + "end": 667, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "v", + "raw": "v" + } + } + } + ] + } + ] + } + }, + { + "type": "AtRule", + "span": { + "start": 670, + "end": 697, + "ctxt": 0 + }, + "name": { + "type": "Ident", + "span": { + "start": 671, + "end": 678, + "ctxt": 0 + }, + "value": "unknown", + "raw": "unknown" + }, + "prelude": { + "type": "ListOfComponentValues", + "span": { + "start": 678, + "end": 689, + "ctxt": 0 + }, + "children": [ + { + "type": "PreservedToken", + "span": { + "start": 678, + "end": 679, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 679, + "end": 680, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "x", + "raw": "x" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 680, + "end": 681, + "ctxt": 0 + }, + "token": "Comma" + }, + { + "type": "PreservedToken", + "span": { + "start": 681, + "end": 682, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 682, + "end": 683, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "y", + "raw": "y" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 683, + "end": 684, "ctxt": 0 }, "token": { @@ -1974,15 +2589,15 @@ { "type": "Function", "span": { - "start": 696, - "end": 700, + "start": 684, + "end": 688, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 696, - "end": 697, + "start": 684, + "end": 685, "ctxt": 0 }, "value": "f", @@ -1990,22 +2605,27 @@ }, "value": [ { - "type": "Integer", + "type": "PreservedToken", "span": { - "start": 698, - "end": 699, + "start": 686, + "end": 687, "ctxt": 0 }, - "value": 1, - "raw": "1" + "token": { + "Number": { + "value": 1.0, + "raw": "1", + "type": "integer" + } + } } ] }, { "type": "PreservedToken", "span": { - "start": 700, - "end": 701, + "start": 688, + "end": 689, "ctxt": 0 }, "token": { @@ -2019,8 +2639,8 @@ "block": { "type": "SimpleBlock", "span": { - "start": 701, - "end": 709, + "start": 689, + "end": 697, "ctxt": 0 }, "name": "{", @@ -2028,8 +2648,8 @@ { "type": "PreservedToken", "span": { - "start": 702, - "end": 703, + "start": 690, + "end": 691, "ctxt": 0 }, "token": { @@ -2042,8 +2662,8 @@ { "type": "SimpleBlock", "span": { - "start": 703, - "end": 708, + "start": 691, + "end": 696, "ctxt": 0 }, "name": "{", @@ -2051,8 +2671,8 @@ { "type": "PreservedToken", "span": { - "start": 704, - "end": 705, + "start": 692, + "end": 693, "ctxt": 0 }, "token": { @@ -2065,8 +2685,8 @@ { "type": "PreservedToken", "span": { - "start": 705, - "end": 706, + "start": 693, + "end": 694, "ctxt": 0 }, "token": "Colon" @@ -2074,8 +2694,8 @@ { "type": "PreservedToken", "span": { - "start": 706, - "end": 707, + "start": 694, + "end": 695, "ctxt": 0 }, "token": { @@ -2093,15 +2713,15 @@ { "type": "AtRule", "span": { - "start": 710, - "end": 739, + "start": 698, + "end": 727, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 711, - "end": 718, + "start": 699, + "end": 706, "ctxt": 0 }, "value": "unknown", @@ -2110,11 +2730,137 @@ "prelude": { "type": "ListOfComponentValues", "span": { - "start": 718, - "end": 731, + "start": 706, + "end": 719, "ctxt": 0 }, "children": [ + { + "type": "PreservedToken", + "span": { + "start": 706, + "end": 707, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 707, + "end": 708, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "x", + "raw": "x" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 708, + "end": 709, + "ctxt": 0 + }, + "token": "Comma" + }, + { + "type": "PreservedToken", + "span": { + "start": 709, + "end": 710, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 710, + "end": 711, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "y", + "raw": "y" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 711, + "end": 712, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "Function", + "span": { + "start": 712, + "end": 718, + "ctxt": 0 + }, + "name": { + "type": "Ident", + "span": { + "start": 712, + "end": 713, + "ctxt": 0 + }, + "value": "f", + "raw": "f" + }, + "value": [ + { + "type": "PreservedToken", + "span": { + "start": 714, + "end": 715, + "ctxt": 0 + }, + "token": { + "Number": { + "value": 1.0, + "raw": "1", + "type": "integer" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 715, + "end": 717, + "ctxt": 0 + }, + "token": { + "Number": { + "value": 2.0, + "raw": "+2", + "type": "integer" + } + } + } + ] + }, { "type": "PreservedToken", "span": { @@ -2127,130 +2873,14 @@ "value": " " } } - }, - { - "type": "PreservedToken", - "span": { - "start": 719, - "end": 720, - "ctxt": 0 - }, - "token": { - "Ident": { - "value": "x", - "raw": "x" - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 720, - "end": 721, - "ctxt": 0 - }, - "token": "Comma" - }, - { - "type": "PreservedToken", - "span": { - "start": 721, - "end": 722, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 722, - "end": 723, - "ctxt": 0 - }, - "token": { - "Ident": { - "value": "y", - "raw": "y" - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 723, - "end": 724, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - }, - { - "type": "Function", - "span": { - "start": 724, - "end": 730, - "ctxt": 0 - }, - "name": { - "type": "Ident", - "span": { - "start": 724, - "end": 725, - "ctxt": 0 - }, - "value": "f", - "raw": "f" - }, - "value": [ - { - "type": "Integer", - "span": { - "start": 726, - "end": 727, - "ctxt": 0 - }, - "value": 1, - "raw": "1" - }, - { - "type": "Integer", - "span": { - "start": 727, - "end": 729, - "ctxt": 0 - }, - "value": 2, - "raw": "+2" - } - ] - }, - { - "type": "PreservedToken", - "span": { - "start": 730, - "end": 731, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } } ] }, "block": { "type": "SimpleBlock", "span": { - "start": 731, - "end": 739, + "start": 719, + "end": 727, "ctxt": 0 }, "name": "{", @@ -2258,8 +2888,8 @@ { "type": "PreservedToken", "span": { - "start": 732, - "end": 733, + "start": 720, + "end": 721, "ctxt": 0 }, "token": { @@ -2272,8 +2902,8 @@ { "type": "SimpleBlock", "span": { - "start": 733, - "end": 738, + "start": 721, + "end": 726, "ctxt": 0 }, "name": "{", @@ -2281,8 +2911,8 @@ { "type": "PreservedToken", "span": { - "start": 734, - "end": 735, + "start": 722, + "end": 723, "ctxt": 0 }, "token": { @@ -2295,8 +2925,8 @@ { "type": "PreservedToken", "span": { - "start": 735, - "end": 736, + "start": 723, + "end": 724, "ctxt": 0 }, "token": "Colon" @@ -2304,8 +2934,8 @@ { "type": "PreservedToken", "span": { - "start": 736, - "end": 737, + "start": 724, + "end": 725, "ctxt": 0 }, "token": { @@ -2323,15 +2953,15 @@ { "type": "AtRule", "span": { - "start": 740, - "end": 777, + "start": 728, + "end": 765, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 741, - "end": 748, + "start": 729, + "end": 736, "ctxt": 0 }, "value": "unknown", @@ -2340,16 +2970,16 @@ "prelude": { "type": "ListOfComponentValues", "span": { - "start": 748, - "end": 749, + "start": 736, + "end": 737, "ctxt": 0 }, "children": [ { "type": "PreservedToken", "span": { - "start": 748, - "end": 749, + "start": 736, + "end": 737, "ctxt": 0 }, "token": { @@ -2363,8 +2993,8 @@ "block": { "type": "SimpleBlock", "span": { - "start": 749, - "end": 777, + "start": 737, + "end": 765, "ctxt": 0 }, "name": "{", @@ -2372,8 +3002,8 @@ { "type": "PreservedToken", "span": { - "start": 750, - "end": 751, + "start": 738, + "end": 739, "ctxt": 0 }, "token": { @@ -2385,8 +3015,8 @@ { "type": "PreservedToken", "span": { - "start": 751, - "end": 752, + "start": 739, + "end": 740, "ctxt": 0 }, "token": { @@ -2398,8 +3028,8 @@ { "type": "PreservedToken", "span": { - "start": 752, - "end": 753, + "start": 740, + "end": 741, "ctxt": 0 }, "token": { @@ -2412,8 +3042,8 @@ { "type": "PreservedToken", "span": { - "start": 753, - "end": 754, + "start": 741, + "end": 742, "ctxt": 0 }, "token": { @@ -2425,8 +3055,8 @@ { "type": "SimpleBlock", "span": { - "start": 754, - "end": 763, + "start": 742, + "end": 751, "ctxt": 0 }, "name": "{", @@ -2434,8 +3064,8 @@ { "type": "PreservedToken", "span": { - "start": 755, - "end": 756, + "start": 743, + "end": 744, "ctxt": 0 }, "token": { @@ -2447,8 +3077,8 @@ { "type": "PreservedToken", "span": { - "start": 756, - "end": 757, + "start": 744, + "end": 745, "ctxt": 0 }, "token": { @@ -2461,8 +3091,8 @@ { "type": "PreservedToken", "span": { - "start": 757, - "end": 758, + "start": 745, + "end": 746, "ctxt": 0 }, "token": "Colon" @@ -2470,8 +3100,8 @@ { "type": "PreservedToken", "span": { - "start": 758, - "end": 759, + "start": 746, + "end": 747, "ctxt": 0 }, "token": { @@ -2483,8 +3113,8 @@ { "type": "PreservedToken", "span": { - "start": 759, - "end": 760, + "start": 747, + "end": 748, "ctxt": 0 }, "token": { @@ -2494,6 +3124,141 @@ } } }, + { + "type": "PreservedToken", + "span": { + "start": 748, + "end": 749, + "ctxt": 0 + }, + "token": "Semi" + }, + { + "type": "PreservedToken", + "span": { + "start": 749, + "end": 750, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + } + ] + }, + { + "type": "PreservedToken", + "span": { + "start": 751, + "end": 752, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 752, + "end": 753, + "ctxt": 0 + }, + "token": { + "Delim": { + "value": "." + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 753, + "end": 754, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "b", + "raw": "b" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 754, + "end": 755, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "SimpleBlock", + "span": { + "start": 755, + "end": 763, + "ctxt": 0 + }, + "name": "{", + "value": [ + { + "type": "PreservedToken", + "span": { + "start": 756, + "end": 757, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 757, + "end": 758, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "p", + "raw": "p" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 758, + "end": 759, + "ctxt": 0 + }, + "token": "Colon" + }, + { + "type": "PreservedToken", + "span": { + "start": 759, + "end": 760, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, { "type": "PreservedToken", "span": { @@ -2501,7 +3266,12 @@ "end": 761, "ctxt": 0 }, - "token": "Semi" + "token": { + "Ident": { + "value": "v", + "raw": "v" + } + } }, { "type": "PreservedToken", @@ -2530,146 +3300,6 @@ "value": " " } } - }, - { - "type": "PreservedToken", - "span": { - "start": 764, - "end": 765, - "ctxt": 0 - }, - "token": { - "Delim": { - "value": "." - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 765, - "end": 766, - "ctxt": 0 - }, - "token": { - "Ident": { - "value": "b", - "raw": "b" - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 766, - "end": 767, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - }, - { - "type": "SimpleBlock", - "span": { - "start": 767, - "end": 775, - "ctxt": 0 - }, - "name": "{", - "value": [ - { - "type": "PreservedToken", - "span": { - "start": 768, - "end": 769, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 769, - "end": 770, - "ctxt": 0 - }, - "token": { - "Ident": { - "value": "p", - "raw": "p" - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 770, - "end": 771, - "ctxt": 0 - }, - "token": "Colon" - }, - { - "type": "PreservedToken", - "span": { - "start": 771, - "end": 772, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 772, - "end": 773, - "ctxt": 0 - }, - "token": { - "Ident": { - "value": "v", - "raw": "v" - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 773, - "end": 774, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - } - ] - }, - { - "type": "PreservedToken", - "span": { - "start": 775, - "end": 776, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } } ] } @@ -2677,15 +3307,15 @@ { "type": "AtRule", "span": { - "start": 778, - "end": 858, + "start": 766, + "end": 846, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 779, - "end": 786, + "start": 767, + "end": 774, "ctxt": 0 }, "value": "unknown", @@ -2695,8 +3325,8 @@ "block": { "type": "SimpleBlock", "span": { - "start": 794, - "end": 858, + "start": 782, + "end": 846, "ctxt": 0 }, "name": "{", @@ -2704,8 +3334,8 @@ { "type": "PreservedToken", "span": { - "start": 803, - "end": 804, + "start": 791, + "end": 792, "ctxt": 0 }, "token": { @@ -2718,8 +3348,8 @@ { "type": "SimpleBlock", "span": { - "start": 812, - "end": 849, + "start": 800, + "end": 837, "ctxt": 0 }, "name": "{", @@ -2727,8 +3357,8 @@ { "type": "PreservedToken", "span": { - "start": 821, - "end": 822, + "start": 809, + "end": 810, "ctxt": 0 }, "token": { @@ -2741,8 +3371,8 @@ { "type": "PreservedToken", "span": { - "start": 830, - "end": 831, + "start": 818, + "end": 819, "ctxt": 0 }, "token": "Colon" @@ -2750,8 +3380,8 @@ { "type": "PreservedToken", "span": { - "start": 839, - "end": 840, + "start": 827, + "end": 828, "ctxt": 0 }, "token": { @@ -2769,15 +3399,15 @@ { "type": "AtRule", "span": { - "start": 1122, - "end": 1154, + "start": 847, + "end": 947, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 1123, - "end": 1130, + "start": 848, + "end": 855, "ctxt": 0 }, "value": "unknown", @@ -2786,16 +3416,171 @@ "prelude": { "type": "ListOfComponentValues", "span": { - "start": 1130, - "end": 1132, + "start": 855, + "end": 875, "ctxt": 0 }, "children": [ { "type": "PreservedToken", "span": { - "start": 1130, - "end": 1132, + "start": 855, + "end": 856, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 864, + "end": 865, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "x", + "raw": "x" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 873, + "end": 874, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 874, + "end": 875, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "y", + "raw": "y" + } + } + } + ] + }, + "block": { + "type": "SimpleBlock", + "span": { + "start": 883, + "end": 947, + "ctxt": 0 + }, + "name": "{", + "value": [ + { + "type": "PreservedToken", + "span": { + "start": 892, + "end": 893, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "s", + "raw": "s" + } + } + }, + { + "type": "SimpleBlock", + "span": { + "start": 901, + "end": 938, + "ctxt": 0 + }, + "name": "{", + "value": [ + { + "type": "PreservedToken", + "span": { + "start": 910, + "end": 911, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "p", + "raw": "p" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 919, + "end": 920, + "ctxt": 0 + }, + "token": "Colon" + }, + { + "type": "PreservedToken", + "span": { + "start": 928, + "end": 929, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "v", + "raw": "v" + } + } + } + ] + } + ] + } + }, + { + "type": "AtRule", + "span": { + "start": 1108, + "end": 1140, + "ctxt": 0 + }, + "name": { + "type": "Ident", + "span": { + "start": 1109, + "end": 1116, + "ctxt": 0 + }, + "value": "unknown", + "raw": "unknown" + }, + "prelude": { + "type": "ListOfComponentValues", + "span": { + "start": 1116, + "end": 1118, + "ctxt": 0 + }, + "children": [ + { + "type": "PreservedToken", + "span": { + "start": 1116, + "end": 1118, "ctxt": 0 }, "token": { @@ -2809,8 +3594,8 @@ "block": { "type": "SimpleBlock", "span": { - "start": 1132, - "end": 1154, + "start": 1118, + "end": 1140, "ctxt": 0 }, "name": "{", @@ -2818,8 +3603,8 @@ { "type": "PreservedToken", "span": { - "start": 1133, - "end": 1135, + "start": 1119, + "end": 1121, "ctxt": 0 }, "token": { @@ -2831,8 +3616,8 @@ { "type": "PreservedToken", "span": { - "start": 1135, - "end": 1136, + "start": 1121, + "end": 1122, "ctxt": 0 }, "token": { @@ -2845,8 +3630,8 @@ { "type": "PreservedToken", "span": { - "start": 1136, - "end": 1138, + "start": 1122, + "end": 1124, "ctxt": 0 }, "token": { @@ -2858,8 +3643,8 @@ { "type": "SimpleBlock", "span": { - "start": 1138, - "end": 1151, + "start": 1124, + "end": 1137, "ctxt": 0 }, "name": "{", @@ -2867,8 +3652,8 @@ { "type": "PreservedToken", "span": { - "start": 1139, - "end": 1141, + "start": 1125, + "end": 1127, "ctxt": 0 }, "token": { @@ -2880,8 +3665,8 @@ { "type": "PreservedToken", "span": { - "start": 1141, - "end": 1142, + "start": 1127, + "end": 1128, "ctxt": 0 }, "token": { @@ -2894,8 +3679,8 @@ { "type": "PreservedToken", "span": { - "start": 1142, - "end": 1144, + "start": 1128, + "end": 1130, "ctxt": 0 }, "token": { @@ -2907,8 +3692,8 @@ { "type": "PreservedToken", "span": { - "start": 1144, - "end": 1145, + "start": 1130, + "end": 1131, "ctxt": 0 }, "token": "Colon" @@ -2916,8 +3701,8 @@ { "type": "PreservedToken", "span": { - "start": 1145, - "end": 1147, + "start": 1131, + "end": 1133, "ctxt": 0 }, "token": { @@ -2929,8 +3714,8 @@ { "type": "PreservedToken", "span": { - "start": 1147, - "end": 1148, + "start": 1133, + "end": 1134, "ctxt": 0 }, "token": { @@ -2943,8 +3728,8 @@ { "type": "PreservedToken", "span": { - "start": 1148, - "end": 1150, + "start": 1134, + "end": 1136, "ctxt": 0 }, "token": { @@ -2955,11 +3740,270 @@ } ] }, + { + "type": "PreservedToken", + "span": { + "start": 1137, + "end": 1139, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + } + ] + } + }, + { + "type": "AtRule", + "span": { + "start": 1141, + "end": 1179, + "ctxt": 0 + }, + "name": { + "type": "Ident", + "span": { + "start": 1142, + "end": 1149, + "ctxt": 0 + }, + "value": "unknown", + "raw": "unknown" + }, + "prelude": { + "type": "ListOfComponentValues", + "span": { + "start": 1149, + "end": 1157, + "ctxt": 0 + }, + "children": [ + { + "type": "PreservedToken", + "span": { + "start": 1149, + "end": 1151, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, { "type": "PreservedToken", "span": { "start": 1151, - "end": 1153, + "end": 1152, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "x", + "raw": "x" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 1152, + "end": 1154, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 1154, + "end": 1155, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "y", + "raw": "y" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 1155, + "end": 1157, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + } + ] + }, + "block": { + "type": "SimpleBlock", + "span": { + "start": 1157, + "end": 1179, + "ctxt": 0 + }, + "name": "{", + "value": [ + { + "type": "PreservedToken", + "span": { + "start": 1158, + "end": 1160, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 1160, + "end": 1161, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "s", + "raw": "s" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 1161, + "end": 1163, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "SimpleBlock", + "span": { + "start": 1163, + "end": 1176, + "ctxt": 0 + }, + "name": "{", + "value": [ + { + "type": "PreservedToken", + "span": { + "start": 1164, + "end": 1166, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 1166, + "end": 1167, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "p", + "raw": "p" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 1167, + "end": 1169, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 1169, + "end": 1170, + "ctxt": 0 + }, + "token": "Colon" + }, + { + "type": "PreservedToken", + "span": { + "start": 1170, + "end": 1172, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 1172, + "end": 1173, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "v", + "raw": "v" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 1173, + "end": 1175, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + } + ] + }, + { + "type": "PreservedToken", + "span": { + "start": 1176, + "end": 1178, "ctxt": 0 }, "token": { @@ -2974,15 +4018,15 @@ { "type": "AtRule", "span": { - "start": 1155, - "end": 1193, + "start": 1180, + "end": 1231, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 1156, - "end": 1163, + "start": 1181, + "end": 1188, "ctxt": 0 }, "value": "unknown", @@ -2991,288 +4035,29 @@ "prelude": { "type": "ListOfComponentValues", "span": { - "start": 1163, - "end": 1171, + "start": 1188, + "end": 1209, "ctxt": 0 }, "children": [ { "type": "PreservedToken", "span": { - "start": 1163, - "end": 1165, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 1165, - "end": 1166, - "ctxt": 0 - }, - "token": { - "Ident": { - "value": "x", - "raw": "x" - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 1166, - "end": 1168, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 1168, - "end": 1169, - "ctxt": 0 - }, - "token": { - "Ident": { - "value": "y", - "raw": "y" - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 1169, - "end": 1171, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - } - ] - }, - "block": { - "type": "SimpleBlock", - "span": { - "start": 1171, - "end": 1193, - "ctxt": 0 - }, - "name": "{", - "value": [ - { - "type": "PreservedToken", - "span": { - "start": 1172, - "end": 1174, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 1174, - "end": 1175, - "ctxt": 0 - }, - "token": { - "Ident": { - "value": "s", - "raw": "s" - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 1175, - "end": 1177, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - }, - { - "type": "SimpleBlock", - "span": { - "start": 1177, + "start": 1188, "end": 1190, "ctxt": 0 }, - "name": "{", - "value": [ - { - "type": "PreservedToken", - "span": { - "start": 1178, - "end": 1180, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 1180, - "end": 1181, - "ctxt": 0 - }, - "token": { - "Ident": { - "value": "p", - "raw": "p" - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 1181, - "end": 1183, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 1183, - "end": 1184, - "ctxt": 0 - }, - "token": "Colon" - }, - { - "type": "PreservedToken", - "span": { - "start": 1184, - "end": 1186, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 1186, - "end": 1187, - "ctxt": 0 - }, - "token": { - "Ident": { - "value": "v", - "raw": "v" - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 1187, - "end": 1189, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } + "token": { + "WhiteSpace": { + "value": " " } - ] + } }, { "type": "PreservedToken", "span": { "start": 1190, - "end": 1192, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - } - ] - } - }, - { - "type": "AtRule", - "span": { - "start": 1194, - "end": 1245, - "ctxt": 0 - }, - "name": { - "type": "Ident", - "span": { - "start": 1195, - "end": 1202, - "ctxt": 0 - }, - "value": "unknown", - "raw": "unknown" - }, - "prelude": { - "type": "ListOfComponentValues", - "span": { - "start": 1202, - "end": 1223, - "ctxt": 0 - }, - "children": [ - { - "type": "PreservedToken", - "span": { - "start": 1202, - "end": 1204, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 1204, - "end": 1205, + "end": 1191, "ctxt": 0 }, "token": { @@ -3285,8 +4070,8 @@ { "type": "PreservedToken", "span": { - "start": 1205, - "end": 1207, + "start": 1191, + "end": 1193, "ctxt": 0 }, "token": { @@ -3295,90 +4080,121 @@ } } }, + { + "type": "PreservedToken", + "span": { + "start": 1193, + "end": 1194, + "ctxt": 0 + }, + "token": "Comma" + }, + { + "type": "PreservedToken", + "span": { + "start": 1194, + "end": 1196, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 1196, + "end": 1197, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "y", + "raw": "y" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 1197, + "end": 1199, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "Function", + "span": { + "start": 1199, + "end": 1207, + "ctxt": 0 + }, + "name": { + "type": "Ident", + "span": { + "start": 1199, + "end": 1200, + "ctxt": 0 + }, + "value": "f", + "raw": "f" + }, + "value": [ + { + "type": "PreservedToken", + "span": { + "start": 1201, + "end": 1203, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 1203, + "end": 1204, + "ctxt": 0 + }, + "token": { + "Number": { + "value": 1.0, + "raw": "1", + "type": "integer" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 1204, + "end": 1206, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + } + ] + }, { "type": "PreservedToken", "span": { "start": 1207, - "end": 1208, - "ctxt": 0 - }, - "token": "Comma" - }, - { - "type": "PreservedToken", - "span": { - "start": 1208, - "end": 1210, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 1210, - "end": 1211, - "ctxt": 0 - }, - "token": { - "Ident": { - "value": "y", - "raw": "y" - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 1211, - "end": 1213, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - }, - { - "type": "Function", - "span": { - "start": 1213, - "end": 1221, - "ctxt": 0 - }, - "name": { - "type": "Ident", - "span": { - "start": 1213, - "end": 1214, - "ctxt": 0 - }, - "value": "f", - "raw": "f" - }, - "value": [ - { - "type": "Integer", - "span": { - "start": 1217, - "end": 1218, - "ctxt": 0 - }, - "value": 1, - "raw": "1" - } - ] - }, - { - "type": "PreservedToken", - "span": { - "start": 1221, - "end": 1223, + "end": 1209, "ctxt": 0 }, "token": { @@ -3392,8 +4208,8 @@ "block": { "type": "SimpleBlock", "span": { - "start": 1223, - "end": 1245, + "start": 1209, + "end": 1231, "ctxt": 0 }, "name": "{", @@ -3401,8 +4217,8 @@ { "type": "PreservedToken", "span": { - "start": 1224, - "end": 1226, + "start": 1210, + "end": 1212, "ctxt": 0 }, "token": { @@ -3414,8 +4230,8 @@ { "type": "PreservedToken", "span": { - "start": 1226, - "end": 1227, + "start": 1212, + "end": 1213, "ctxt": 0 }, "token": { @@ -3428,8 +4244,8 @@ { "type": "PreservedToken", "span": { - "start": 1227, - "end": 1229, + "start": 1213, + "end": 1215, "ctxt": 0 }, "token": { @@ -3441,8 +4257,8 @@ { "type": "SimpleBlock", "span": { - "start": 1229, - "end": 1242, + "start": 1215, + "end": 1228, "ctxt": 0 }, "name": "{", @@ -3450,8 +4266,8 @@ { "type": "PreservedToken", "span": { - "start": 1230, - "end": 1232, + "start": 1216, + "end": 1218, "ctxt": 0 }, "token": { @@ -3463,8 +4279,8 @@ { "type": "PreservedToken", "span": { - "start": 1232, - "end": 1233, + "start": 1218, + "end": 1219, "ctxt": 0 }, "token": { @@ -3477,8 +4293,8 @@ { "type": "PreservedToken", "span": { - "start": 1233, - "end": 1235, + "start": 1219, + "end": 1221, "ctxt": 0 }, "token": { @@ -3490,8 +4306,8 @@ { "type": "PreservedToken", "span": { - "start": 1235, - "end": 1236, + "start": 1221, + "end": 1222, "ctxt": 0 }, "token": "Colon" @@ -3499,8 +4315,8 @@ { "type": "PreservedToken", "span": { - "start": 1236, - "end": 1238, + "start": 1222, + "end": 1224, "ctxt": 0 }, "token": { @@ -3512,8 +4328,8 @@ { "type": "PreservedToken", "span": { - "start": 1238, - "end": 1239, + "start": 1224, + "end": 1225, "ctxt": 0 }, "token": { @@ -3526,8 +4342,8 @@ { "type": "PreservedToken", "span": { - "start": 1239, - "end": 1241, + "start": 1225, + "end": 1227, "ctxt": 0 }, "token": { @@ -3541,8 +4357,8 @@ { "type": "PreservedToken", "span": { - "start": 1242, - "end": 1244, + "start": 1228, + "end": 1230, "ctxt": 0 }, "token": { @@ -3557,15 +4373,15 @@ { "type": "AtRule", "span": { - "start": 1246, - "end": 1302, + "start": 1232, + "end": 1288, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 1247, - "end": 1254, + "start": 1233, + "end": 1240, "ctxt": 0 }, "value": "unknown", @@ -3574,16 +4390,16 @@ "prelude": { "type": "ListOfComponentValues", "span": { - "start": 1254, - "end": 1280, + "start": 1240, + "end": 1266, "ctxt": 0 }, "children": [ { "type": "PreservedToken", "span": { - "start": 1254, - "end": 1256, + "start": 1240, + "end": 1242, "ctxt": 0 }, "token": { @@ -3595,8 +4411,8 @@ { "type": "PreservedToken", "span": { - "start": 1256, - "end": 1257, + "start": 1242, + "end": 1243, "ctxt": 0 }, "token": { @@ -3609,8 +4425,8 @@ { "type": "PreservedToken", "span": { - "start": 1257, - "end": 1259, + "start": 1243, + "end": 1245, "ctxt": 0 }, "token": { @@ -3622,8 +4438,8 @@ { "type": "PreservedToken", "span": { - "start": 1259, - "end": 1260, + "start": 1245, + "end": 1246, "ctxt": 0 }, "token": "Comma" @@ -3631,8 +4447,8 @@ { "type": "PreservedToken", "span": { - "start": 1260, - "end": 1262, + "start": 1246, + "end": 1248, "ctxt": 0 }, "token": { @@ -3644,8 +4460,8 @@ { "type": "PreservedToken", "span": { - "start": 1262, - "end": 1263, + "start": 1248, + "end": 1249, "ctxt": 0 }, "token": { @@ -3658,8 +4474,8 @@ { "type": "PreservedToken", "span": { - "start": 1263, - "end": 1265, + "start": 1249, + "end": 1251, "ctxt": 0 }, "token": { @@ -3671,15 +4487,15 @@ { "type": "Function", "span": { - "start": 1265, - "end": 1278, + "start": 1251, + "end": 1264, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 1265, - "end": 1266, + "start": 1251, + "end": 1252, "ctxt": 0 }, "value": "f", @@ -3687,32 +4503,81 @@ }, "value": [ { - "type": "Integer", + "type": "PreservedToken", "span": { - "start": 1269, - "end": 1270, + "start": 1253, + "end": 1255, "ctxt": 0 }, - "value": 1, - "raw": "1" + "token": { + "WhiteSpace": { + "value": " " + } + } }, { - "type": "Integer", + "type": "PreservedToken", "span": { - "start": 1274, - "end": 1275, + "start": 1255, + "end": 1256, "ctxt": 0 }, - "value": 2, - "raw": "2" + "token": { + "Number": { + "value": 1.0, + "raw": "1", + "type": "integer" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 1256, + "end": 1260, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 1260, + "end": 1261, + "ctxt": 0 + }, + "token": { + "Number": { + "value": 2.0, + "raw": "2", + "type": "integer" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 1261, + "end": 1263, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } } ] }, { "type": "PreservedToken", "span": { - "start": 1278, - "end": 1280, + "start": 1264, + "end": 1266, "ctxt": 0 }, "token": { @@ -3726,8 +4591,8 @@ "block": { "type": "SimpleBlock", "span": { - "start": 1280, - "end": 1302, + "start": 1266, + "end": 1288, "ctxt": 0 }, "name": "{", @@ -3735,8 +4600,8 @@ { "type": "PreservedToken", "span": { - "start": 1281, - "end": 1283, + "start": 1267, + "end": 1269, "ctxt": 0 }, "token": { @@ -3748,8 +4613,8 @@ { "type": "PreservedToken", "span": { - "start": 1283, - "end": 1284, + "start": 1269, + "end": 1270, "ctxt": 0 }, "token": { @@ -3762,8 +4627,8 @@ { "type": "PreservedToken", "span": { - "start": 1284, - "end": 1286, + "start": 1270, + "end": 1272, "ctxt": 0 }, "token": { @@ -3775,8 +4640,8 @@ { "type": "SimpleBlock", "span": { - "start": 1286, - "end": 1299, + "start": 1272, + "end": 1285, "ctxt": 0 }, "name": "{", @@ -3784,8 +4649,8 @@ { "type": "PreservedToken", "span": { - "start": 1287, - "end": 1289, + "start": 1273, + "end": 1275, "ctxt": 0 }, "token": { @@ -3797,8 +4662,8 @@ { "type": "PreservedToken", "span": { - "start": 1289, - "end": 1290, + "start": 1275, + "end": 1276, "ctxt": 0 }, "token": { @@ -3811,8 +4676,8 @@ { "type": "PreservedToken", "span": { - "start": 1290, - "end": 1292, + "start": 1276, + "end": 1278, "ctxt": 0 }, "token": { @@ -3824,8 +4689,8 @@ { "type": "PreservedToken", "span": { - "start": 1292, - "end": 1293, + "start": 1278, + "end": 1279, "ctxt": 0 }, "token": "Colon" @@ -3833,8 +4698,8 @@ { "type": "PreservedToken", "span": { - "start": 1293, - "end": 1295, + "start": 1279, + "end": 1281, "ctxt": 0 }, "token": { @@ -3846,8 +4711,8 @@ { "type": "PreservedToken", "span": { - "start": 1295, - "end": 1296, + "start": 1281, + "end": 1282, "ctxt": 0 }, "token": { @@ -3860,8 +4725,8 @@ { "type": "PreservedToken", "span": { - "start": 1296, - "end": 1298, + "start": 1282, + "end": 1284, "ctxt": 0 }, "token": { @@ -3875,8 +4740,8 @@ { "type": "PreservedToken", "span": { - "start": 1299, - "end": 1301, + "start": 1285, + "end": 1287, "ctxt": 0 }, "token": { @@ -3891,15 +4756,15 @@ { "type": "AtRule", "span": { - "start": 1304, - "end": 1339, + "start": 1290, + "end": 1325, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 1305, - "end": 1312, + "start": 1291, + "end": 1298, "ctxt": 0 }, "value": "unknown", @@ -3908,16 +4773,16 @@ "prelude": { "type": "ListOfComponentValues", "span": { - "start": 1312, - "end": 1313, + "start": 1298, + "end": 1299, "ctxt": 0 }, "children": [ { "type": "PreservedToken", "span": { - "start": 1312, - "end": 1313, + "start": 1298, + "end": 1299, "ctxt": 0 }, "token": { @@ -3931,8 +4796,8 @@ "block": { "type": "SimpleBlock", "span": { - "start": 1313, - "end": 1339, + "start": 1299, + "end": 1325, "ctxt": 0 }, "name": "{", @@ -3940,8 +4805,8 @@ { "type": "PreservedToken", "span": { - "start": 1314, - "end": 1319, + "start": 1300, + "end": 1305, "ctxt": 0 }, "token": { @@ -3953,8 +4818,8 @@ { "type": "PreservedToken", "span": { - "start": 1319, - "end": 1322, + "start": 1305, + "end": 1308, "ctxt": 0 }, "token": "CDC" @@ -3962,8 +4827,8 @@ { "type": "PreservedToken", "span": { - "start": 1322, - "end": 1323, + "start": 1308, + "end": 1309, "ctxt": 0 }, "token": { @@ -3975,8 +4840,8 @@ { "type": "SimpleBlock", "span": { - "start": 1323, - "end": 1325, + "start": 1309, + "end": 1311, "ctxt": 0 }, "name": "{", @@ -3985,8 +4850,8 @@ { "type": "PreservedToken", "span": { - "start": 1325, - "end": 1330, + "start": 1311, + "end": 1316, "ctxt": 0 }, "token": { @@ -3998,8 +4863,8 @@ { "type": "PreservedToken", "span": { - "start": 1330, - "end": 1334, + "start": 1316, + "end": 1320, "ctxt": 0 }, "token": "CDO" @@ -4007,8 +4872,8 @@ { "type": "PreservedToken", "span": { - "start": 1334, - "end": 1335, + "start": 1320, + "end": 1321, "ctxt": 0 }, "token": { @@ -4020,8 +4885,8 @@ { "type": "SimpleBlock", "span": { - "start": 1335, - "end": 1337, + "start": 1321, + "end": 1323, "ctxt": 0 }, "name": "{", @@ -4030,8 +4895,8 @@ { "type": "PreservedToken", "span": { - "start": 1337, - "end": 1338, + "start": 1323, + "end": 1324, "ctxt": 0 }, "token": { @@ -4046,15 +4911,15 @@ { "type": "AtRule", "span": { - "start": 1341, - "end": 1375, + "start": 1327, + "end": 1361, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 1342, - "end": 1349, + "start": 1328, + "end": 1335, "ctxt": 0 }, "value": "unknown", @@ -4063,55 +4928,55 @@ "prelude": { "type": "ListOfComponentValues", "span": { - "start": 1349, - "end": 1350, + "start": 1335, + "end": 1336, "ctxt": 0 }, "children": [ { "type": "PreservedToken", "span": { - "start": 1349, + "start": 1335, + "end": 1336, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + } + ] + }, + "block": { + "type": "SimpleBlock", + "span": { + "start": 1336, + "end": 1361, + "ctxt": 0 + }, + "name": "{", + "value": [ + { + "type": "PreservedToken", + "span": { + "start": 1337, + "end": 1342, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": "\n " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 1342, "end": 1350, "ctxt": 0 }, - "token": { - "WhiteSpace": { - "value": " " - } - } - } - ] - }, - "block": { - "type": "SimpleBlock", - "span": { - "start": 1350, - "end": 1375, - "ctxt": 0 - }, - "name": "{", - "value": [ - { - "type": "PreservedToken", - "span": { - "start": 1351, - "end": 1356, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": "\n " - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 1356, - "end": 1364, - "ctxt": 0 - }, "token": { "AtKeyword": { "value": "unknown", @@ -4122,8 +4987,8 @@ { "type": "PreservedToken", "span": { - "start": 1364, - "end": 1365, + "start": 1350, + "end": 1351, "ctxt": 0 }, "token": { @@ -4135,8 +5000,8 @@ { "type": "SimpleBlock", "span": { - "start": 1365, - "end": 1373, + "start": 1351, + "end": 1359, "ctxt": 0 }, "name": "{", @@ -4144,8 +5009,8 @@ { "type": "PreservedToken", "span": { - "start": 1366, - "end": 1367, + "start": 1352, + "end": 1353, "ctxt": 0 }, "token": { @@ -4158,8 +5023,8 @@ { "type": "SimpleBlock", "span": { - "start": 1367, - "end": 1372, + "start": 1353, + "end": 1358, "ctxt": 0 }, "name": "{", @@ -4167,8 +5032,8 @@ { "type": "PreservedToken", "span": { - "start": 1368, - "end": 1369, + "start": 1354, + "end": 1355, "ctxt": 0 }, "token": { @@ -4181,8 +5046,8 @@ { "type": "PreservedToken", "span": { - "start": 1369, - "end": 1370, + "start": 1355, + "end": 1356, "ctxt": 0 }, "token": "Colon" @@ -4190,8 +5055,8 @@ { "type": "PreservedToken", "span": { - "start": 1370, - "end": 1371, + "start": 1356, + "end": 1357, "ctxt": 0 }, "token": { @@ -4208,8 +5073,8 @@ { "type": "PreservedToken", "span": { - "start": 1373, - "end": 1374, + "start": 1359, + "end": 1360, "ctxt": 0 }, "token": { @@ -4224,15 +5089,15 @@ { "type": "AtRule", "span": { - "start": 1377, - "end": 1432, + "start": 1363, + "end": 1418, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 1378, - "end": 1385, + "start": 1364, + "end": 1371, "ctxt": 0 }, "value": "unknown", @@ -4241,16 +5106,16 @@ "prelude": { "type": "ListOfComponentValues", "span": { - "start": 1385, - "end": 1386, + "start": 1371, + "end": 1372, "ctxt": 0 }, "children": [ { "type": "PreservedToken", "span": { - "start": 1385, - "end": 1386, + "start": 1371, + "end": 1372, "ctxt": 0 }, "token": { @@ -4264,8 +5129,8 @@ "block": { "type": "SimpleBlock", "span": { - "start": 1386, - "end": 1432, + "start": 1372, + "end": 1418, "ctxt": 0 }, "name": "{", @@ -4273,8 +5138,8 @@ { "type": "PreservedToken", "span": { - "start": 1387, - "end": 1392, + "start": 1373, + "end": 1378, "ctxt": 0 }, "token": { @@ -4286,8 +5151,8 @@ { "type": "PreservedToken", "span": { - "start": 1392, - "end": 1400, + "start": 1378, + "end": 1386, "ctxt": 0 }, "token": { @@ -4300,8 +5165,8 @@ { "type": "PreservedToken", "span": { - "start": 1400, - "end": 1401, + "start": 1386, + "end": 1387, "ctxt": 0 }, "token": { @@ -4313,8 +5178,8 @@ { "type": "SimpleBlock", "span": { - "start": 1401, - "end": 1409, + "start": 1387, + "end": 1395, "ctxt": 0 }, "name": "{", @@ -4322,8 +5187,8 @@ { "type": "PreservedToken", "span": { - "start": 1402, - "end": 1403, + "start": 1388, + "end": 1389, "ctxt": 0 }, "token": { @@ -4336,8 +5201,8 @@ { "type": "SimpleBlock", "span": { - "start": 1403, - "end": 1408, + "start": 1389, + "end": 1394, "ctxt": 0 }, "name": "{", @@ -4345,8 +5210,8 @@ { "type": "PreservedToken", "span": { - "start": 1404, - "end": 1405, + "start": 1390, + "end": 1391, "ctxt": 0 }, "token": { @@ -4359,8 +5224,8 @@ { "type": "PreservedToken", "span": { - "start": 1405, - "end": 1406, + "start": 1391, + "end": 1392, "ctxt": 0 }, "token": "Colon" @@ -4368,8 +5233,8 @@ { "type": "PreservedToken", "span": { - "start": 1406, - "end": 1407, + "start": 1392, + "end": 1393, "ctxt": 0 }, "token": { @@ -4386,8 +5251,8 @@ { "type": "PreservedToken", "span": { - "start": 1409, - "end": 1419, + "start": 1395, + "end": 1405, "ctxt": 0 }, "token": { @@ -4399,8 +5264,8 @@ { "type": "PreservedToken", "span": { - "start": 1419, - "end": 1424, + "start": 1405, + "end": 1410, "ctxt": 0 }, "token": { @@ -4413,8 +5278,8 @@ { "type": "PreservedToken", "span": { - "start": 1424, - "end": 1425, + "start": 1410, + "end": 1411, "ctxt": 0 }, "token": "Colon" @@ -4422,8 +5287,8 @@ { "type": "PreservedToken", "span": { - "start": 1425, - "end": 1426, + "start": 1411, + "end": 1412, "ctxt": 0 }, "token": { @@ -4435,8 +5300,8 @@ { "type": "PreservedToken", "span": { - "start": 1426, - "end": 1429, + "start": 1412, + "end": 1415, "ctxt": 0 }, "token": { @@ -4449,8 +5314,8 @@ { "type": "PreservedToken", "span": { - "start": 1429, - "end": 1430, + "start": 1415, + "end": 1416, "ctxt": 0 }, "token": "Semi" @@ -4458,8 +5323,8 @@ { "type": "PreservedToken", "span": { - "start": 1430, - "end": 1431, + "start": 1416, + "end": 1417, "ctxt": 0 }, "token": { @@ -4474,31 +5339,31 @@ { "type": "QualifiedRule", "span": { - "start": 1434, - "end": 1481, + "start": 1420, + "end": 1467, "ctxt": 0 }, "prelude": { "type": "SelectorList", "span": { - "start": 1434, - "end": 1438, + "start": 1420, + "end": 1424, "ctxt": 0 }, "children": [ { "type": "ComplexSelector", "span": { - "start": 1434, - "end": 1438, + "start": 1420, + "end": 1424, "ctxt": 0 }, "children": [ { "type": "CompoundSelector", "span": { - "start": 1434, - "end": 1438, + "start": 1420, + "end": 1424, "ctxt": 0 }, "nestingSelector": null, @@ -4507,15 +5372,15 @@ { "type": "ClassSelector", "span": { - "start": 1434, - "end": 1438, + "start": 1420, + "end": 1424, "ctxt": 0 }, "text": { "type": "Ident", "span": { - "start": 1435, - "end": 1438, + "start": 1421, + "end": 1424, "ctxt": 0 }, "value": "foo", @@ -4531,8 +5396,8 @@ "block": { "type": "SimpleBlock", "span": { - "start": 1439, - "end": 1481, + "start": 1425, + "end": 1467, "ctxt": 0 }, "name": "{", @@ -4540,15 +5405,15 @@ { "type": "Declaration", "span": { - "start": 1468, - "end": 1478, + "start": 1454, + "end": 1464, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 1468, - "end": 1473, + "start": 1454, + "end": 1459, "ctxt": 0 }, "value": "color", @@ -4558,8 +5423,8 @@ { "type": "Ident", "span": { - "start": 1475, - "end": 1478, + "start": 1461, + "end": 1464, "ctxt": 0 }, "value": "red", @@ -4571,15 +5436,15 @@ { "type": "AtRule", "span": { - "start": 1445, - "end": 1462, + "start": 1431, + "end": 1448, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 1446, - "end": 1453, + "start": 1432, + "end": 1439, "ctxt": 0 }, "value": "unknown", @@ -4588,16 +5453,16 @@ "prelude": { "type": "ListOfComponentValues", "span": { - "start": 1453, - "end": 1454, + "start": 1439, + "end": 1440, "ctxt": 0 }, "children": [ { "type": "PreservedToken", "span": { - "start": 1453, - "end": 1454, + "start": 1439, + "end": 1440, "ctxt": 0 }, "token": { @@ -4611,8 +5476,8 @@ "block": { "type": "SimpleBlock", "span": { - "start": 1454, - "end": 1462, + "start": 1440, + "end": 1448, "ctxt": 0 }, "name": "{", @@ -4620,8 +5485,8 @@ { "type": "PreservedToken", "span": { - "start": 1455, - "end": 1456, + "start": 1441, + "end": 1442, "ctxt": 0 }, "token": { @@ -4634,8 +5499,8 @@ { "type": "SimpleBlock", "span": { - "start": 1456, - "end": 1461, + "start": 1442, + "end": 1447, "ctxt": 0 }, "name": "{", @@ -4643,8 +5508,8 @@ { "type": "PreservedToken", "span": { - "start": 1457, - "end": 1458, + "start": 1443, + "end": 1444, "ctxt": 0 }, "token": { @@ -4657,8 +5522,8 @@ { "type": "PreservedToken", "span": { - "start": 1458, - "end": 1459, + "start": 1444, + "end": 1445, "ctxt": 0 }, "token": "Colon" @@ -4666,8 +5531,8 @@ { "type": "PreservedToken", "span": { - "start": 1459, - "end": 1460, + "start": 1445, + "end": 1446, "ctxt": 0 }, "token": { @@ -4688,15 +5553,15 @@ { "type": "AtRule", "span": { - "start": 1483, - "end": 1505, + "start": 1469, + "end": 1491, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 1484, - "end": 1491, + "start": 1470, + "end": 1477, "ctxt": 0 }, "value": "unknown", @@ -4705,16 +5570,16 @@ "prelude": { "type": "ListOfComponentValues", "span": { - "start": 1491, - "end": 1504, + "start": 1477, + "end": 1490, "ctxt": 0 }, "children": [ { "type": "PreservedToken", "span": { - "start": 1491, - "end": 1492, + "start": 1477, + "end": 1478, "ctxt": 0 }, "token": { @@ -4726,8 +5591,8 @@ { "type": "PreservedToken", "span": { - "start": 1492, - "end": 1493, + "start": 1478, + "end": 1479, "ctxt": 0 }, "token": { @@ -4740,8 +5605,8 @@ { "type": "PreservedToken", "span": { - "start": 1493, - "end": 1494, + "start": 1479, + "end": 1480, "ctxt": 0 }, "token": { @@ -4753,8 +5618,8 @@ { "type": "SimpleBlock", "span": { - "start": 1494, - "end": 1503, + "start": 1480, + "end": 1489, "ctxt": 0 }, "name": "(", @@ -4762,8 +5627,8 @@ { "type": "PreservedToken", "span": { - "start": 1495, - "end": 1496, + "start": 1481, + "end": 1482, "ctxt": 0 }, "token": { @@ -4775,8 +5640,8 @@ { "type": "PreservedToken", "span": { - "start": 1496, - "end": 1497, + "start": 1482, + "end": 1483, "ctxt": 0 }, "token": { @@ -4789,8 +5654,8 @@ { "type": "PreservedToken", "span": { - "start": 1497, - "end": 1498, + "start": 1483, + "end": 1484, "ctxt": 0 }, "token": { @@ -4802,8 +5667,8 @@ { "type": "PreservedToken", "span": { - "start": 1498, - "end": 1499, + "start": 1484, + "end": 1485, "ctxt": 0 }, "token": "Comma" @@ -4811,8 +5676,8 @@ { "type": "PreservedToken", "span": { - "start": 1499, - "end": 1500, + "start": 1485, + "end": 1486, "ctxt": 0 }, "token": { @@ -4824,8 +5689,8 @@ { "type": "PreservedToken", "span": { - "start": 1500, - "end": 1501, + "start": 1486, + "end": 1487, "ctxt": 0 }, "token": { @@ -4838,8 +5703,8 @@ { "type": "PreservedToken", "span": { - "start": 1501, - "end": 1502, + "start": 1487, + "end": 1488, "ctxt": 0 }, "token": { @@ -4853,8 +5718,8 @@ { "type": "PreservedToken", "span": { - "start": 1503, - "end": 1504, + "start": 1489, + "end": 1490, "ctxt": 0 }, "token": { @@ -4870,15 +5735,15 @@ { "type": "AtRule", "span": { - "start": 1506, - "end": 1539, + "start": 1492, + "end": 1525, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 1507, - "end": 1514, + "start": 1493, + "end": 1500, "ctxt": 0 }, "value": "unknown", @@ -4887,11 +5752,175 @@ "prelude": { "type": "ListOfComponentValues", "span": { - "start": 1514, - "end": 1527, + "start": 1500, + "end": 1513, "ctxt": 0 }, "children": [ + { + "type": "PreservedToken", + "span": { + "start": 1500, + "end": 1501, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 1501, + "end": 1502, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "x", + "raw": "x" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 1502, + "end": 1503, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "SimpleBlock", + "span": { + "start": 1503, + "end": 1512, + "ctxt": 0 + }, + "name": "(", + "value": [ + { + "type": "PreservedToken", + "span": { + "start": 1504, + "end": 1505, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 1505, + "end": 1506, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "a", + "raw": "a" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 1506, + "end": 1507, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 1507, + "end": 1508, + "ctxt": 0 + }, + "token": "Comma" + }, + { + "type": "PreservedToken", + "span": { + "start": 1508, + "end": 1509, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 1509, + "end": 1510, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "b", + "raw": "b" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 1510, + "end": 1511, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + } + ] + }, + { + "type": "PreservedToken", + "span": { + "start": 1512, + "end": 1513, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + } + ] + }, + "block": { + "type": "SimpleBlock", + "span": { + "start": 1513, + "end": 1525, + "ctxt": 0 + }, + "name": "{", + "value": [ { "type": "PreservedToken", "span": { @@ -4909,171 +5938,7 @@ "type": "PreservedToken", "span": { "start": 1515, - "end": 1516, - "ctxt": 0 - }, - "token": { - "Ident": { - "value": "x", - "raw": "x" - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 1516, - "end": 1517, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - }, - { - "type": "SimpleBlock", - "span": { - "start": 1517, - "end": 1526, - "ctxt": 0 - }, - "name": "(", - "value": [ - { - "type": "PreservedToken", - "span": { - "start": 1518, - "end": 1519, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 1519, - "end": 1520, - "ctxt": 0 - }, - "token": { - "Ident": { - "value": "a", - "raw": "a" - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 1520, - "end": 1521, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 1521, - "end": 1522, - "ctxt": 0 - }, - "token": "Comma" - }, - { - "type": "PreservedToken", - "span": { - "start": 1522, - "end": 1523, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 1523, - "end": 1524, - "ctxt": 0 - }, - "token": { - "Ident": { - "value": "b", - "raw": "b" - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 1524, - "end": 1525, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - } - ] - }, - { - "type": "PreservedToken", - "span": { - "start": 1526, - "end": 1527, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - } - ] - }, - "block": { - "type": "SimpleBlock", - "span": { - "start": 1527, - "end": 1539, - "ctxt": 0 - }, - "name": "{", - "value": [ - { - "type": "PreservedToken", - "span": { - "start": 1528, - "end": 1529, - "ctxt": 0 - }, - "token": { - "WhiteSpace": { - "value": " " - } - } - }, - { - "type": "PreservedToken", - "span": { - "start": 1529, - "end": 1532, + "end": 1518, "ctxt": 0 }, "token": { @@ -5086,8 +5951,8 @@ { "type": "PreservedToken", "span": { - "start": 1532, - "end": 1533, + "start": 1518, + "end": 1519, "ctxt": 0 }, "token": "Colon" @@ -5095,8 +5960,8 @@ { "type": "PreservedToken", "span": { - "start": 1533, - "end": 1534, + "start": 1519, + "end": 1520, "ctxt": 0 }, "token": { @@ -5108,8 +5973,8 @@ { "type": "PreservedToken", "span": { - "start": 1534, - "end": 1537, + "start": 1520, + "end": 1523, "ctxt": 0 }, "token": { @@ -5122,8 +5987,8 @@ { "type": "PreservedToken", "span": { - "start": 1537, - "end": 1538, + "start": 1523, + "end": 1524, "ctxt": 0 }, "token": { @@ -5138,15 +6003,15 @@ { "type": "AtRule", "span": { - "start": 1540, - "end": 1571, + "start": 1526, + "end": 1557, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 1541, - "end": 1548, + "start": 1527, + "end": 1534, "ctxt": 0 }, "value": "unknown", @@ -5155,16 +6020,16 @@ "prelude": { "type": "ListOfComponentValues", "span": { - "start": 1548, - "end": 1559, + "start": 1534, + "end": 1545, "ctxt": 0 }, "children": [ { "type": "PreservedToken", "span": { - "start": 1548, - "end": 1549, + "start": 1534, + "end": 1535, "ctxt": 0 }, "token": { @@ -5176,15 +6041,15 @@ { "type": "Function", "span": { - "start": 1549, - "end": 1558, + "start": 1535, + "end": 1544, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 1549, - "end": 1550, + "start": 1535, + "end": 1536, "ctxt": 0 }, "value": "x", @@ -5192,41 +6057,88 @@ }, "value": [ { - "type": "Ident", + "type": "PreservedToken", "span": { - "start": 1552, - "end": 1553, + "start": 1537, + "end": 1538, "ctxt": 0 }, - "value": "a", - "raw": "a" + "token": { + "WhiteSpace": { + "value": " " + } + } }, { - "type": "Delimiter", + "type": "PreservedToken", "span": { - "start": 1553, - "end": 1554, + "start": 1538, + "end": 1539, "ctxt": 0 }, - "value": "," + "token": { + "Ident": { + "value": "a", + "raw": "a" + } + } }, { - "type": "Ident", + "type": "PreservedToken", "span": { - "start": 1555, - "end": 1556, + "start": 1539, + "end": 1540, "ctxt": 0 }, - "value": "b", - "raw": "b" + "token": "Comma" + }, + { + "type": "PreservedToken", + "span": { + "start": 1540, + "end": 1541, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 1541, + "end": 1542, + "ctxt": 0 + }, + "token": { + "Ident": { + "value": "b", + "raw": "b" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 1542, + "end": 1543, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } } ] }, { "type": "PreservedToken", "span": { - "start": 1558, - "end": 1559, + "start": 1544, + "end": 1545, "ctxt": 0 }, "token": { @@ -5240,8 +6152,8 @@ "block": { "type": "SimpleBlock", "span": { - "start": 1559, - "end": 1571, + "start": 1545, + "end": 1557, "ctxt": 0 }, "name": "{", @@ -5249,8 +6161,8 @@ { "type": "PreservedToken", "span": { - "start": 1560, - "end": 1561, + "start": 1546, + "end": 1547, "ctxt": 0 }, "token": { @@ -5262,8 +6174,8 @@ { "type": "PreservedToken", "span": { - "start": 1561, - "end": 1564, + "start": 1547, + "end": 1550, "ctxt": 0 }, "token": { @@ -5276,8 +6188,8 @@ { "type": "PreservedToken", "span": { - "start": 1564, - "end": 1565, + "start": 1550, + "end": 1551, "ctxt": 0 }, "token": "Colon" @@ -5285,8 +6197,8 @@ { "type": "PreservedToken", "span": { - "start": 1565, - "end": 1566, + "start": 1551, + "end": 1552, "ctxt": 0 }, "token": { @@ -5298,8 +6210,8 @@ { "type": "PreservedToken", "span": { - "start": 1566, - "end": 1569, + "start": 1552, + "end": 1555, "ctxt": 0 }, "token": { @@ -5312,8 +6224,8 @@ { "type": "PreservedToken", "span": { - "start": 1569, - "end": 1570, + "start": 1555, + "end": 1556, "ctxt": 0 }, "token": { @@ -5328,15 +6240,15 @@ { "type": "AtRule", "span": { - "start": 1572, - "end": 1594, + "start": 1558, + "end": 1580, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 1573, - "end": 1580, + "start": 1559, + "end": 1566, "ctxt": 0 }, "value": "unknown", @@ -5345,16 +6257,16 @@ "prelude": { "type": "ListOfComponentValues", "span": { - "start": 1580, - "end": 1593, + "start": 1566, + "end": 1579, "ctxt": 0 }, "children": [ { "type": "PreservedToken", "span": { - "start": 1580, - "end": 1581, + "start": 1566, + "end": 1567, "ctxt": 0 }, "token": { @@ -5366,8 +6278,8 @@ { "type": "PreservedToken", "span": { - "start": 1581, - "end": 1582, + "start": 1567, + "end": 1568, "ctxt": 0 }, "token": { @@ -5380,8 +6292,8 @@ { "type": "PreservedToken", "span": { - "start": 1582, - "end": 1583, + "start": 1568, + "end": 1569, "ctxt": 0 }, "token": { @@ -5393,8 +6305,8 @@ { "type": "SimpleBlock", "span": { - "start": 1583, - "end": 1592, + "start": 1569, + "end": 1578, "ctxt": 0 }, "name": "(", @@ -5402,8 +6314,8 @@ { "type": "PreservedToken", "span": { - "start": 1584, - "end": 1585, + "start": 1570, + "end": 1571, "ctxt": 0 }, "token": { @@ -5415,8 +6327,8 @@ { "type": "PreservedToken", "span": { - "start": 1585, - "end": 1586, + "start": 1571, + "end": 1572, "ctxt": 0 }, "token": { @@ -5429,8 +6341,8 @@ { "type": "PreservedToken", "span": { - "start": 1586, - "end": 1587, + "start": 1572, + "end": 1573, "ctxt": 0 }, "token": { @@ -5442,8 +6354,8 @@ { "type": "PreservedToken", "span": { - "start": 1587, - "end": 1588, + "start": 1573, + "end": 1574, "ctxt": 0 }, "token": { @@ -5455,8 +6367,8 @@ { "type": "PreservedToken", "span": { - "start": 1588, - "end": 1589, + "start": 1574, + "end": 1575, "ctxt": 0 }, "token": { @@ -5468,8 +6380,8 @@ { "type": "PreservedToken", "span": { - "start": 1589, - "end": 1590, + "start": 1575, + "end": 1576, "ctxt": 0 }, "token": { @@ -5482,8 +6394,8 @@ { "type": "PreservedToken", "span": { - "start": 1590, - "end": 1591, + "start": 1576, + "end": 1577, "ctxt": 0 }, "token": { @@ -5497,8 +6409,8 @@ { "type": "PreservedToken", "span": { - "start": 1592, - "end": 1593, + "start": 1578, + "end": 1579, "ctxt": 0 }, "token": { @@ -5514,15 +6426,15 @@ { "type": "AtRule", "span": { - "start": 1595, - "end": 1617, + "start": 1581, + "end": 1603, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 1596, - "end": 1603, + "start": 1582, + "end": 1589, "ctxt": 0 }, "value": "unknown", @@ -5531,16 +6443,16 @@ "prelude": { "type": "ListOfComponentValues", "span": { - "start": 1603, - "end": 1616, + "start": 1589, + "end": 1602, "ctxt": 0 }, "children": [ { "type": "PreservedToken", "span": { - "start": 1603, - "end": 1604, + "start": 1589, + "end": 1590, "ctxt": 0 }, "token": { @@ -5552,8 +6464,8 @@ { "type": "PreservedToken", "span": { - "start": 1604, - "end": 1605, + "start": 1590, + "end": 1591, "ctxt": 0 }, "token": { @@ -5566,8 +6478,8 @@ { "type": "PreservedToken", "span": { - "start": 1605, - "end": 1606, + "start": 1591, + "end": 1592, "ctxt": 0 }, "token": { @@ -5579,8 +6491,8 @@ { "type": "SimpleBlock", "span": { - "start": 1606, - "end": 1615, + "start": 1592, + "end": 1601, "ctxt": 0 }, "name": "(", @@ -5588,8 +6500,8 @@ { "type": "PreservedToken", "span": { - "start": 1607, - "end": 1608, + "start": 1593, + "end": 1594, "ctxt": 0 }, "token": { @@ -5601,8 +6513,8 @@ { "type": "PreservedToken", "span": { - "start": 1608, - "end": 1609, + "start": 1594, + "end": 1595, "ctxt": 0 }, "token": { @@ -5615,8 +6527,8 @@ { "type": "PreservedToken", "span": { - "start": 1609, - "end": 1610, + "start": 1595, + "end": 1596, "ctxt": 0 }, "token": { @@ -5628,8 +6540,8 @@ { "type": "PreservedToken", "span": { - "start": 1610, - "end": 1611, + "start": 1596, + "end": 1597, "ctxt": 0 }, "token": { @@ -5641,8 +6553,8 @@ { "type": "PreservedToken", "span": { - "start": 1611, - "end": 1612, + "start": 1597, + "end": 1598, "ctxt": 0 }, "token": { @@ -5654,8 +6566,8 @@ { "type": "PreservedToken", "span": { - "start": 1612, - "end": 1613, + "start": 1598, + "end": 1599, "ctxt": 0 }, "token": { @@ -5668,8 +6580,8 @@ { "type": "PreservedToken", "span": { - "start": 1613, - "end": 1614, + "start": 1599, + "end": 1600, "ctxt": 0 }, "token": { @@ -5683,8 +6595,8 @@ { "type": "PreservedToken", "span": { - "start": 1615, - "end": 1616, + "start": 1601, + "end": 1602, "ctxt": 0 }, "token": { @@ -5700,15 +6612,15 @@ { "type": "AtRule", "span": { - "start": 1618, - "end": 1640, + "start": 1604, + "end": 1626, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 1619, - "end": 1626, + "start": 1605, + "end": 1612, "ctxt": 0 }, "value": "unknown", @@ -5717,16 +6629,16 @@ "prelude": { "type": "ListOfComponentValues", "span": { - "start": 1626, - "end": 1639, + "start": 1612, + "end": 1625, "ctxt": 0 }, "children": [ { "type": "PreservedToken", "span": { - "start": 1626, - "end": 1627, + "start": 1612, + "end": 1613, "ctxt": 0 }, "token": { @@ -5738,8 +6650,8 @@ { "type": "PreservedToken", "span": { - "start": 1627, - "end": 1628, + "start": 1613, + "end": 1614, "ctxt": 0 }, "token": { @@ -5752,8 +6664,8 @@ { "type": "PreservedToken", "span": { - "start": 1628, - "end": 1629, + "start": 1614, + "end": 1615, "ctxt": 0 }, "token": { @@ -5765,8 +6677,8 @@ { "type": "SimpleBlock", "span": { - "start": 1629, - "end": 1638, + "start": 1615, + "end": 1624, "ctxt": 0 }, "name": "(", @@ -5774,8 +6686,8 @@ { "type": "PreservedToken", "span": { - "start": 1630, - "end": 1631, + "start": 1616, + "end": 1617, "ctxt": 0 }, "token": { @@ -5787,8 +6699,8 @@ { "type": "PreservedToken", "span": { - "start": 1631, - "end": 1632, + "start": 1617, + "end": 1618, "ctxt": 0 }, "token": { @@ -5801,8 +6713,8 @@ { "type": "PreservedToken", "span": { - "start": 1632, - "end": 1633, + "start": 1618, + "end": 1619, "ctxt": 0 }, "token": { @@ -5814,8 +6726,8 @@ { "type": "PreservedToken", "span": { - "start": 1633, - "end": 1634, + "start": 1619, + "end": 1620, "ctxt": 0 }, "token": { @@ -5827,8 +6739,8 @@ { "type": "PreservedToken", "span": { - "start": 1634, - "end": 1635, + "start": 1620, + "end": 1621, "ctxt": 0 }, "token": { @@ -5840,8 +6752,8 @@ { "type": "PreservedToken", "span": { - "start": 1635, - "end": 1636, + "start": 1621, + "end": 1622, "ctxt": 0 }, "token": { @@ -5854,8 +6766,8 @@ { "type": "PreservedToken", "span": { - "start": 1636, - "end": 1637, + "start": 1622, + "end": 1623, "ctxt": 0 }, "token": { @@ -5869,8 +6781,8 @@ { "type": "PreservedToken", "span": { - "start": 1638, - "end": 1639, + "start": 1624, + "end": 1625, "ctxt": 0 }, "token": { @@ -5886,15 +6798,15 @@ { "type": "AtRule", "span": { - "start": 1641, - "end": 1663, + "start": 1627, + "end": 1649, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 1642, - "end": 1649, + "start": 1628, + "end": 1635, "ctxt": 0 }, "value": "unknown", @@ -5903,16 +6815,16 @@ "prelude": { "type": "ListOfComponentValues", "span": { - "start": 1649, - "end": 1662, + "start": 1635, + "end": 1648, "ctxt": 0 }, "children": [ { "type": "PreservedToken", "span": { - "start": 1649, - "end": 1650, + "start": 1635, + "end": 1636, "ctxt": 0 }, "token": { @@ -5924,8 +6836,8 @@ { "type": "PreservedToken", "span": { - "start": 1650, - "end": 1651, + "start": 1636, + "end": 1637, "ctxt": 0 }, "token": { @@ -5938,8 +6850,8 @@ { "type": "PreservedToken", "span": { - "start": 1651, - "end": 1652, + "start": 1637, + "end": 1638, "ctxt": 0 }, "token": { @@ -5951,8 +6863,8 @@ { "type": "SimpleBlock", "span": { - "start": 1652, - "end": 1661, + "start": 1638, + "end": 1647, "ctxt": 0 }, "name": "(", @@ -5960,8 +6872,8 @@ { "type": "PreservedToken", "span": { - "start": 1653, - "end": 1654, + "start": 1639, + "end": 1640, "ctxt": 0 }, "token": { @@ -5973,8 +6885,8 @@ { "type": "PreservedToken", "span": { - "start": 1654, - "end": 1655, + "start": 1640, + "end": 1641, "ctxt": 0 }, "token": { @@ -5987,8 +6899,8 @@ { "type": "PreservedToken", "span": { - "start": 1655, - "end": 1656, + "start": 1641, + "end": 1642, "ctxt": 0 }, "token": { @@ -6000,8 +6912,8 @@ { "type": "PreservedToken", "span": { - "start": 1656, - "end": 1657, + "start": 1642, + "end": 1643, "ctxt": 0 }, "token": { @@ -6013,8 +6925,8 @@ { "type": "PreservedToken", "span": { - "start": 1657, - "end": 1658, + "start": 1643, + "end": 1644, "ctxt": 0 }, "token": { @@ -6026,8 +6938,8 @@ { "type": "PreservedToken", "span": { - "start": 1658, - "end": 1659, + "start": 1644, + "end": 1645, "ctxt": 0 }, "token": { @@ -6040,8 +6952,8 @@ { "type": "PreservedToken", "span": { - "start": 1659, - "end": 1660, + "start": 1645, + "end": 1646, "ctxt": 0 }, "token": { @@ -6055,8 +6967,8 @@ { "type": "PreservedToken", "span": { - "start": 1661, - "end": 1662, + "start": 1647, + "end": 1648, "ctxt": 0 }, "token": { @@ -6072,15 +6984,15 @@ { "type": "AtRule", "span": { - "start": 1664, - "end": 1674, + "start": 1650, + "end": 1660, "ctxt": 0 }, "name": { "type": "Ident", "span": { - "start": 1665, - "end": 1672, + "start": 1651, + "end": 1658, "ctxt": 0 }, "value": "unknown", @@ -6090,8 +7002,8 @@ "block": { "type": "SimpleBlock", "span": { - "start": 1672, - "end": 1674, + "start": 1658, + "end": 1660, "ctxt": 0 }, "name": "{", diff --git a/crates/swc_css_parser/tests/fixture/at-rule/unknown/span.rust-debug b/crates/swc_css_parser/tests/fixture/at-rule/unknown/span.rust-debug index 895e7720b6f..1e1b1b2df34 100644 --- a/crates/swc_css_parser/tests/fixture/at-rule/unknown/span.rust-debug +++ b/crates/swc_css_parser/tests/fixture/at-rule/unknown/span.rust-debug @@ -5,8 +5,8 @@ 2 | | @unknown x y; 3 | | @unknown "blah"; 4 | | @unknown \"blah\"; - 5 | | /*@unknown!*test*!;*/ - 6 | | /*@unknown!*test*!x!*test*! y;*/ + 5 | | @unknown /*test*/; + 6 | | @unknown /*test*/x/*test*/ y; 7 | | @unknown ; 8 | | @unknown x y; 9 | | @@ -18,11 +18,11 @@ 15 | | @unknown x, y x(1) {p:v} 16 | | @unknown x, y x(1+2) {p:v} 17 | | @unknown/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} - 18 | | /*@unknown!*test*!x!*test*! y!*test*!{!*test*!p!*test*!:!*test*!v!*test*!}*/ - 19 | | /*@unknown!*test*!x!*test*!,!*test*!y!*test*! x(!*test*!1!*test*!+!*test*!2!*test*!)!*test*!{!*test*!p!*test*!:!*test*!v!*test*!}*/ + 18 | | @unknown /*test*/x/*test*/ y/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} + 19 | | /*@unknown !*test*!x!*test*!,!*test*!y!*test*! x(!*test*!1!*test*!+!*test*!2!*test*!)!*test*!{!*test*!p!*test*!:!*test*!v!*test*!}*/ 20 | | @unknown { p : v } 21 | | @unknown x y { p : v } - 22 | | /*@unknown x , y x( 1 + 2 ) { p : v }*/ + 22 | | @unknown x , y x( 1 + 2 ) { p : v } 23 | | 24 | | @unknown {s{p:v}} 25 | | @unknown x y {s{p:v}} @@ -30,8 +30,8 @@ 27 | | @unknown x, y f(1+2) {s{p:v}} 28 | | @unknown { .a { p: v; } .b { p: v } } 29 | | @unknown/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} - 30 | | /*@unknown!*test*!x!*test*! y!*test*!{!*test*!s!*test*!{!*test*!p!*test*!:!*test*!v!*test*!}!*test*!}*/ - 31 | | /*@unknown!*test*!x!*test*!,!*test*!y!*test*! f(!*test*!1!*test*!+!*test*!2!*test*!)!*test*!{!*test*!s!*test*!{!*test*!p!*test*!:!*test*!v!*test*!}!*test*!}*/ + 30 | | @unknown /*test*/x/*test*/ y/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} + 31 | | /*@unknown !*test*!x!*test*!,!*test*!y!*test*! f(!*test*!1!*test*!+!*test*!2!*test*!)!*test*!{!*test*!s!*test*!{!*test*!p!*test*!:!*test*!v!*test*!}!*test*!}*/ 32 | | @unknown { s { p : v } } 33 | | @unknown x y { s { p : v } } 34 | | @unknown x , y f( 1 ) { s { p : v } } @@ -260,6 +260,114 @@ : ^^^^^^^^ `---- + x Rule + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:5:1] + 5 | @unknown /*test*/; + : ^^^^^^^^^^^^^^^^^^ + `---- + + x AtRule + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:5:1] + 5 | @unknown /*test*/; + : ^^^^^^^^^^^^^^^^^^ + `---- + + x AtRuleName + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:5:1] + 5 | @unknown /*test*/; + : ^^^^^^^ + `---- + + x Ident + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:5:1] + 5 | @unknown /*test*/; + : ^^^^^^^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:5:1] + 5 | @unknown /*test*/; + : ^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:5:1] + 5 | @unknown /*test*/; + : ^ + `---- + + x Rule + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:6:1] + 6 | @unknown /*test*/x/*test*/ y; + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + `---- + + x AtRule + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:6:1] + 6 | @unknown /*test*/x/*test*/ y; + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + `---- + + x AtRuleName + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:6:1] + 6 | @unknown /*test*/x/*test*/ y; + : ^^^^^^^ + `---- + + x Ident + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:6:1] + 6 | @unknown /*test*/x/*test*/ y; + : ^^^^^^^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:6:1] + 6 | @unknown /*test*/x/*test*/ y; + : ^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:6:1] + 6 | @unknown /*test*/x/*test*/ y; + : ^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:6:1] + 6 | @unknown /*test*/x/*test*/ y; + : ^ + `---- + + x Ident { value: Atom('x' type=inline), raw: Atom('x' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:6:1] + 6 | @unknown /*test*/x/*test*/ y; + : ^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:6:1] + 6 | @unknown /*test*/x/*test*/ y; + : ^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:6:1] + 6 | @unknown /*test*/x/*test*/ y; + : ^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:6:1] + 6 | @unknown /*test*/x/*test*/ y; + : ^ + `---- + + x Ident { value: Atom('y' type=inline), raw: Atom('y' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:6:1] + 6 | @unknown /*test*/x/*test*/ y; + : ^ + `---- + x Rule ,-[$DIR/tests/fixture/at-rule/unknown/input.css:7:1] 7 | @unknown ; @@ -866,7 +974,7 @@ : ^ `---- - x Integer + x Number { value: 1.0, raw: Atom('1' type=inline), type_flag: Integer } ,-[$DIR/tests/fixture/at-rule/unknown/input.css:15:1] 15 | @unknown x, y x(1) {p:v} : ^ @@ -1046,7 +1154,7 @@ : ^ `---- - x Integer + x Number { value: 1.0, raw: Atom('1' type=inline), type_flag: Integer } ,-[$DIR/tests/fixture/at-rule/unknown/input.css:16:1] 16 | @unknown x, y x(1+2) {p:v} : ^ @@ -1058,7 +1166,7 @@ : ^^ `---- - x Integer + x Number { value: 2.0, raw: Atom('+2' type=inline), type_flag: Integer } ,-[$DIR/tests/fixture/at-rule/unknown/input.css:16:1] 16 | @unknown x, y x(1+2) {p:v} : ^^ @@ -1184,6 +1292,120 @@ : ^ `---- + x Rule + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:18:1] + 18 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + `---- + + x AtRule + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:18:1] + 18 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + `---- + + x AtRuleName + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:18:1] + 18 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} + : ^^^^^^^ + `---- + + x Ident + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:18:1] + 18 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} + : ^^^^^^^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:18:1] + 18 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} + : ^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:18:1] + 18 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} + : ^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:18:1] + 18 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} + : ^ + `---- + + x Ident { value: Atom('x' type=inline), raw: Atom('x' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:18:1] + 18 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} + : ^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:18:1] + 18 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} + : ^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:18:1] + 18 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} + : ^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:18:1] + 18 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} + : ^ + `---- + + x Ident { value: Atom('y' type=inline), raw: Atom('y' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:18:1] + 18 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} + : ^ + `---- + + x SimpleBlock + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:18:1] + 18 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:18:1] + 18 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} + : ^ + `---- + + x Ident { value: Atom('p' type=inline), raw: Atom('p' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:18:1] + 18 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} + : ^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:18:1] + 18 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} + : ^ + `---- + + x Colon + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:18:1] + 18 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} + : ^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:18:1] + 18 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} + : ^ + `---- + + x Ident { value: Atom('v' type=inline), raw: Atom('v' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:18:1] + 18 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/p/*test*/:/*test*/v/*test*/} + : ^ + `---- + x Rule ,-[$DIR/tests/fixture/at-rule/unknown/input.css:20:1] 20 | @unknown { p : v } @@ -1484,6 +1706,318 @@ : ^^ `---- + x Rule + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + `---- + + x AtRule + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + `---- + + x AtRuleName + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^^^^^^ + `---- + + x Ident + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^^^^^^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^ + `---- + + x Ident { value: Atom('x' type=inline), raw: Atom('x' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^ + `---- + + x Comma + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^ + `---- + + x Ident { value: Atom('y' type=inline), raw: Atom('y' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^^^^^^^^^^^^^ + `---- + + x Function + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^^^^^^^^^^^^^ + `---- + + x Ident + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^ + `---- + + x Number { value: 1.0, raw: Atom('1' type=inline), type_flag: Integer } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^ + `---- + + x Delim { value: '+' } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^ + `---- + + x Number { value: 2.0, raw: Atom('2' type=inline), type_flag: Integer } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^ + `---- + + x SimpleBlock + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^^^^^^^^^^^^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^ + `---- + + x Ident { value: Atom('p' type=inline), raw: Atom('p' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^ + `---- + + x Colon + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^ + `---- + + x Ident { value: Atom('v' type=inline), raw: Atom('v' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:22:1] + 22 | @unknown x , y x( 1 + 2 ) { p : v } + : ^^ + `---- + x Rule ,-[$DIR/tests/fixture/at-rule/unknown/input.css:24:1] 24 | @unknown {s{p:v}} @@ -1856,7 +2390,7 @@ : ^ `---- - x Integer + x Number { value: 1.0, raw: Atom('1' type=inline), type_flag: Integer } ,-[$DIR/tests/fixture/at-rule/unknown/input.css:26:1] 26 | @unknown x, y f(1) {s{p:v}} : ^ @@ -2060,7 +2594,7 @@ : ^ `---- - x Integer + x Number { value: 1.0, raw: Atom('1' type=inline), type_flag: Integer } ,-[$DIR/tests/fixture/at-rule/unknown/input.css:27:1] 27 | @unknown x, y f(1+2) {s{p:v}} : ^ @@ -2072,7 +2606,7 @@ : ^^ `---- - x Integer + x Number { value: 2.0, raw: Atom('+2' type=inline), type_flag: Integer } ,-[$DIR/tests/fixture/at-rule/unknown/input.css:27:1] 27 | @unknown x, y f(1+2) {s{p:v}} : ^^ @@ -2576,6 +3110,144 @@ : ^ `---- + x Rule + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:30:1] + 30 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + `---- + + x AtRule + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:30:1] + 30 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + `---- + + x AtRuleName + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:30:1] + 30 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} + : ^^^^^^^ + `---- + + x Ident + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:30:1] + 30 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} + : ^^^^^^^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:30:1] + 30 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} + : ^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:30:1] + 30 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} + : ^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:30:1] + 30 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} + : ^ + `---- + + x Ident { value: Atom('x' type=inline), raw: Atom('x' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:30:1] + 30 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} + : ^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:30:1] + 30 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} + : ^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:30:1] + 30 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} + : ^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:30:1] + 30 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} + : ^ + `---- + + x Ident { value: Atom('y' type=inline), raw: Atom('y' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:30:1] + 30 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} + : ^ + `---- + + x SimpleBlock + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:30:1] + 30 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:30:1] + 30 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} + : ^ + `---- + + x Ident { value: Atom('s' type=inline), raw: Atom('s' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:30:1] + 30 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} + : ^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:30:1] + 30 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + `---- + + x SimpleBlock + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:30:1] + 30 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:30:1] + 30 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} + : ^ + `---- + + x Ident { value: Atom('p' type=inline), raw: Atom('p' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:30:1] + 30 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} + : ^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:30:1] + 30 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} + : ^ + `---- + + x Colon + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:30:1] + 30 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} + : ^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:30:1] + 30 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} + : ^ + `---- + + x Ident { value: Atom('v' type=inline), raw: Atom('v' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:30:1] + 30 | @unknown /*test*/x/*test*/ y/*test*/{/*test*/s/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}/*test*/} + : ^ + `---- + x Rule ,-[$DIR/tests/fixture/at-rule/unknown/input.css:32:1] 32 | @unknown { s { p : v } } @@ -3125,15 +3797,39 @@ x ComponentValue ,-[$DIR/tests/fixture/at-rule/unknown/input.css:34:1] 34 | @unknown x , y f( 1 ) { s { p : v } } - : ^ + : ^^ `---- - x Integer + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:34:1] + 34 | @unknown x , y f( 1 ) { s { p : v } } + : ^^ + `---- + + x ComponentValue ,-[$DIR/tests/fixture/at-rule/unknown/input.css:34:1] 34 | @unknown x , y f( 1 ) { s { p : v } } : ^ `---- + x Number { value: 1.0, raw: Atom('1' type=inline), type_flag: Integer } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:34:1] + 34 | @unknown x , y f( 1 ) { s { p : v } } + : ^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:34:1] + 34 | @unknown x , y f( 1 ) { s { p : v } } + : ^^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:34:1] + 34 | @unknown x , y f( 1 ) { s { p : v } } + : ^^ + `---- + x ComponentValue ,-[$DIR/tests/fixture/at-rule/unknown/input.css:34:1] 34 | @unknown x , y f( 1 ) { s { p : v } } @@ -3422,13 +4118,25 @@ : ^ `---- + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:35:1] + 35 | @unknown x , y f( 1 2 ) { s { p : v } } + : ^^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:35:1] + 35 | @unknown x , y f( 1 2 ) { s { p : v } } + : ^^ + `---- + x ComponentValue ,-[$DIR/tests/fixture/at-rule/unknown/input.css:35:1] 35 | @unknown x , y f( 1 2 ) { s { p : v } } : ^ `---- - x Integer + x Number { value: 1.0, raw: Atom('1' type=inline), type_flag: Integer } ,-[$DIR/tests/fixture/at-rule/unknown/input.css:35:1] 35 | @unknown x , y f( 1 2 ) { s { p : v } } : ^ @@ -3437,15 +4145,39 @@ x ComponentValue ,-[$DIR/tests/fixture/at-rule/unknown/input.css:35:1] 35 | @unknown x , y f( 1 2 ) { s { p : v } } - : ^ + : ^^^^ `---- - x Integer + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:35:1] + 35 | @unknown x , y f( 1 2 ) { s { p : v } } + : ^^^^ + `---- + + x ComponentValue ,-[$DIR/tests/fixture/at-rule/unknown/input.css:35:1] 35 | @unknown x , y f( 1 2 ) { s { p : v } } : ^ `---- + x Number { value: 2.0, raw: Atom('2' type=inline), type_flag: Integer } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:35:1] + 35 | @unknown x , y f( 1 2 ) { s { p : v } } + : ^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:35:1] + 35 | @unknown x , y f( 1 2 ) { s { p : v } } + : ^^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:35:1] + 35 | @unknown x , y f( 1 2 ) { s { p : v } } + : ^^ + `---- + x ComponentValue ,-[$DIR/tests/fixture/at-rule/unknown/input.css:35:1] 35 | @unknown x , y f( 1 2 ) { s { p : v } } @@ -4870,13 +5602,25 @@ : ^ `---- + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:60:1] + 60 | @unknown x( a, b ) { foo: bar } + : ^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:60:1] + 60 | @unknown x( a, b ) { foo: bar } + : ^ + `---- + x ComponentValue ,-[$DIR/tests/fixture/at-rule/unknown/input.css:60:1] 60 | @unknown x( a, b ) { foo: bar } : ^ `---- - x Ident + x Ident { value: Atom('a' type=inline), raw: Atom('a' type=inline) } ,-[$DIR/tests/fixture/at-rule/unknown/input.css:60:1] 60 | @unknown x( a, b ) { foo: bar } : ^ @@ -4888,7 +5632,7 @@ : ^ `---- - x Delimiter + x Comma ,-[$DIR/tests/fixture/at-rule/unknown/input.css:60:1] 60 | @unknown x( a, b ) { foo: bar } : ^ @@ -4897,15 +5641,39 @@ x ComponentValue ,-[$DIR/tests/fixture/at-rule/unknown/input.css:60:1] 60 | @unknown x( a, b ) { foo: bar } - : ^ + : ^ `---- - x Ident + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:60:1] + 60 | @unknown x( a, b ) { foo: bar } + : ^ + `---- + + x ComponentValue ,-[$DIR/tests/fixture/at-rule/unknown/input.css:60:1] 60 | @unknown x( a, b ) { foo: bar } : ^ `---- + x Ident { value: Atom('b' type=inline), raw: Atom('b' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:60:1] + 60 | @unknown x( a, b ) { foo: bar } + : ^ + `---- + + x ComponentValue + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:60:1] + 60 | @unknown x( a, b ) { foo: bar } + : ^ + `---- + + x WhiteSpace { value: Atom(' ' type=inline) } + ,-[$DIR/tests/fixture/at-rule/unknown/input.css:60:1] + 60 | @unknown x( a, b ) { foo: bar } + : ^ + `---- + x ComponentValue ,-[$DIR/tests/fixture/at-rule/unknown/input.css:60:1] 60 | @unknown x( a, b ) { foo: bar } diff --git a/crates/swc_css_parser/tests/recovery/at-rule/import/no-semi/output.json b/crates/swc_css_parser/tests/recovery/at-rule/import/no-semi/output.json index f2ef31c20c3..602f476a10f 100644 --- a/crates/swc_css_parser/tests/recovery/at-rule/import/no-semi/output.json +++ b/crates/swc_css_parser/tests/recovery/at-rule/import/no-semi/output.json @@ -63,14 +63,18 @@ }, "value": [ { - "type": "String", + "type": "PreservedToken", "span": { "start": 12, "end": 21, "ctxt": 0 }, - "value": "http://", - "raw": "'http://'" + "token": { + "String": { + "value": "http://", + "raw": "'http://'" + } + } } ] }, diff --git a/crates/swc_css_parser/tests/recovery/at-rule/import/no-url/output.json b/crates/swc_css_parser/tests/recovery/at-rule/import/no-url/output.json index d1ed8b1d8c5..b74d9b6677f 100644 --- a/crates/swc_css_parser/tests/recovery/at-rule/import/no-url/output.json +++ b/crates/swc_css_parser/tests/recovery/at-rule/import/no-url/output.json @@ -63,14 +63,18 @@ }, "value": [ { - "type": "Ident", + "type": "PreservedToken", "span": { "start": 14, "end": 18, "ctxt": 0 }, - "value": "test", - "raw": "test" + "token": { + "Ident": { + "value": "test", + "raw": "test" + } + } } ] } 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 9a9df51ac00..0ff3626d491 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 @@ -245,14 +245,32 @@ } }, { - "type": "Integer", + "type": "PreservedToken", + "span": { + "start": 54, + "end": 55, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", "span": { "start": 55, "end": 56, "ctxt": 0 }, - "value": 2, - "raw": "2" + "token": { + "Number": { + "value": 2.0, + "raw": "2", + "type": "integer" + } + } } ] } 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 4aa781c31a7..9ae1259a56b 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 @@ -245,14 +245,32 @@ } }, { - "type": "Integer", + "type": "PreservedToken", + "span": { + "start": 54, + "end": 55, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", "span": { "start": 55, "end": 56, "ctxt": 0 }, - "value": 2, - "raw": "2" + "token": { + "Number": { + "value": 2.0, + "raw": "2", + "type": "integer" + } + } } ] } diff --git a/crates/swc_css_parser/tests/recovery/function/base/output.json b/crates/swc_css_parser/tests/recovery/function/base/output.json index 299218f1393..93541bd32a9 100644 --- a/crates/swc_css_parser/tests/recovery/function/base/output.json +++ b/crates/swc_css_parser/tests/recovery/function/base/output.json @@ -157,14 +157,32 @@ } }, { - "type": "Integer", + "type": "PreservedToken", + "span": { + "start": 24, + "end": 25, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", "span": { "start": 25, "end": 26, "ctxt": 0 }, - "value": 2, - "raw": "2" + "token": { + "Number": { + "value": 2.0, + "raw": "2", + "type": "integer" + } + } } ] } @@ -235,14 +253,18 @@ } }, { - "type": "Ident", + "type": "PreservedToken", "span": { "start": 50, "end": 55, "ctxt": 0 }, - "value": "ident", - "raw": "ident" + "token": { + "Ident": { + "value": "ident", + "raw": "ident" + } + } } ] } @@ -326,14 +348,31 @@ } }, { - "type": "Ident", + "type": "PreservedToken", "span": { "start": 83, "end": 88, "ctxt": 0 }, - "value": "ident", - "raw": "ident" + "token": { + "Ident": { + "value": "ident", + "raw": "ident" + } + } + }, + { + "type": "PreservedToken", + "span": { + "start": 88, + "end": 91, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } } ] } diff --git a/crates/swc_css_parser/tests/recovery/function/unclosed-2/output.swc-stderr b/crates/swc_css_parser/tests/recovery/function/unclosed-2/output.swc-stderr index fca535faa59..3586877f4bb 100644 --- a/crates/swc_css_parser/tests/recovery/function/unclosed-2/output.swc-stderr +++ b/crates/swc_css_parser/tests/recovery/function/unclosed-2/output.swc-stderr @@ -5,12 +5,6 @@ : ^ `---- - x Unexpected end of file - ,-[$DIR/tests/recovery/function/unclosed-2/input.css:3:3] - 3 | - : ^ - `---- - x Unexpected end of file ,-[$DIR/tests/recovery/function/unclosed-2/input.css:1:1] 1 | .style { diff --git a/crates/swc_css_parser/tests/recovery/function/unclosed/output.json b/crates/swc_css_parser/tests/recovery/function/unclosed/output.json index 882d1ef43bc..28bc0796db0 100644 --- a/crates/swc_css_parser/tests/recovery/function/unclosed/output.json +++ b/crates/swc_css_parser/tests/recovery/function/unclosed/output.json @@ -109,52 +109,21 @@ }, "value": [ { - "type": "CalcSum", + "type": "PreservedToken", "span": { "start": 21, "end": 26, "ctxt": 0 }, - "expressions": [ - { - "type": "CalcProduct", - "span": { - "start": 21, - "end": 26, - "ctxt": 0 - }, - "expressions": [ - { - "type": "Length", - "span": { - "start": 21, - "end": 26, - "ctxt": 0 - }, - "value": { - "type": "Number", - "span": { - "start": 21, - "end": 24, - "ctxt": 0 - }, - "value": 500.0, - "raw": "500" - }, - "unit": { - "type": "Ident", - "span": { - "start": 24, - "end": 26, - "ctxt": 0 - }, - "value": "px", - "raw": "px" - } - } - ] + "token": { + "Dimension": { + "value": 500.0, + "raw_value": "500", + "unit": "px", + "raw_unit": "px", + "type": "integer" } - ] + } }, { "type": "PreservedToken", diff --git a/crates/swc_css_parser/tests/recovery/function/unclosed/output.swc-stderr b/crates/swc_css_parser/tests/recovery/function/unclosed/output.swc-stderr index 21e69b4f633..0f4eb32f96b 100644 --- a/crates/swc_css_parser/tests/recovery/function/unclosed/output.swc-stderr +++ b/crates/swc_css_parser/tests/recovery/function/unclosed/output.swc-stderr @@ -17,12 +17,6 @@ : ^ `---- - x Unexpected end of file - ,-[$DIR/tests/recovery/function/unclosed/input.css:3:3] - 3 | - : ^ - `---- - x Unexpected end of file ,-[$DIR/tests/recovery/function/unclosed/input.css:1:1] 1 | .style { diff --git a/crates/swc_css_parser/tests/recovery/ie-progid/output.json b/crates/swc_css_parser/tests/recovery/ie-progid/output.json index a00444d400f..49ee8aba0dc 100644 --- a/crates/swc_css_parser/tests/recovery/ie-progid/output.json +++ b/crates/swc_css_parser/tests/recovery/ie-progid/output.json @@ -308,14 +308,19 @@ } }, { - "type": "Integer", + "type": "PreservedToken", "span": { "start": 117, "end": 118, "ctxt": 0 }, - "value": 0, - "raw": "0" + "token": { + "Number": { + "value": 0.0, + "raw": "0", + "type": "integer" + } + } } ] } @@ -451,14 +456,19 @@ } }, { - "type": "Integer", + "type": "PreservedToken", "span": { "start": 184, "end": 185, "ctxt": 0 }, - "value": 2, - "raw": "2" + "token": { + "Number": { + "value": 2.0, + "raw": "2", + "type": "integer" + } + } } ] }, @@ -573,14 +583,19 @@ } }, { - "type": "Integer", + "type": "PreservedToken", "span": { "start": 236, "end": 237, "ctxt": 0 }, - "value": 3, - "raw": "3" + "token": { + "Number": { + "value": 3.0, + "raw": "3", + "type": "integer" + } + } } ] } diff --git a/crates/swc_css_parser/tests/recovery/ie-progid/output.swc-stderr b/crates/swc_css_parser/tests/recovery/ie-progid/output.swc-stderr index 3c99498821e..2277924af16 100644 --- a/crates/swc_css_parser/tests/recovery/ie-progid/output.swc-stderr +++ b/crates/swc_css_parser/tests/recovery/ie-progid/output.swc-stderr @@ -23,18 +23,6 @@ : ^ `---- - x Expected Declaration value - ,-[$DIR/tests/recovery/ie-progid/input.css:2:5] - 2 | filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#4f4f4f',endColorstr='#292929',GradientType=0); - : ^ - `---- - - x Expected Declaration value - ,-[$DIR/tests/recovery/ie-progid/input.css:2:5] - 2 | filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#4f4f4f',endColorstr='#292929',GradientType=0); - : ^ - `---- - x Expected Declaration value ,-[$DIR/tests/recovery/ie-progid/input.css:3:5] 3 | filter: progid:DXImageTransform.Microsoft.Blur(pixelradius=2) progid:DXImageTransform.Microsoft.Wheel(duration=3); diff --git a/crates/swc_css_parser/tests/recovery/value/url/basic/output.json b/crates/swc_css_parser/tests/recovery/value/url/basic/output.json index fddf9b014b5..707fabe7938 100644 --- a/crates/swc_css_parser/tests/recovery/value/url/basic/output.json +++ b/crates/swc_css_parser/tests/recovery/value/url/basic/output.json @@ -719,33 +719,54 @@ }, "value": [ { - "type": "String", + "type": "PreservedToken", "span": { "start": 382, "end": 387, "ctxt": 0 }, - "value": "foo", - "raw": "\"foo\"" + "token": { + "String": { + "value": "foo", + "raw": "\"foo\"" + } + } }, { - "type": "Delimiter", + "type": "PreservedToken", "span": { "start": 387, "end": 388, "ctxt": 0 }, - "value": "," + "token": "Comma" }, { - "type": "String", + "type": "PreservedToken", + "span": { + "start": 388, + "end": 389, + "ctxt": 0 + }, + "token": { + "WhiteSpace": { + "value": " " + } + } + }, + { + "type": "PreservedToken", "span": { "start": 389, "end": 394, "ctxt": 0 }, - "value": "bar", - "raw": "\"bar\"" + "token": { + "String": { + "value": "bar", + "raw": "\"bar\"" + } + } } ] } diff --git a/crates/swc_css_parser/tests/recovery/vercel/002/output.swc-stderr b/crates/swc_css_parser/tests/recovery/vercel/002/output.swc-stderr index 73efe19519c..b41b881128c 100644 --- a/crates/swc_css_parser/tests/recovery/vercel/002/output.swc-stderr +++ b/crates/swc_css_parser/tests/recovery/vercel/002/output.swc-stderr @@ -16,9 +16,3 @@ 4 | margin: 0 calc(__styled-jsx-placeholder__7vw - __styled-jsx-placeholder__7px); : ^ `---- - - x Expected 'e', 'pi', 'infinity', '-infinity' or 'NaN', ident tokens - ,-[$DIR/tests/recovery/vercel/002/input.css:4:5] - 4 | margin: 0 calc(__styled-jsx-placeholder__7vw - __styled-jsx-placeholder__7px); - : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - `----