swc/css/parser/tests/fixture/rome/custom-properties/span.rust-debug
강동윤 0d63470eba
feat(css): Groundwork for css processor (#2105)
swc_css_ast:
 - Rename `Values` to `SpaceValues`.

swc_css_parser:
 - Add `parse_str`.
 - Make `ErrorKind` `#[non_exhaustive]`.
 - Fix span.

swc_css_visit:
 - Create visitors.
2021-08-20 07:48:08 +00:00

824 lines
19 KiB
Plaintext

error: Stylesheet
--> $DIR/tests/fixture/rome/custom-properties/input.css:1:1
|
1 | / .style {
2 | | --foo: 'bar';
3 | | --lore-ipsum: "foo";
4 | | --FANCY: "abort";
... |
23 | | --cdc-not-top-level: (-->);
24 | | }
| |__^
error: Rule
--> $DIR/tests/fixture/rome/custom-properties/input.css:1:1
|
1 | / .style {
2 | | --foo: 'bar';
3 | | --lore-ipsum: "foo";
4 | | --FANCY: "abort";
... |
23 | | --cdc-not-top-level: (-->);
24 | | }
| |_^
error: StyleRule
--> $DIR/tests/fixture/rome/custom-properties/input.css:1:1
|
1 | / .style {
2 | | --foo: 'bar';
3 | | --lore-ipsum: "foo";
4 | | --FANCY: "abort";
... |
23 | | --cdc-not-top-level: (-->);
24 | | }
| |_^
error: ComplexSelector
--> $DIR/tests/fixture/rome/custom-properties/input.css:1:1
|
1 | .style {
| ^^^^^^
error: CompoundSelector
--> $DIR/tests/fixture/rome/custom-properties/input.css:1:1
|
1 | .style {
| ^^^^^^
error: SubclassSelector
--> $DIR/tests/fixture/rome/custom-properties/input.css:1:1
|
1 | .style {
| ^^^^^^
error: ClassSelector
--> $DIR/tests/fixture/rome/custom-properties/input.css:1:1
|
1 | .style {
| ^^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:1:2
|
1 | .style {
| ^^^^^
error: DeclBlock
--> $DIR/tests/fixture/rome/custom-properties/input.css:1:8
|
1 | .style {
| ________^
2 | | --foo: 'bar';
3 | | --lore-ipsum: "foo";
4 | | --FANCY: "abort";
... |
23 | | --cdc-not-top-level: (-->);
24 | | }
| |_^
error: Property
--> $DIR/tests/fixture/rome/custom-properties/input.css:2:2
|
2 | --foo: 'bar';
| ^^^^^^^^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:2:2
|
2 | --foo: 'bar';
| ^^^^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:2:9
|
2 | --foo: 'bar';
| ^^^^^
error: Str
--> $DIR/tests/fixture/rome/custom-properties/input.css:2:9
|
2 | --foo: 'bar';
| ^^^^^
error: Property
--> $DIR/tests/fixture/rome/custom-properties/input.css:3:2
|
3 | --lore-ipsum: "foo";
| ^^^^^^^^^^^^^^^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:3:2
|
3 | --lore-ipsum: "foo";
| ^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:3:16
|
3 | --lore-ipsum: "foo";
| ^^^^^
error: Str
--> $DIR/tests/fixture/rome/custom-properties/input.css:3:16
|
3 | --lore-ipsum: "foo";
| ^^^^^
error: Property
--> $DIR/tests/fixture/rome/custom-properties/input.css:4:2
|
4 | --FANCY: "abort";
| ^^^^^^^^^^^^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:4:2
|
4 | --FANCY: "abort";
| ^^^^^^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:4:11
|
4 | --FANCY: "abort";
| ^^^^^^^
error: Str
--> $DIR/tests/fixture/rome/custom-properties/input.css:4:11
|
4 | --FANCY: "abort";
| ^^^^^^^
error: Property
--> $DIR/tests/fixture/rome/custom-properties/input.css:5:2
|
5 | --test: 1987;
| ^^^^^^^^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:5:2
|
5 | --test: 1987;
| ^^^^^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:5:10
|
5 | --test: 1987;
| ^^^^
error: Num
--> $DIR/tests/fixture/rome/custom-properties/input.css:5:10
|
5 | --test: 1987;
| ^^^^
error: Property
--> $DIR/tests/fixture/rome/custom-properties/input.css:6:2
|
6 | --percentage: 25%;
| ^^^^^^^^^^^^^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:6:2
|
6 | --percentage: 25%;
| ^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:6:16
|
6 | --percentage: 25%;
| ^^^
error: PercentValue
--> $DIR/tests/fixture/rome/custom-properties/input.css:6:16
|
6 | --percentage: 25%;
| ^^^
error: Num
--> $DIR/tests/fixture/rome/custom-properties/input.css:6:16
|
6 | --percentage: 25%;
| ^^
error: Property
--> $DIR/tests/fixture/rome/custom-properties/input.css:7:2
|
7 | --number: 37;
| ^^^^^^^^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:7:2
|
7 | --number: 37;
| ^^^^^^^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:7:12
|
7 | --number: 37;
| ^^
error: Num
--> $DIR/tests/fixture/rome/custom-properties/input.css:7:12
|
7 | --number: 37;
| ^^
error: Property
--> $DIR/tests/fixture/rome/custom-properties/input.css:8:2
|
8 | --length: 12em;
| ^^^^^^^^^^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:8:2
|
8 | --length: 12em;
| ^^^^^^^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:8:12
|
8 | --length: 12em;
| ^^^^
error: UnitValue
--> $DIR/tests/fixture/rome/custom-properties/input.css:8:12
|
8 | --length: 12em;
| ^^^^
error: Num
--> $DIR/tests/fixture/rome/custom-properties/input.css:8:12
|
8 | --length: 12em;
| ^^
error: Unit
--> $DIR/tests/fixture/rome/custom-properties/input.css:8:14
|
8 | --length: 12em;
| ^^
error: Property
--> $DIR/tests/fixture/rome/custom-properties/input.css:9:2
|
9 | --time: 75ms;
| ^^^^^^^^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:9:2
|
9 | --time: 75ms;
| ^^^^^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:9:10
|
9 | --time: 75ms;
| ^^^^
error: UnitValue
--> $DIR/tests/fixture/rome/custom-properties/input.css:9:10
|
9 | --time: 75ms;
| ^^^^
error: Num
--> $DIR/tests/fixture/rome/custom-properties/input.css:9:10
|
9 | --time: 75ms;
| ^^
error: Unit
--> $DIR/tests/fixture/rome/custom-properties/input.css:9:12
|
9 | --time: 75ms;
| ^^
error: Property
--> $DIR/tests/fixture/rome/custom-properties/input.css:10:2
|
10 | --function: foo();
| ^^^^^^^^^^^^^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:10:2
|
10 | --function: foo();
| ^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:10:14
|
10 | --function: foo();
| ^^^^^
error: FnValue
--> $DIR/tests/fixture/rome/custom-properties/input.css:10:14
|
10 | --function: foo();
| ^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:10:14
|
10 | --function: foo();
| ^^^
error: Property
--> $DIR/tests/fixture/rome/custom-properties/input.css:11:2
|
11 | --nested-function: foo(bar());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:11:2
|
11 | --nested-function: foo(bar());
| ^^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:11:21
|
11 | --nested-function: foo(bar());
| ^^^^^^^^^^
error: FnValue
--> $DIR/tests/fixture/rome/custom-properties/input.css:11:21
|
11 | --nested-function: foo(bar());
| ^^^^^^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:11:21
|
11 | --nested-function: foo(bar());
| ^^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:11:25
|
11 | --nested-function: foo(bar());
| ^^^^^
error: FnValue
--> $DIR/tests/fixture/rome/custom-properties/input.css:11:25
|
11 | --nested-function: foo(bar());
| ^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:11:25
|
11 | --nested-function: foo(bar());
| ^^^
error: Property
--> $DIR/tests/fixture/rome/custom-properties/input.css:12:2
|
12 | --parentheses: ( );
| ^^^^^^^^^^^^^^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:12:2
|
12 | --parentheses: ( );
| ^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:12:17
|
12 | --parentheses: ( );
| ^^^
error: ParenValue
--> $DIR/tests/fixture/rome/custom-properties/input.css:12:17
|
12 | --parentheses: ( );
| ^^^
error: Property
--> $DIR/tests/fixture/rome/custom-properties/input.css:13:2
|
13 | --braces: { };
| ^^^^^^^^^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:13:2
|
13 | --braces: { };
| ^^^^^^^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:13:12
|
13 | --braces: { };
| ^^^
error: BraceValue
--> $DIR/tests/fixture/rome/custom-properties/input.css:13:12
|
13 | --braces: { };
| ^^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:13:13
|
13 | --braces: { };
| ^
error: Tokens
--> $DIR/tests/fixture/rome/custom-properties/input.css:13:13
|
13 | --braces: { };
| ^
error: WhiteSpace
--> $DIR/tests/fixture/rome/custom-properties/input.css:13:13
|
13 | --braces: { };
| ^
error: Property
--> $DIR/tests/fixture/rome/custom-properties/input.css:14:2
|
14 | --brackets: [ ];
| ^^^^^^^^^^^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:14:2
|
14 | --brackets: [ ];
| ^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:14:14
|
14 | --brackets: [ ];
| ^^^
error: ArrayValue
--> $DIR/tests/fixture/rome/custom-properties/input.css:14:14
|
14 | --brackets: [ ];
| ^^^
error: Property
--> $DIR/tests/fixture/rome/custom-properties/input.css:15:2
|
15 | --at-keyword-unknown: @foobar;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:15:2
|
15 | --at-keyword-unknown: @foobar;
| ^^^^^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:15:24
|
15 | --at-keyword-unknown: @foobar;
| ^^^^^^^
error: AtTextValue
--> $DIR/tests/fixture/rome/custom-properties/input.css:15:24
|
15 | --at-keyword-unknown: @foobar;
| ^^^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:15:24
|
15 | --at-keyword-unknown: @foobar;
| ^^^^^^^
error: Property
--> $DIR/tests/fixture/rome/custom-properties/input.css:16:2
|
16 | --at-keyword-known: @media;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:16:2
|
16 | --at-keyword-known: @media;
| ^^^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:16:22
|
16 | --at-keyword-known: @media;
| ^^^^^^
error: AtTextValue
--> $DIR/tests/fixture/rome/custom-properties/input.css:16:22
|
16 | --at-keyword-known: @media;
| ^^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:16:22
|
16 | --at-keyword-known: @media;
| ^^^^^^
error: Property
--> $DIR/tests/fixture/rome/custom-properties/input.css:17:2
|
17 | --at-keyword-unknown-block: @foobar {};
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:17:2
|
17 | --at-keyword-unknown-block: @foobar {};
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:17:30
|
17 | --at-keyword-unknown-block: @foobar {};
| ^^^^^^^
error: AtTextValue
--> $DIR/tests/fixture/rome/custom-properties/input.css:17:30
|
17 | --at-keyword-unknown-block: @foobar {};
| ^^^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:17:30
|
17 | --at-keyword-unknown-block: @foobar {};
| ^^^^^^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:17:38
|
17 | --at-keyword-unknown-block: @foobar {};
| ^^
error: BraceValue
--> $DIR/tests/fixture/rome/custom-properties/input.css:17:38
|
17 | --at-keyword-unknown-block: @foobar {};
| ^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:17:39
|
17 | --at-keyword-unknown-block: @foobar {};
| ^
error: Tokens
--> $DIR/tests/fixture/rome/custom-properties/input.css:17:39
|
17 | --at-keyword-unknown-block: @foobar {};
| ^
error: Property
--> $DIR/tests/fixture/rome/custom-properties/input.css:18:2
|
18 | --at-keyword-known-block: @media {};
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:18:2
|
18 | --at-keyword-known-block: @media {};
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:18:28
|
18 | --at-keyword-known-block: @media {};
| ^^^^^^
error: AtTextValue
--> $DIR/tests/fixture/rome/custom-properties/input.css:18:28
|
18 | --at-keyword-known-block: @media {};
| ^^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:18:28
|
18 | --at-keyword-known-block: @media {};
| ^^^^^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:18:35
|
18 | --at-keyword-known-block: @media {};
| ^^
error: BraceValue
--> $DIR/tests/fixture/rome/custom-properties/input.css:18:35
|
18 | --at-keyword-known-block: @media {};
| ^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:18:36
|
18 | --at-keyword-known-block: @media {};
| ^
error: Tokens
--> $DIR/tests/fixture/rome/custom-properties/input.css:18:36
|
18 | --at-keyword-known-block: @media {};
| ^
error: Property
--> $DIR/tests/fixture/rome/custom-properties/input.css:19:2
|
19 | --cdo-at-top-level: <!--;
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:19:2
|
19 | --cdo-at-top-level: <!--;
| ^^^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:19:22
|
19 | --cdo-at-top-level: <!--;
| ^^^^
error: Tokens
--> $DIR/tests/fixture/rome/custom-properties/input.css:19:22
|
19 | --cdo-at-top-level: <!--;
| ^^^^
error: CDO
--> $DIR/tests/fixture/rome/custom-properties/input.css:19:22
|
19 | --cdo-at-top-level: <!--;
| ^^^^
error: Property
--> $DIR/tests/fixture/rome/custom-properties/input.css:20:2
|
20 | --cdc-at-top-level: -->;
| ^^^^^^^^^^^^^^^^^^^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:20:2
|
20 | --cdc-at-top-level: -->;
| ^^^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:20:22
|
20 | --cdc-at-top-level: -->;
| ^^^
error: Tokens
--> $DIR/tests/fixture/rome/custom-properties/input.css:20:22
|
20 | --cdc-at-top-level: -->;
| ^^^
error: CDC
--> $DIR/tests/fixture/rome/custom-properties/input.css:20:22
|
20 | --cdc-at-top-level: -->;
| ^^^
error: Property
--> $DIR/tests/fixture/rome/custom-properties/input.css:21:2
|
21 | --semicolon-not-top-level: (;);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:21:2
|
21 | --semicolon-not-top-level: (;);
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:21:29
|
21 | --semicolon-not-top-level: (;);
| ^^^
error: ParenValue
--> $DIR/tests/fixture/rome/custom-properties/input.css:21:29
|
21 | --semicolon-not-top-level: (;);
| ^^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:21:30
|
21 | --semicolon-not-top-level: (;);
| ^
error: Tokens
--> $DIR/tests/fixture/rome/custom-properties/input.css:21:30
|
21 | --semicolon-not-top-level: (;);
| ^
error: Semi
--> $DIR/tests/fixture/rome/custom-properties/input.css:21:30
|
21 | --semicolon-not-top-level: (;);
| ^
error: Property
--> $DIR/tests/fixture/rome/custom-properties/input.css:22:2
|
22 | --cdo-not-top-level: (<!--);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:22:2
|
22 | --cdo-not-top-level: (<!--);
| ^^^^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:22:23
|
22 | --cdo-not-top-level: (<!--);
| ^^^^^^
error: ParenValue
--> $DIR/tests/fixture/rome/custom-properties/input.css:22:23
|
22 | --cdo-not-top-level: (<!--);
| ^^^^^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:22:24
|
22 | --cdo-not-top-level: (<!--);
| ^^^^
error: Tokens
--> $DIR/tests/fixture/rome/custom-properties/input.css:22:24
|
22 | --cdo-not-top-level: (<!--);
| ^^^^
error: CDO
--> $DIR/tests/fixture/rome/custom-properties/input.css:22:24
|
22 | --cdo-not-top-level: (<!--);
| ^^^^
error: Property
--> $DIR/tests/fixture/rome/custom-properties/input.css:23:2
|
23 | --cdc-not-top-level: (-->);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Text
--> $DIR/tests/fixture/rome/custom-properties/input.css:23:2
|
23 | --cdc-not-top-level: (-->);
| ^^^^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:23:23
|
23 | --cdc-not-top-level: (-->);
| ^^^^^
error: ParenValue
--> $DIR/tests/fixture/rome/custom-properties/input.css:23:23
|
23 | --cdc-not-top-level: (-->);
| ^^^^^
error: Value
--> $DIR/tests/fixture/rome/custom-properties/input.css:23:24
|
23 | --cdc-not-top-level: (-->);
| ^^^
error: Tokens
--> $DIR/tests/fixture/rome/custom-properties/input.css:23:24
|
23 | --cdc-not-top-level: (-->);
| ^^^
error: CDC
--> $DIR/tests/fixture/rome/custom-properties/input.css:23:24
|
23 | --cdc-not-top-level: (-->);
| ^^^