refactor(css/ast): Rename Text to Ident (#2726)

This commit is contained in:
Alexander Akait 2021-11-12 13:09:52 +03:00 committed by GitHub
parent 90b7074556
commit 65ee1b467e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
830 changed files with 3061 additions and 3068 deletions

View File

@ -1,10 +1,10 @@
use crate::{AtRule, Block, PercentValue, Text};
use crate::{AtRule, Block, Ident, PercentValue};
use swc_common::{ast_node, Span};
#[ast_node("KeyframesRule")]
pub struct KeyframesRule {
pub span: Span,
pub id: Text,
pub id: Ident,
pub blocks: Vec<KeyframeBlock>,
}
@ -17,8 +17,8 @@ pub struct KeyframeBlock {
#[ast_node]
pub enum KeyframeSelector {
#[tag("Text")]
Id(Text),
#[tag("Ident")]
Ident(Ident),
#[tag("PercentValue")]
Percent(PercentValue),
}

View File

@ -1,4 +1,4 @@
use crate::{Declaration, Rule, Text};
use crate::{Declaration, Ident, Rule};
use swc_common::{ast_node, Span};
#[ast_node("MediaRule")]
@ -12,8 +12,8 @@ pub struct MediaRule {
#[ast_node]
pub enum MediaQuery {
#[tag("Text")]
Text(Text),
#[tag("Ident")]
Ident(Ident),
#[tag("AndMediaQuery")]
And(AndMediaQuery),

View File

@ -1,5 +1,5 @@
pub use self::{charset::*, document::*, import::*, keyframe::*, media::*, page::*, support::*};
use crate::{Block, Str, Text, Tokens, UrlValue};
use crate::{Block, Ident, Str, Tokens, UrlValue};
use is_macro::Is;
use swc_common::{ast_node, Span};
@ -66,7 +66,7 @@ pub enum NamespaceValue {
#[ast_node("NamespaceRule")]
pub struct NamespaceRule {
pub span: Span,
pub prefix: Text,
pub prefix: Ident,
pub value: NamespaceValue,
}
@ -79,6 +79,6 @@ pub struct ViewportRule {
#[ast_node("UnknownAtRule")]
pub struct UnknownAtRule {
pub span: Span,
pub name: Text,
pub name: Ident,
pub tokens: Tokens,
}

View File

@ -1,4 +1,4 @@
use crate::{Declaration, SelectorList, Text};
use crate::{Declaration, Ident, SelectorList};
use swc_common::{ast_node, Span};
#[ast_node("PageRule")]
@ -14,9 +14,9 @@ pub struct PageRule {
pub struct PageSelector {
pub span: Span,
pub ident: Option<Text>,
pub ident: Option<Ident>,
pub pseudo: Option<Text>,
pub pseudo: Option<Ident>,
}
#[ast_node]

View File

@ -1,8 +1,8 @@
use swc_atoms::JsWord;
use swc_common::{ast_node, Span};
#[ast_node("Text")]
pub struct Text {
#[ast_node("Identifier")]
pub struct Ident {
pub span: Span,
pub value: JsWord,
pub raw: JsWord,

View File

@ -1,4 +1,4 @@
use crate::{Str, Text, Tokens};
use crate::{Ident, Str, Tokens};
use is_macro::Is;
use string_enum::StringEnum;
use swc_common::{ast_node, EqIgnoreSpan, Span};
@ -65,9 +65,9 @@ pub struct TypeSelector {
pub span: Span,
/// If present, this is an identifier or "*" and is followed by a "|"
/// character
pub prefix: Option<Text>,
pub prefix: Option<Ident>,
/// This is an identifier or "*".
pub name: Text,
pub name: Ident,
}
#[ast_node]
@ -116,15 +116,15 @@ pub enum AttrSelectorValue {
#[tag("String")]
Str(Str),
#[tag("Text")]
Text(Text),
#[tag("Ident")]
Ident(Ident),
}
#[ast_node("AttributeSelector")]
pub struct AttrSelector {
pub span: Span,
pub prefix: Option<Text>,
pub name: Text,
pub prefix: Option<Ident>,
pub name: Ident,
pub matcher: Option<AttrSelectorMatcher>,
pub value: Option<AttrSelectorValue>,
pub modifier: Option<char>,
@ -134,7 +134,7 @@ pub struct AttrSelector {
pub struct PseudoSelector {
pub span: Span,
pub is_element: bool,
pub name: Text,
pub name: Ident,
pub args: Tokens,
}
@ -142,25 +142,25 @@ pub struct PseudoSelector {
pub struct IdSelector {
pub span: Span,
/// Does not include `#`
pub text: Text,
pub text: Ident,
}
#[ast_node("ClassSelector")]
pub struct ClassSelector {
pub span: Span,
/// Does not include `.`
pub text: Text,
pub text: Ident,
}
#[ast_node("TagSelector")]
pub struct TagSelector {
pub span: Span,
pub text: Text,
pub text: Ident,
}
/// Type for `@top-center`. Allowwed in only some contexts.
#[ast_node("AtSelector")]
pub struct AtSelector {
pub span: Span,
pub text: Text,
pub text: Ident,
}

View File

@ -1,4 +1,4 @@
use crate::{SelectorList, Text, Tokens, Value};
use crate::{Ident, SelectorList, Tokens, Value};
use swc_common::{ast_node, Span};
#[ast_node("StyleRule")]
@ -25,7 +25,7 @@ pub enum DeclarationBlockItem {
#[ast_node("Declaration")]
pub struct Declaration {
pub span: Span,
pub property: Text,
pub property: Ident,
pub value: Vec<Value>,
/// The span includes `!`
pub important: Option<Span>,

View File

@ -1,4 +1,4 @@
use crate::{Num, Str, Text, Tokens};
use crate::{Ident, Num, Str, Tokens};
use string_enum::StringEnum;
use swc_atoms::JsWord;
use swc_common::{ast_node, EqIgnoreSpan, Span};
@ -23,8 +23,8 @@ pub enum Value {
#[tag("HashValue")]
Hash(HashValue),
#[tag("Text")]
Text(Text),
#[tag("Ident")]
Ident(Ident),
#[tag("String")]
Str(Str),
@ -85,9 +85,7 @@ pub struct BinValue {
pub struct FnValue {
/// Span starting from the `lo` of identifier and to the end of `)`.
pub span: Span,
pub name: Text,
pub name: Ident,
pub args: Vec<Value>,
}
@ -158,7 +156,7 @@ pub struct BraceValue {
pub struct AtTextValue {
pub span: Span,
/// Includes `@`.
pub name: Text,
pub name: Ident,
pub block: Option<BraceValue>,
}

View File

@ -151,7 +151,7 @@ where
#[emitter]
fn emit_keyframe_selector(&mut self, n: &KeyframeSelector) -> Result {
match n {
KeyframeSelector::Id(n) => emit!(self, n),
KeyframeSelector::Ident(n) => emit!(self, n),
KeyframeSelector::Percent(n) => emit!(self, n),
}
}
@ -266,7 +266,7 @@ where
Value::Number(n) => emit!(self, n),
Value::Percent(n) => emit!(self, n),
Value::Hash(n) => emit!(self, n),
Value::Text(n) => emit!(self, n),
Value::Ident(n) => emit!(self, n),
Value::Str(n) => emit!(self, n),
Value::Fn(n) => emit!(self, n),
Value::Bin(n) => emit!(self, n),
@ -298,7 +298,7 @@ where
#[emitter]
fn emit_media_query(&mut self, n: &MediaQuery) -> Result {
match n {
MediaQuery::Text(n) => emit!(self, n),
MediaQuery::Ident(n) => emit!(self, n),
MediaQuery::And(n) => emit!(self, n),
MediaQuery::Or(n) => emit!(self, n),
MediaQuery::Not(n) => emit!(self, n),
@ -352,7 +352,7 @@ where
}
#[emitter]
fn emit_text(&mut self, n: &Text) -> Result {
fn emit_ident(&mut self, n: &Ident) -> Result {
self.wr.write_raw(Some(n.span), &n.raw)?;
}
@ -758,7 +758,7 @@ where
fn emit_attr_selector_value(&mut self, n: &AttrSelectorValue) -> Result {
match n {
AttrSelectorValue::Str(n) => emit!(self, n),
AttrSelectorValue::Text(n) => emit!(self, n),
AttrSelectorValue::Ident(n) => emit!(self, n),
}
}

View File

@ -182,7 +182,7 @@ where
_ => {}
}
let name = Text {
let name = Ident {
span: span!(self, start),
value: name.0,
raw: name.1,
@ -324,17 +324,17 @@ where
fn parse(&mut self) -> PResult<KeyframesRule> {
let span = self.input.cur_span()?;
let name = match bump!(self) {
Token::Ident { value, raw } => Text {
Token::Ident { value, raw } => Ident {
span: span!(self, span.lo),
value,
raw,
},
Token::Str { value, raw } => Text {
Token::Str { value, raw } => Ident {
span: span!(self, span.lo),
value,
raw,
},
_ => Text {
_ => Ident {
span: DUMMY_SP,
value: js_word!(""),
raw: js_word!(""),
@ -383,7 +383,7 @@ where
fn parse(&mut self) -> PResult<NamespaceRule> {
let span = self.input.cur_span()?;
// TODO: make optional
let mut prefix = Text {
let mut prefix = Ident {
span: DUMMY_SP,
value: js_word!(""),
raw: js_word!(""),
@ -391,7 +391,7 @@ where
if is!(self, Ident) {
prefix = match bump!(self) {
Token::Ident { value, raw } => Text {
Token::Ident { value, raw } => Ident {
span: span!(self, span.lo),
value,
raw,
@ -520,7 +520,7 @@ where
let span = self.input.cur_span()?;
if is!(self, Ident) {
self.parse_id().map(KeyframeSelector::Id)
self.parse_id().map(KeyframeSelector::Ident)
} else if is!(self, Percent) {
self.parse().map(KeyframeSelector::Percent)
} else {
@ -706,8 +706,8 @@ where
query,
})
} else if is!(self, Ident) {
let text = self.parse_id()?;
MediaQuery::Text(text)
let ident = self.parse_id()?;
MediaQuery::Ident(ident)
} else if eat!(self, "(") {
if is!(self, Ident) {
let span = self.input.cur_span()?;
@ -734,7 +734,7 @@ where
})
} else {
expect!(self, ")");
MediaQuery::Text(id)
MediaQuery::Ident(id)
}
} else {
let query: MediaQuery = self.parse()?;

View File

@ -86,14 +86,14 @@ where
self.parse()
}
fn parse_id(&mut self) -> PResult<Text> {
fn parse_id(&mut self) -> PResult<Ident> {
let span = self.input.cur_span()?;
if !is!(self, Ident) {
return Err(Error::new(span, ErrorKind::Expected("Ident")));
}
match bump!(self) {
Token::Ident { value, raw } => Ok(Text { span, value, raw }),
Token::Ident { value, raw } => Ok(Ident { span, value, raw }),
_ => {
unreachable!()
}

View File

@ -123,13 +123,13 @@ where
});
}
fn parse_ns_prefix(&mut self) -> PResult<Option<Text>> {
fn parse_ns_prefix(&mut self) -> PResult<Option<Ident>> {
let span = self.input.cur_span()?;
if is!(self, Ident) && peeked_is!(self, "|") {
let token = bump!(self);
let text = match token {
Token::Ident { value, raw } => Text { span, value, raw },
let ident = match token {
Token::Ident { value, raw } => Ident { span, value, raw },
_ => {
unreachable!()
}
@ -137,7 +137,7 @@ where
bump!(self);
return Ok(Some(text));
return Ok(Some(ident));
} else if is!(self, "*") && peeked_is!(self, "|") {
bump!(self);
bump!(self);
@ -145,11 +145,11 @@ where
let value: JsWord = "*".into();
let raw = value.clone();
return Ok(Some(Text { span, value, raw }));
return Ok(Some(Ident { span, value, raw }));
} else if is!(self, "|") {
bump!(self);
return Ok(Some(Text {
return Ok(Some(Ident {
span: Span::new(span.lo, span.lo, Default::default()),
value: js_word!(""),
raw: js_word!(""),
@ -159,7 +159,7 @@ where
Ok(None)
}
fn parse_wq_name(&mut self) -> PResult<(Option<Text>, Option<Text>)> {
fn parse_wq_name(&mut self) -> PResult<(Option<Ident>, Option<Ident>)> {
let state = self.input.state();
if is!(self, Ident) && peeked_is!(self, "|")
@ -172,7 +172,7 @@ where
let span = self.input.cur_span()?;
let token = bump!(self);
let name = match token {
Token::Ident { value, raw } => Text { span, value, raw },
Token::Ident { value, raw } => Ident { span, value, raw },
_ => {
unreachable!()
}
@ -189,7 +189,7 @@ where
let span = self.input.cur_span()?;
let token = bump!(self);
let name = match token {
Token::Ident { value, raw } => Text { span, value, raw },
Token::Ident { value, raw } => Ident { span, value, raw },
_ => {
unreachable!()
}
@ -215,7 +215,7 @@ where
let span = self.input.cur_span()?;
let token = bump!(self);
let name = match token {
Token::Ident { value, raw } => Text { span, value, raw },
Token::Ident { value, raw } => Ident { span, value, raw },
_ => {
unreachable!()
}
@ -231,7 +231,7 @@ where
let value: JsWord = "*".into();
let raw = value.clone();
let name = Text { span, value, raw };
let name = Ident { span, value, raw };
return Ok(Some(TypeSelector {
span: span!(self, start_pos),
@ -245,9 +245,8 @@ where
fn parse_id_selector(&mut self) -> PResult<IdSelector> {
let span = self.input.cur_span()?;
let text = match bump!(self) {
Token::Hash { value, raw, .. } => Text { span, value, raw },
let ident = match bump!(self) {
Token::Hash { value, raw, .. } => Ident { span, value, raw },
_ => {
unreachable!()
}
@ -255,7 +254,7 @@ where
Ok(IdSelector {
span: span!(self, span.lo),
text,
text: ident,
})
}
@ -279,7 +278,7 @@ where
Ok(ClassSelector {
span: span!(self, start_pos),
text: Text {
text: Ident {
span,
value: values.0,
raw: values.1,
@ -357,7 +356,7 @@ where
_ => unreachable!(),
};
Some(AttrSelectorValue::Text(Text {
Some(AttrSelectorValue::Ident(Ident {
span,
value: ident.0,
raw: ident.1,
@ -429,7 +428,7 @@ where
return Ok(PseudoSelector {
span: span!(self, span.lo),
is_element: false,
name: Text {
name: Ident {
span: Span::new(fn_span.lo, fn_span.hi - BytePos(1), Default::default()),
value: values.0,
raw: values.1,
@ -447,7 +446,7 @@ where
return Ok(PseudoSelector {
span: span!(self, span.lo),
is_element: false,
name: Text {
name: Ident {
span: ident_span,
value: values.0,
raw: values.1,
@ -536,7 +535,7 @@ where
subclass_selectors.push(SubclassSelector::At(AtSelector {
span,
text: Text {
text: Ident {
span,
value: values.0,
raw: values.1,

View File

@ -241,7 +241,7 @@ where
Token::AtKeyword { .. } => {
let name = bump!(self);
let name = match name {
Token::AtKeyword { value, raw } => Text { span, value, raw },
Token::AtKeyword { value, raw } => Ident { span, value, raw },
_ => {
unreachable!()
}
@ -447,7 +447,7 @@ where
}
};
let name = Text {
let name = Ident {
span: if is_fn {
swc_common::Span::new(span.lo, span.hi - BytePos(1), Default::default())
} else {
@ -476,7 +476,7 @@ where
}));
}
Ok(Value::Text(name))
Ok(Value::Ident(name))
}
/// Parse comma separated values.
@ -660,7 +660,7 @@ where
unreachable!()
}
};
let name = Text {
let name = Ident {
span: swc_common::Span::new(span.lo, span.hi - BytePos(1), Default::default()),
value: name.0,
raw: name.1,

View File

@ -344,7 +344,7 @@ impl Visit for SpanVisualizer<'_> {
mtd!(SelectorList, visit_selector_list);
mtd!(SubclassSelector, visit_subclass_selector);
mtd!(TagSelector, visit_tag_selector);
mtd!(Text, visit_text);
mtd!(Ident, visit_ident);
mtd!(Tokens, visit_tokens);
mtd!(Unit, visit_unit);
mtd!(UnitValue, visit_unit_value);

View File

@ -29,7 +29,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 17,
"end": 28,
@ -60,7 +60,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 47,
"end": 50,
@ -78,7 +78,7 @@
"ctxt": 0
},
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 52,
"end": 55,
@ -116,7 +116,7 @@
"ctxt": 0
},
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 97,
"end": 103,
@ -146,7 +146,7 @@
"ctxt": 0
},
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 118,
"end": 121,
@ -178,7 +178,7 @@
"ctxt": 0
},
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 162,
"end": 168,

View File

@ -55,7 +55,7 @@ error: Declaration
2 | font-family: "Open Sans";
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/font-face/input.css:2:5
|
2 | font-family: "Open Sans";
@ -80,7 +80,7 @@ error: Declaration
4 | | url("/fonts/OpenSans-Regular-webfont.woff") format("woff");
| |______________________________________________________________^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/font-face/input.css:3:5
|
3 | src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"),
@ -98,7 +98,7 @@ error: FnValue
3 | src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/font-face/input.css:3:10
|
3 | src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"),
@ -136,7 +136,7 @@ error: FnValue
3 | src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"),
| ^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/font-face/input.css:3:55
|
3 | src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"),
@ -166,7 +166,7 @@ error: FnValue
4 | url("/fonts/OpenSans-Regular-webfont.woff") format("woff");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/font-face/input.css:4:5
|
4 | url("/fonts/OpenSans-Regular-webfont.woff") format("woff");
@ -196,7 +196,7 @@ error: FnValue
4 | url("/fonts/OpenSans-Regular-webfont.woff") format("woff");
| ^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/font-face/input.css:4:49
|
4 | url("/fonts/OpenSans-Regular-webfont.woff") format("woff");

View File

@ -21,7 +21,7 @@
"ctxt": 0
},
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 8,
"end": 11,
@ -60,7 +60,7 @@
"ctxt": 0
},
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 36,
"end": 39,
@ -156,7 +156,7 @@
"ctxt": 0
},
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 136,
"end": 139,
@ -214,7 +214,7 @@
"ctxt": 0
},
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 190,
"end": 193,
@ -275,7 +275,7 @@
"raw": "\"common.css\""
},
"condition": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 250,
"end": 256,
@ -300,7 +300,7 @@
"ctxt": 0
},
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 266,
"end": 269,
@ -330,7 +330,7 @@
"ctxt": 0
},
"left": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 287,
"end": 293,
@ -347,7 +347,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 299,
"end": 310,
@ -358,7 +358,7 @@
},
"value": [
{
"type": "Text",
"type": "Identifier",
"span": {
"start": 311,
"end": 320,

View File

@ -40,7 +40,7 @@ error: FnValue
1 | @import url("./style.css");
| ^^^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/import/input.css:1:9
|
1 | @import url("./style.css");
@ -88,7 +88,7 @@ error: FnValue
2 | @import url('./style.css');
| ^^^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/import/input.css:2:9
|
2 | @import url('./style.css');
@ -226,7 +226,7 @@ error: FnValue
6 | @IMPORT url("./style.css");
| ^^^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/import/input.css:6:9
|
6 | @IMPORT url("./style.css");
@ -304,7 +304,7 @@ error: FnValue
8 | @import URL("./style.css");
| ^^^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/import/input.css:8:9
|
8 | @import URL("./style.css");
@ -388,7 +388,7 @@ error: MediaQuery
10 | @import "common.css" screen;
| ^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/import/input.css:10:22
|
10 | @import "common.css" screen;
@ -424,7 +424,7 @@ error: FnValue
11 | @import url('landscape.css') screen and (orientation:landscape);
| ^^^^^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/import/input.css:11:9
|
11 | @import url('landscape.css') screen and (orientation:landscape);
@ -460,7 +460,7 @@ error: MediaQuery
11 | @import url('landscape.css') screen and (orientation:landscape);
| ^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/import/input.css:11:30
|
11 | @import url('landscape.css') screen and (orientation:landscape);
@ -478,7 +478,7 @@ error: Declaration
11 | @import url('landscape.css') screen and (orientation:landscape);
| ^^^^^^^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/import/input.css:11:42
|
11 | @import url('landscape.css') screen and (orientation:landscape);
@ -490,7 +490,7 @@ error: Value
11 | @import url('landscape.css') screen and (orientation:landscape);
| ^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/import/input.css:11:54
|
11 | @import url('landscape.css') screen and (orientation:landscape);

View File

@ -14,7 +14,7 @@
"ctxt": 0
},
"id": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 11,
"end": 14,
@ -33,7 +33,7 @@
"ctxt": 0
},
"id": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 40,
"end": 45,
@ -52,7 +52,7 @@
"ctxt": 0
},
"id": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 74,
"end": 77,
@ -71,7 +71,7 @@
"ctxt": 0
},
"id": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 107,
"end": 114,
@ -89,7 +89,7 @@
},
"selector": [
{
"type": "Text",
"type": "Identifier",
"span": {
"start": 121,
"end": 125,
@ -115,7 +115,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 136,
"end": 145,
@ -133,7 +133,7 @@
"ctxt": 0
},
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 147,
"end": 157,
@ -177,7 +177,7 @@
},
"selector": [
{
"type": "Text",
"type": "Identifier",
"span": {
"start": 174,
"end": 176,
@ -203,7 +203,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 187,
"end": 196,
@ -221,7 +221,7 @@
"ctxt": 0
},
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 198,
"end": 208,
@ -267,7 +267,7 @@
"ctxt": 0
},
"id": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 236,
"end": 246,
@ -319,7 +319,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 258,
"end": 261,
@ -350,7 +350,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 266,
"end": 270,
@ -418,7 +418,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 287,
"end": 290,
@ -521,7 +521,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 315,
"end": 319,
@ -606,7 +606,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 340,
"end": 343,
@ -654,7 +654,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 352,
"end": 356,

View File

@ -28,7 +28,7 @@ error: KeyframesRule
1 | @keyframes foo { /* ... */ }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/keyframe/input.css:1:12
|
1 | @keyframes foo { /* ... */ }
@ -52,7 +52,7 @@ error: KeyframesRule
2 | @keyframes "foo" { /* ... */ }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/keyframe/input.css:2:12
|
2 | @keyframes "foo" { /* ... */ }
@ -76,7 +76,7 @@ error: KeyframesRule
3 | @keyframes foo { /* ... */ }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/keyframe/input.css:3:15
|
3 | @keyframes foo { /* ... */ }
@ -118,7 +118,7 @@ error: KeyframesRule
13 | | }
| |_^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/keyframe/input.css:5:12
|
5 | @keyframes slidein {
@ -138,7 +138,7 @@ error: KeyframeSelector
6 | from {
| ^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/keyframe/input.css:6:5
|
6 | from {
@ -168,7 +168,7 @@ error: Declaration
7 | transform: translateX(0%);
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/keyframe/input.css:7:9
|
7 | transform: translateX(0%);
@ -186,7 +186,7 @@ error: FnValue
7 | transform: translateX(0%);
| ^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/keyframe/input.css:7:20
|
7 | transform: translateX(0%);
@ -224,7 +224,7 @@ error: KeyframeSelector
10 | to {
| ^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/keyframe/input.css:10:5
|
10 | to {
@ -254,7 +254,7 @@ error: Declaration
11 | transform: translateX(100%);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/keyframe/input.css:11:9
|
11 | transform: translateX(100%);
@ -272,7 +272,7 @@ error: FnValue
11 | transform: translateX(100%);
| ^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/keyframe/input.css:11:20
|
11 | transform: translateX(100%);
@ -329,7 +329,7 @@ error: KeyframesRule
20 | | }
| |_^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/keyframe/input.css:15:12
|
15 | @keyframes identifier {
@ -377,7 +377,7 @@ error: Declaration
16 | 0% { top: 0; left: 0; }
| ^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/keyframe/input.css:16:10
|
16 | 0% { top: 0; left: 0; }
@ -401,7 +401,7 @@ error: Declaration
16 | 0% { top: 0; left: 0; }
| ^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/keyframe/input.css:16:18
|
16 | 0% { top: 0; left: 0; }
@ -461,7 +461,7 @@ error: Declaration
17 | 30% { top: 50px; }
| ^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/keyframe/input.css:17:11
|
17 | 30% { top: 50px; }
@ -551,7 +551,7 @@ error: Declaration
18 | 68%, 72% { left: 50px; }
| ^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/keyframe/input.css:18:16
|
18 | 68%, 72% { left: 50px; }
@ -623,7 +623,7 @@ error: Declaration
19 | 100% { top: 100px; left: 100%; }
| ^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/keyframe/input.css:19:12
|
19 | 100% { top: 100px; left: 100%; }
@ -659,7 +659,7 @@ error: Declaration
19 | 100% { top: 100px; left: 100%; }
| ^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/keyframe/input.css:19:24
|
19 | 100% { top: 100px; left: 100%; }

View File

@ -14,7 +14,7 @@
"ctxt": 0
},
"query": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 8,
"end": 14,
@ -33,7 +33,7 @@
"ctxt": 0
},
"query": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 26,
"end": 33,

View File

@ -29,7 +29,7 @@ error: MediaQuery
1 | @\media screen {}
| ^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/media/input.css:1:9
|
1 | @\media screen {}
@ -59,7 +59,7 @@ error: MediaQuery
2 | @\media \screen {}
| ^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/media/input.css:2:9
|
2 | @\media \screen {}

View File

@ -14,7 +14,7 @@
"ctxt": 0
},
"prefix": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 11,
"end": 16,
@ -42,7 +42,7 @@
"ctxt": 0
},
"prefix": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 0,
@ -70,7 +70,7 @@
"ctxt": 0
},
"prefix": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 0,
@ -98,7 +98,7 @@
"ctxt": 0
},
"prefix": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 93,
"end": 96,
@ -126,7 +126,7 @@
"ctxt": 0
},
"prefix": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 0,
@ -154,7 +154,7 @@
"ctxt": 0
},
"prefix": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 184,
"end": 187,

View File

@ -27,7 +27,7 @@ error: NamespaceRule
1 | @namespace empty "";
| ^^^^^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/namespace/input.css:1:12
|
1 | @namespace empty "";
@ -63,7 +63,7 @@ error: NamespaceRule
2 | @namespace "";
| ^^^^^^^^^^^^^^
error: Text
error: Ident
error: NamespaceValue
--> $DIR/tests/fixture/at-rule/namespace/input.css:2:12
@ -125,7 +125,7 @@ error: NamespaceRule
4 | @namespace svg url(http://www.w3.org/2000/svg);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/namespace/input.css:4:12
|
4 | @namespace svg url(http://www.w3.org/2000/svg);
@ -191,7 +191,7 @@ error: NamespaceRule
6 | @namespace svg "http://www.w3.org/2000/svg";
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/namespace/input.css:6:12
|
6 | @namespace svg "http://www.w3.org/2000/svg";

View File

@ -63,7 +63,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 23,
"end": 29,
@ -129,7 +129,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 43,
"end": 49,
@ -195,7 +195,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 63,
"end": 69,
@ -254,7 +254,7 @@
},
"ident": null,
"pseudo": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 84,
"end": 89,
@ -280,7 +280,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 91,
"end": 97,
@ -339,7 +339,7 @@
},
"ident": null,
"pseudo": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 111,
"end": 116,
@ -365,7 +365,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 118,
"end": 124,
@ -424,7 +424,7 @@
},
"ident": null,
"pseudo": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 139,
"end": 144,
@ -450,7 +450,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 145,
"end": 151,

View File

@ -94,7 +94,7 @@ error: Declaration
3 | @page{margin: 1cm}
| ^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/page/input.css:3:7
|
3 | @page{margin: 1cm}
@ -160,7 +160,7 @@ error: Declaration
4 | @page {margin: 1cm}
| ^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/page/input.css:4:8
|
4 | @page {margin: 1cm}
@ -226,7 +226,7 @@ error: Declaration
5 | @page {margin: 1cm;}
| ^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/page/input.css:5:8
|
5 | @page {margin: 1cm;}
@ -280,7 +280,7 @@ error: PageSelector
6 | @page :first {margin: 2cm}
| ^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/page/input.css:6:8
|
6 | @page :first {margin: 2cm}
@ -304,7 +304,7 @@ error: Declaration
6 | @page :first {margin: 2cm}
| ^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/page/input.css:6:15
|
6 | @page :first {margin: 2cm}
@ -358,7 +358,7 @@ error: PageSelector
7 | @page :first {margin: 2cm;}
| ^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/page/input.css:7:8
|
7 | @page :first {margin: 2cm;}
@ -382,7 +382,7 @@ error: Declaration
7 | @page :first {margin: 2cm;}
| ^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/page/input.css:7:15
|
7 | @page :first {margin: 2cm;}
@ -436,7 +436,7 @@ error: PageSelector
8 | @page :first{margin: 2cm;}
| ^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/page/input.css:8:8
|
8 | @page :first{margin: 2cm;}
@ -460,7 +460,7 @@ error: Declaration
8 | @page :first{margin: 2cm;}
| ^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/page/input.css:8:14
|
8 | @page :first{margin: 2cm;}

View File

@ -14,7 +14,7 @@
"ctxt": 0
},
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 147,
"end": 155,
@ -58,7 +58,7 @@
"ctxt": 0
},
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 159,
"end": 168,
@ -102,7 +102,7 @@
"ctxt": 0
},
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 192,
"end": 200,
@ -180,7 +180,7 @@
"ctxt": 0
},
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 261,
"end": 269,
@ -258,7 +258,7 @@
"ctxt": 0
},
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 640,
"end": 648,
@ -365,7 +365,7 @@
"ctxt": 0
},
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 1250,
"end": 1258,

View File

@ -28,7 +28,7 @@ error: UnknownAtRule
9 | @unknown {}
| ^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/unknown/input.css:9:1
|
9 | @unknown {}
@ -70,7 +70,7 @@ error: UnknownAtRule
10 | @\unknown {}
| ^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/unknown/input.css:10:1
|
10 | @\unknown {}
@ -112,7 +112,7 @@ error: UnknownAtRule
12 | @unknown {p:v}
| ^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/unknown/input.css:12:1
|
12 | @unknown {p:v}
@ -172,7 +172,7 @@ error: UnknownAtRule
15 | @unknown/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/unknown/input.css:15:1
|
15 | @unknown/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}
@ -232,7 +232,7 @@ error: UnknownAtRule
22 | @unknown {s{p:v}}
| ^^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/unknown/input.css:22:1
|
22 | @unknown {s{p:v}}
@ -319,7 +319,7 @@ error: UnknownAtRule
36 | | }
| |_^
error: Text
error: Ident
--> $DIR/tests/fixture/at-rule/unknown/input.css:33:1
|
33 | @unknown {

View File

@ -46,7 +46,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 1,
@ -78,7 +78,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 8,
"end": 13,
@ -89,7 +89,7 @@
},
"value": [
{
"type": "Text",
"type": "Identifier",
"span": {
"start": 15,
"end": 18,

View File

@ -46,7 +46,7 @@ error: TypeSelector
1 | a {
| ^
error: Text
error: Ident
--> $DIR/tests/fixture/bom/input.css:1:1
|
1 | a {
@ -67,7 +67,7 @@ error: Declaration
2 | color: red;
| ^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/bom/input.css:2:5
|
2 | color: red;
@ -79,7 +79,7 @@ error: Value
2 | color: red;
| ^^^
error: Text
error: Ident
--> $DIR/tests/fixture/bom/input.css:2:12
|
2 | color: red;

View File

@ -46,7 +46,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 13,
"end": 14,
@ -78,7 +78,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 43,
"end": 48,
@ -89,7 +89,7 @@
},
"value": [
{
"type": "Text",
"type": "Identifier",
"span": {
"start": 75,
"end": 78,
@ -144,7 +144,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 132,
"end": 135,
@ -176,7 +176,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 159,
"end": 164,
@ -187,7 +187,7 @@
},
"value": [
{
"type": "Text",
"type": "Identifier",
"span": {
"start": 166,
"end": 171,
@ -207,7 +207,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 195,
"end": 205,
@ -218,7 +218,7 @@
},
"value": [
{
"type": "Text",
"type": "Identifier",
"span": {
"start": 207,
"end": 210,
@ -273,7 +273,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 237,
"end": 238,
@ -305,7 +305,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 245,
"end": 250,
@ -316,7 +316,7 @@
},
"value": [
{
"type": "Text",
"type": "Identifier",
"span": {
"start": 252,
"end": 257,
@ -339,7 +339,7 @@
"ctxt": 0
},
"query": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 293,
"end": 299,
@ -358,7 +358,7 @@
"ctxt": 0
},
"query": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 336,
"end": 342,

View File

@ -55,7 +55,7 @@ error: TypeSelector
1 | /* comment */a/* comment */
| ^
error: Text
error: Ident
--> $DIR/tests/fixture/comment/input.css:1:14
|
1 | /* comment */a/* comment */
@ -75,7 +75,7 @@ error: Declaration
3 | /* comment */color/* comment */:/* comment */red/* comment */;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/comment/input.css:3:14
|
3 | /* comment */color/* comment */:/* comment */red/* comment */;
@ -87,7 +87,7 @@ error: Value
3 | /* comment */color/* comment */:/* comment */red/* comment */;
| ^^^
error: Text
error: Ident
--> $DIR/tests/fixture/comment/input.css:3:46
|
3 | /* comment */color/* comment */:/* comment */red/* comment */;
@ -141,7 +141,7 @@ error: TypeSelector
9 | div {
| ^^^
error: Text
error: Ident
--> $DIR/tests/fixture/comment/input.css:9:1
|
9 | div {
@ -166,7 +166,7 @@ error: Declaration
11 | color: black;
| ^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/comment/input.css:11:5
|
11 | color: black;
@ -178,7 +178,7 @@ error: Value
11 | color: black;
| ^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/comment/input.css:11:12
|
11 | color: black;
@ -190,7 +190,7 @@ error: Declaration
13 | background: red;
| ^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/comment/input.css:13:5
|
13 | background: red;
@ -202,7 +202,7 @@ error: Value
13 | background: red;
| ^^^
error: Text
error: Ident
--> $DIR/tests/fixture/comment/input.css:13:17
|
13 | background: red;
@ -250,7 +250,7 @@ error: TypeSelector
18 | a {
| ^
error: Text
error: Ident
--> $DIR/tests/fixture/comment/input.css:18:1
|
18 | a {
@ -272,7 +272,7 @@ error: Declaration
19 | color: black;
| ^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/comment/input.css:19:5
|
19 | color: black;
@ -284,7 +284,7 @@ error: Value
19 | color: black;
| ^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/comment/input.css:19:12
|
19 | color: black;
@ -314,7 +314,7 @@ error: MediaQuery
23 | @media/* comment */screen/* comment */{}
| ^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/comment/input.css:23:20
|
23 | @media/* comment */screen/* comment */{}
@ -344,7 +344,7 @@ error: MediaQuery
24 | @media /* comment */ screen /* comment */ {}
| ^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/comment/input.css:24:22
|
24 | @media /* comment */ screen /* comment */ {}

View File

@ -46,7 +46,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 1,
@ -78,7 +78,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 8,
"end": 13,
@ -89,7 +89,7 @@
},
"value": [
{
"type": "Text",
"type": "Identifier",
"span": {
"start": 15,
"end": 20,
@ -109,7 +109,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 26,
"end": 31,
@ -120,7 +120,7 @@
},
"value": [
{
"type": "Text",
"type": "Identifier",
"span": {
"start": 33,
"end": 38,

View File

@ -49,7 +49,7 @@ error: TypeSelector
1 | a {
| ^
error: Text
error: Ident
--> $DIR/tests/fixture/declaration-list/input.css:1:1
|
1 | a {
@ -71,7 +71,7 @@ error: Declaration
2 | prop1: value;
| ^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/declaration-list/input.css:2:5
|
2 | prop1: value;
@ -83,7 +83,7 @@ error: Value
2 | prop1: value;
| ^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/declaration-list/input.css:2:12
|
2 | prop1: value;
@ -95,7 +95,7 @@ error: Declaration
3 | prop2: value;
| ^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/declaration-list/input.css:3:5
|
3 | prop2: value;
@ -107,7 +107,7 @@ error: Value
3 | prop2: value;
| ^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/declaration-list/input.css:3:12
|
3 | prop2: value;

View File

@ -46,7 +46,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 1,
@ -78,7 +78,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 8,
"end": 13,
@ -89,7 +89,7 @@
},
"value": [
{
"type": "Text",
"type": "Identifier",
"span": {
"start": 15,
"end": 17,
@ -99,7 +99,7 @@
"raw": "\\\\"
},
{
"type": "Text",
"type": "Identifier",
"span": {
"start": 18,
"end": 21,
@ -109,7 +109,7 @@
"raw": "red"
},
{
"type": "Text",
"type": "Identifier",
"span": {
"start": 22,
"end": 24,
@ -119,7 +119,7 @@
"raw": "\\\\"
},
{
"type": "Text",
"type": "Identifier",
"span": {
"start": 25,
"end": 29,

View File

@ -46,7 +46,7 @@ error: TypeSelector
1 | a {
| ^
error: Text
error: Ident
--> $DIR/tests/fixture/delim/backslash/input.css:1:1
|
1 | a {
@ -67,7 +67,7 @@ error: Declaration
2 | color: \\ red \\ blue;
| ^^^^^^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/delim/backslash/input.css:2:5
|
2 | color: \\ red \\ blue;
@ -79,7 +79,7 @@ error: Value
2 | color: \\ red \\ blue;
| ^^
error: Text
error: Ident
--> $DIR/tests/fixture/delim/backslash/input.css:2:12
|
2 | color: \\ red \\ blue;
@ -91,7 +91,7 @@ error: Value
2 | color: \\ red \\ blue;
| ^^^
error: Text
error: Ident
--> $DIR/tests/fixture/delim/backslash/input.css:2:15
|
2 | color: \\ red \\ blue;
@ -103,7 +103,7 @@ error: Value
2 | color: \\ red \\ blue;
| ^^
error: Text
error: Ident
--> $DIR/tests/fixture/delim/backslash/input.css:2:19
|
2 | color: \\ red \\ blue;
@ -115,7 +115,7 @@ error: Value
2 | color: \\ red \\ blue;
| ^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/delim/backslash/input.css:2:22
|
2 | color: \\ red \\ blue;

View File

@ -46,7 +46,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 1,
@ -78,7 +78,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 8,
"end": 12,
@ -126,7 +126,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 24,
"end": 28,
@ -174,7 +174,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 41,
"end": 45,
@ -222,7 +222,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 60,
"end": 64,
@ -270,7 +270,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 82,
"end": 86,
@ -318,7 +318,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 100,
"end": 104,
@ -366,7 +366,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 114,
"end": 118,

View File

@ -58,7 +58,7 @@ error: TypeSelector
1 | a {
| ^
error: Text
error: Ident
--> $DIR/tests/fixture/dimension/basic/input.css:1:1
|
1 | a {
@ -83,7 +83,7 @@ error: Declaration
2 | prop: 10px;
| ^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/dimension/basic/input.css:2:5
|
2 | prop: 10px;
@ -119,7 +119,7 @@ error: Declaration
3 | prop: .10px;
| ^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/dimension/basic/input.css:3:5
|
3 | prop: .10px;
@ -155,7 +155,7 @@ error: Declaration
4 | prop: 12.34px;
| ^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/dimension/basic/input.css:4:5
|
4 | prop: 12.34px;
@ -191,7 +191,7 @@ error: Declaration
5 | prop: 0000.000px;
| ^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/dimension/basic/input.css:5:5
|
5 | prop: 0000.000px;
@ -227,7 +227,7 @@ error: Declaration
6 | prop: 1px\\9;
| ^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/dimension/basic/input.css:6:5
|
6 | prop: 1px\\9;
@ -263,7 +263,7 @@ error: Declaration
7 | prop: 1e;
| ^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/dimension/basic/input.css:7:5
|
7 | prop: 1e;
@ -299,7 +299,7 @@ error: Declaration
8 | prop: 1unknown;
| ^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/dimension/basic/input.css:8:5
|
8 | prop: 1unknown;

View File

@ -46,7 +46,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 1,
@ -78,7 +78,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 4,
"end": 9,

View File

@ -40,7 +40,7 @@ error: TypeSelector
1 | a { color: #112333 }
| ^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/-4j83DwgJa0nPQIjlb0RIA/input.css:1:1
|
1 | a { color: #112333 }
@ -58,7 +58,7 @@ error: Declaration
1 | a { color: #112333 }
| ^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/-4j83DwgJa0nPQIjlb0RIA/input.css:1:5
|
1 | a { color: #112333 }

View File

@ -46,7 +46,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 4,

View File

@ -40,7 +40,7 @@ error: TypeSelector
1 | \2d {}
| ^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/-8o_H6sq86TDAHqF7YO0hg/input.css:1:1
|
1 | \2d {}

View File

@ -46,7 +46,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 3,
@ -66,7 +66,7 @@
},
"isElement": true,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 5,
"end": 11,
@ -94,7 +94,7 @@
},
"isElement": true,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 13,
"end": 18,
@ -122,7 +122,7 @@
},
"isElement": true,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 20,
"end": 29,
@ -150,7 +150,7 @@
},
"isElement": true,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 31,
"end": 41,
@ -178,7 +178,7 @@
},
"isElement": true,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 43,
"end": 55,
@ -219,7 +219,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 57,
"end": 62,
@ -230,7 +230,7 @@
},
"value": [
{
"type": "Text",
"type": "Identifier",
"span": {
"start": 63,
"end": 66,

View File

@ -40,7 +40,7 @@ error: TypeSelector
1 | div::before::after::selection::first-line::first-letter {color:red}
| ^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/-GZJfOA9TK6La2KGGNgCkg/input.css:1:1
|
1 | div::before::after::selection::first-line::first-letter {color:red}
@ -58,7 +58,7 @@ error: PseudoSelector
1 | div::before::after::selection::first-line::first-letter {color:red}
| ^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/-GZJfOA9TK6La2KGGNgCkg/input.css:1:6
|
1 | div::before::after::selection::first-line::first-letter {color:red}
@ -78,7 +78,7 @@ error: PseudoSelector
1 | div::before::after::selection::first-line::first-letter {color:red}
| ^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/-GZJfOA9TK6La2KGGNgCkg/input.css:1:14
|
1 | div::before::after::selection::first-line::first-letter {color:red}
@ -96,7 +96,7 @@ error: PseudoSelector
1 | div::before::after::selection::first-line::first-letter {color:red}
| ^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/-GZJfOA9TK6La2KGGNgCkg/input.css:1:21
|
1 | div::before::after::selection::first-line::first-letter {color:red}
@ -114,7 +114,7 @@ error: PseudoSelector
1 | div::before::after::selection::first-line::first-letter {color:red}
| ^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/-GZJfOA9TK6La2KGGNgCkg/input.css:1:32
|
1 | div::before::after::selection::first-line::first-letter {color:red}
@ -132,7 +132,7 @@ error: PseudoSelector
1 | div::before::after::selection::first-line::first-letter {color:red}
| ^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/-GZJfOA9TK6La2KGGNgCkg/input.css:1:44
|
1 | div::before::after::selection::first-line::first-letter {color:red}
@ -150,7 +150,7 @@ error: Declaration
1 | div::before::after::selection::first-line::first-letter {color:red}
| ^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/-GZJfOA9TK6La2KGGNgCkg/input.css:1:58
|
1 | div::before::after::selection::first-line::first-letter {color:red}
@ -162,7 +162,7 @@ error: Value
1 | div::before::after::selection::first-line::first-letter {color:red}
| ^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/-GZJfOA9TK6La2KGGNgCkg/input.css:1:64
|
1 | div::before::after::selection::first-line::first-letter {color:red}

View File

@ -46,7 +46,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 1,
@ -78,7 +78,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 4,
"end": 9,

View File

@ -40,7 +40,7 @@ error: TypeSelector
1 | a { width: +.10; }
| ^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/-JoxoRcnA-zaaEC7RjXKvQ/input.css:1:1
|
1 | a { width: +.10; }
@ -58,7 +58,7 @@ error: Declaration
1 | a { width: +.10; }
| ^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/-JoxoRcnA-zaaEC7RjXKvQ/input.css:1:5
|
1 | a { width: +.10; }

View File

@ -47,7 +47,7 @@
"ctxt": 0
},
"text": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 7,

View File

@ -46,7 +46,7 @@ error: IdSelector
1 | #h\61sh {}
| ^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/-b4VODLSeaV93gwC2Ot2tw/input.css:1:1
|
1 | #h\61sh {}

View File

@ -46,7 +46,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 1,
@ -78,7 +78,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 4,
"end": 9,

View File

@ -40,7 +40,7 @@ error: TypeSelector
1 | a { width: -.10%; }
| ^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/-edvtxlXMemv5jnGeyueBA/input.css:1:1
|
1 | a { width: -.10%; }
@ -58,7 +58,7 @@ error: Declaration
1 | a { width: -.10%; }
| ^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/-edvtxlXMemv5jnGeyueBA/input.css:1:5
|
1 | a { width: -.10%; }

View File

@ -46,7 +46,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 1,
@ -78,7 +78,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 4,
"end": 14,
@ -96,7 +96,7 @@
"ctxt": 0
},
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 16,
"end": 19,
@ -169,7 +169,7 @@
"raw": "1"
},
{
"type": "Text",
"type": "Identifier",
"span": {
"start": 38,
"end": 43,

View File

@ -40,7 +40,7 @@ error: TypeSelector
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }
| ^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css:1:1
|
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }
@ -58,7 +58,7 @@ error: Declaration
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css:1:5
|
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }
@ -76,7 +76,7 @@ error: FnValue
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }
| ^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css:1:17
|
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }
@ -160,7 +160,7 @@ error: Value
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }
| ^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css:1:39
|
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }

View File

@ -47,7 +47,7 @@
"ctxt": 0
},
"prefix": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 1,
"end": 2,
@ -57,7 +57,7 @@
"raw": "*"
},
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 3,
"end": 4,

View File

@ -46,13 +46,13 @@ error: AttrSelector
1 | [*|b]{}
| ^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/-shTP60AAG6a4mCJUpV1cQ/input.css:1:2
|
1 | [*|b]{}
| ^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/-shTP60AAG6a4mCJUpV1cQ/input.css:1:4
|
1 | [*|b]{}

View File

@ -46,7 +46,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 1,
@ -78,7 +78,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 4,
"end": 10,

View File

@ -40,7 +40,7 @@ error: TypeSelector
1 | a { margin: 0 1 0 1 }
| ^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/07tvJxvZrgDeTmptOclErA/input.css:1:1
|
1 | a { margin: 0 1 0 1 }
@ -58,7 +58,7 @@ error: Declaration
1 | a { margin: 0 1 0 1 }
| ^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/07tvJxvZrgDeTmptOclErA/input.css:1:5
|
1 | a { margin: 0 1 0 1 }

View File

@ -46,7 +46,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 1,
@ -78,7 +78,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 4,
"end": 9,

View File

@ -40,7 +40,7 @@ error: TypeSelector
1 | a { value: 10p\32x }
| ^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/0LKvnY2GhG7ss8EXa0t6tQ/input.css:1:1
|
1 | a { value: 10p\32x }
@ -58,7 +58,7 @@ error: Declaration
1 | a { value: 10p\32x }
| ^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/0LKvnY2GhG7ss8EXa0t6tQ/input.css:1:5
|
1 | a { value: 10p\32x }

View File

@ -48,7 +48,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 1,
"end": 2,

View File

@ -46,7 +46,7 @@ error: AttrSelector
1 | [b="0c"] {}
| ^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/0Zlgi2sdsFfTrdnWOHUqeg/input.css:1:2
|
1 | [b="0c"] {}

View File

@ -47,7 +47,7 @@
"ctxt": 0
},
"text": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 3,

View File

@ -46,7 +46,7 @@ error: IdSelector
1 | #id {}
| ^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/0qqdP6EmNqzSa3h8c8lYUQ/input.css:1:1
|
1 | #id {}

View File

@ -46,7 +46,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 5,

View File

@ -40,7 +40,7 @@ error: TypeSelector
1 | -\2d {}
| ^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/0yo6flt6jo-UA8rUEFjrWA/input.css:1:1
|
1 | -\2d {}

View File

@ -46,7 +46,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 3,
@ -65,7 +65,7 @@
"ctxt": 0
},
"text": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 3,
"end": 6,

View File

@ -40,7 +40,7 @@ error: TypeSelector
1 | div#id {}
| ^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/10VLLYwNo7xaTisP9r9Kfg/input.css:1:1
|
1 | div#id {}
@ -58,7 +58,7 @@ error: IdSelector
1 | div#id {}
| ^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/10VLLYwNo7xaTisP9r9Kfg/input.css:1:4
|
1 | div#id {}

View File

@ -46,7 +46,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 1,
@ -78,7 +78,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 4,
"end": 17,
@ -139,7 +139,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 28,
"end": 51,

View File

@ -40,7 +40,7 @@ error: TypeSelector
1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; }
| ^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/input.css:1:1
|
1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; }
@ -58,7 +58,7 @@ error: Declaration
1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; }
| ^^^^^^^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/input.css:1:5
|
1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; }
@ -118,7 +118,7 @@ error: Declaration
1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/input.css:1:29
|
1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; }

View File

@ -47,7 +47,7 @@
"ctxt": 0
},
"text": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 6,

View File

@ -46,7 +46,7 @@ error: IdSelector
1 | #-\2d {}
| ^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/1JQzQJ1QtQJ1onUzZx7BVg/input.css:1:1
|
1 | #-\2d {}

View File

@ -46,7 +46,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 1,
@ -78,7 +78,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 4,
"end": 9,
@ -89,7 +89,7 @@
},
"value": [
{
"type": "Text",
"type": "Identifier",
"span": {
"start": 11,
"end": 18,

View File

@ -40,7 +40,7 @@ error: TypeSelector
1 | a { value: id\65nt }
| ^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/1naykwaIKZc6zuHRNIccLQ/input.css:1:1
|
1 | a { value: id\65nt }
@ -58,7 +58,7 @@ error: Declaration
1 | a { value: id\65nt }
| ^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/1naykwaIKZc6zuHRNIccLQ/input.css:1:5
|
1 | a { value: id\65nt }
@ -70,7 +70,7 @@ error: Value
1 | a { value: id\65nt }
| ^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/1naykwaIKZc6zuHRNIccLQ/input.css:1:12
|
1 | a { value: id\65nt }

View File

@ -46,7 +46,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 1,
@ -66,7 +66,7 @@
},
"isElement": false,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 2,
"end": 7,
@ -107,7 +107,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 10,
"end": 17,

View File

@ -40,7 +40,7 @@ error: TypeSelector
1 | a:after { content: 'a\ b' }
| ^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/2nNBhRWO2cNcBJf09zDxjw/input.css:1:1
|
1 | a:after { content: 'a\ b' }
@ -58,7 +58,7 @@ error: PseudoSelector
1 | a:after { content: 'a\ b' }
| ^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/2nNBhRWO2cNcBJf09zDxjw/input.css:1:3
|
1 | a:after { content: 'a\ b' }
@ -78,7 +78,7 @@ error: Declaration
1 | a:after { content: 'a\ b' }
| ^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/2nNBhRWO2cNcBJf09zDxjw/input.css:1:11
|
1 | a:after { content: 'a\ b' }

View File

@ -46,7 +46,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 1,
@ -78,7 +78,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 4,
"end": 9,
@ -96,7 +96,7 @@
"ctxt": 0
},
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 11,
"end": 15,

View File

@ -40,7 +40,7 @@ error: TypeSelector
1 | a { value: \66n() }
| ^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/36qnNuIUvbIrMnJKDxwE5A/input.css:1:1
|
1 | a { value: \66n() }
@ -58,7 +58,7 @@ error: Declaration
1 | a { value: \66n() }
| ^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/36qnNuIUvbIrMnJKDxwE5A/input.css:1:5
|
1 | a { value: \66n() }
@ -76,7 +76,7 @@ error: FnValue
1 | a { value: \66n() }
| ^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/36qnNuIUvbIrMnJKDxwE5A/input.css:1:12
|
1 | a { value: \66n() }

View File

@ -14,7 +14,7 @@
"ctxt": 0
},
"id": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 11,
"end": 15,
@ -32,7 +32,7 @@
},
"selector": [
{
"type": "Text",
"type": "Identifier",
"span": {
"start": 18,
"end": 22,
@ -58,7 +58,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 25,
"end": 30,
@ -69,7 +69,7 @@
},
"value": [
{
"type": "Text",
"type": "Identifier",
"span": {
"start": 32,
"end": 35,
@ -92,7 +92,7 @@
},
"selector": [
{
"type": "Text",
"type": "Identifier",
"span": {
"start": 38,
"end": 40,

View File

@ -22,7 +22,7 @@ error: KeyframesRule
1 | @keyframes test { from { color: red } to {} }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/375WZQg3bngUbuoHsqEIcA/input.css:1:12
|
1 | @keyframes test { from { color: red } to {} }
@ -40,7 +40,7 @@ error: KeyframeSelector
1 | @keyframes test { from { color: red } to {} }
| ^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/375WZQg3bngUbuoHsqEIcA/input.css:1:19
|
1 | @keyframes test { from { color: red } to {} }
@ -64,7 +64,7 @@ error: Declaration
1 | @keyframes test { from { color: red } to {} }
| ^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/375WZQg3bngUbuoHsqEIcA/input.css:1:26
|
1 | @keyframes test { from { color: red } to {} }
@ -76,7 +76,7 @@ error: Value
1 | @keyframes test { from { color: red } to {} }
| ^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/375WZQg3bngUbuoHsqEIcA/input.css:1:33
|
1 | @keyframes test { from { color: red } to {} }
@ -94,7 +94,7 @@ error: KeyframeSelector
1 | @keyframes test { from { color: red } to {} }
| ^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/375WZQg3bngUbuoHsqEIcA/input.css:1:39
|
1 | @keyframes test { from { color: red } to {} }

View File

@ -46,7 +46,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 1,
@ -78,7 +78,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 4,
"end": 9,

View File

@ -40,7 +40,7 @@ error: TypeSelector
1 | a { color: #ABCD }
| ^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/39pbt1sIeFh8WWhCalZS4g/input.css:1:1
|
1 | a { color: #ABCD }
@ -58,7 +58,7 @@ error: Declaration
1 | a { color: #ABCD }
| ^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/39pbt1sIeFh8WWhCalZS4g/input.css:1:5
|
1 | a { color: #ABCD }

View File

@ -46,7 +46,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 1,
@ -78,7 +78,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 4,
"end": 9,

View File

@ -40,7 +40,7 @@ error: TypeSelector
1 | a { color: #ABBBCCDD }
| ^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/3EgMpLwjJNG0ht4U_r6cnw/input.css:1:1
|
1 | a { color: #ABBBCCDD }
@ -58,7 +58,7 @@ error: Declaration
1 | a { color: #ABBBCCDD }
| ^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/3EgMpLwjJNG0ht4U_r6cnw/input.css:1:5
|
1 | a { color: #ABBBCCDD }

View File

@ -46,7 +46,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 1,
@ -78,7 +78,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 4,
"end": 9,

View File

@ -40,7 +40,7 @@ error: TypeSelector
1 | a { color: #abcf }
| ^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/3JGye8AhworwNFoUL1gKbg/input.css:1:1
|
1 | a { color: #abcf }
@ -58,7 +58,7 @@ error: Declaration
1 | a { color: #abcf }
| ^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/3JGye8AhworwNFoUL1gKbg/input.css:1:5
|
1 | a { color: #abcf }

View File

@ -46,7 +46,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 1,
@ -78,7 +78,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 4,
"end": 9,

View File

@ -40,7 +40,7 @@ error: TypeSelector
1 | a { width: 0.1%; }
| ^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/3OV2jH0hrt2_2jOv6t4wvA/input.css:1:1
|
1 | a { width: 0.1%; }
@ -58,7 +58,7 @@ error: Declaration
1 | a { width: 0.1%; }
| ^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/3OV2jH0hrt2_2jOv6t4wvA/input.css:1:5
|
1 | a { width: 0.1%; }

View File

@ -14,7 +14,7 @@
"ctxt": 0
},
"id": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 11,
"end": 15,
@ -66,7 +66,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 25,
"end": 30,
@ -77,7 +77,7 @@
},
"value": [
{
"type": "Text",
"type": "Identifier",
"span": {
"start": 32,
"end": 35,

View File

@ -22,7 +22,7 @@ error: KeyframesRule
1 | @keyframes name { 100% { color: red } }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/3a1KXFwtncypOUCwQI7IAw/input.css:1:12
|
1 | @keyframes name { 100% { color: red } }
@ -70,7 +70,7 @@ error: Declaration
1 | @keyframes name { 100% { color: red } }
| ^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/3a1KXFwtncypOUCwQI7IAw/input.css:1:26
|
1 | @keyframes name { 100% { color: red } }
@ -82,7 +82,7 @@ error: Value
1 | @keyframes name { 100% { color: red } }
| ^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/3a1KXFwtncypOUCwQI7IAw/input.css:1:33
|
1 | @keyframes name { 100% { color: red } }

View File

@ -14,7 +14,7 @@
"ctxt": 0
},
"id": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 11,
"end": 15,

View File

@ -22,7 +22,7 @@ error: KeyframesRule
1 | @keyframes name{}
| ^^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/3qKvhk-8FQVONLpki0FoMA/input.css:1:12
|
1 | @keyframes name{}

View File

@ -46,7 +46,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 1,
@ -78,7 +78,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 4,
"end": 9,
@ -96,7 +96,7 @@
"ctxt": 0
},
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 11,
"end": 22,

View File

@ -40,7 +40,7 @@ error: TypeSelector
1 | a { value: @\6b eyword }
| ^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/4-S1C8qZOZ6Mm7WdRUH72Q/input.css:1:1
|
1 | a { value: @\6b eyword }
@ -58,7 +58,7 @@ error: Declaration
1 | a { value: @\6b eyword }
| ^^^^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/4-S1C8qZOZ6Mm7WdRUH72Q/input.css:1:5
|
1 | a { value: @\6b eyword }
@ -76,7 +76,7 @@ error: AtTextValue
1 | a { value: @\6b eyword }
| ^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/4-S1C8qZOZ6Mm7WdRUH72Q/input.css:1:12
|
1 | a { value: @\6b eyword }

View File

@ -46,7 +46,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 1,
@ -78,7 +78,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 4,
"end": 9,
@ -89,7 +89,7 @@
},
"value": [
{
"type": "Text",
"type": "Identifier",
"span": {
"start": 11,
"end": 19,

View File

@ -40,7 +40,7 @@ error: TypeSelector
1 | a { value: \69 dent }
| ^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/485Ns9qQHa89OJU5Lhjx-Q/input.css:1:1
|
1 | a { value: \69 dent }
@ -58,7 +58,7 @@ error: Declaration
1 | a { value: \69 dent }
| ^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/485Ns9qQHa89OJU5Lhjx-Q/input.css:1:5
|
1 | a { value: \69 dent }
@ -70,7 +70,7 @@ error: Value
1 | a { value: \69 dent }
| ^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/485Ns9qQHa89OJU5Lhjx-Q/input.css:1:12
|
1 | a { value: \69 dent }

View File

@ -46,7 +46,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 1,
@ -78,7 +78,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 4,
"end": 9,

View File

@ -40,7 +40,7 @@ error: TypeSelector
1 | a { value: #\30hash }
| ^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/486QvEO8dmLFsXYp6xgKVw/input.css:1:1
|
1 | a { value: #\30hash }
@ -58,7 +58,7 @@ error: Declaration
1 | a { value: #\30hash }
| ^^^^^^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/486QvEO8dmLFsXYp6xgKVw/input.css:1:5
|
1 | a { value: #\30hash }

View File

@ -46,7 +46,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 1,
@ -78,7 +78,7 @@
"ctxt": 0
},
"property": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 4,
"end": 9,

View File

@ -40,7 +40,7 @@ error: TypeSelector
1 | a { width: 0.0; }
| ^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/4Tjjgepnha63E4UiXXDNEA/input.css:1:1
|
1 | a { width: 0.0; }
@ -58,7 +58,7 @@ error: Declaration
1 | a { width: 0.0; }
| ^^^^^^^^^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/4Tjjgepnha63E4UiXXDNEA/input.css:1:5
|
1 | a { width: 0.0; }

View File

@ -46,7 +46,7 @@
},
"prefix": null,
"name": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 0,
"end": 1,
@ -65,7 +65,7 @@
"ctxt": 0
},
"text": {
"type": "Text",
"type": "Identifier",
"span": {
"start": 6,
"end": 7,

View File

@ -40,7 +40,7 @@ error: TypeSelector
1 | a/**/.b {}
| ^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/4UaOTazLwrr9gd5xkBBlnw/input.css:1:1
|
1 | a/**/.b {}
@ -58,7 +58,7 @@ error: ClassSelector
1 | a/**/.b {}
| ^^
error: Text
error: Ident
--> $DIR/tests/fixture/esbuild/misc/4UaOTazLwrr9gd5xkBBlnw/input.css:1:7
|
1 | a/**/.b {}

Some files were not shown because too many files have changed in this diff Show More