diff options
author | Aleksey Kladov <[email protected]> | 2020-04-24 22:51:02 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-04-25 10:59:18 +0100 |
commit | 8843588fca7a6022b86800d5d2539594c0de93cf (patch) | |
tree | 3c5162068377dbd53dbf40b602baeeed7aa82285 /crates/ra_syntax/test_data/parser/inline/err | |
parent | b1d5817dd18b7b5fc102a63b084b1ee7ff4f9996 (diff) |
Convert tests to text-size
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/err')
14 files changed, 554 insertions, 554 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/err/0001_array_type_missing_semi.rast b/crates/ra_syntax/test_data/parser/inline/err/0001_array_type_missing_semi.rast index 9d807c84f..bf70ebca4 100644 --- a/crates/ra_syntax/test_data/parser/inline/err/0001_array_type_missing_semi.rast +++ b/crates/ra_syntax/test_data/parser/inline/err/0001_array_type_missing_semi.rast | |||
@@ -1,27 +1,27 @@ | |||
1 | SOURCE_FILE@[0; 18) | 1 | SOURCE_FILE@0..18 |
2 | TYPE_ALIAS_DEF@[0; 12) | 2 | TYPE_ALIAS_DEF@0..12 |
3 | TYPE_KW@[0; 4) "type" | 3 | TYPE_KW@0..4 "type" |
4 | WHITESPACE@[4; 5) " " | 4 | WHITESPACE@4..5 " " |
5 | NAME@[5; 6) | 5 | NAME@5..6 |
6 | IDENT@[5; 6) "T" | 6 | IDENT@5..6 "T" |
7 | WHITESPACE@[6; 7) " " | 7 | WHITESPACE@6..7 " " |
8 | EQ@[7; 8) "=" | 8 | EQ@7..8 "=" |
9 | WHITESPACE@[8; 9) " " | 9 | WHITESPACE@8..9 " " |
10 | SLICE_TYPE@[9; 12) | 10 | SLICE_TYPE@9..12 |
11 | L_BRACK@[9; 10) "[" | 11 | L_BRACK@9..10 "[" |
12 | TUPLE_TYPE@[10; 12) | 12 | TUPLE_TYPE@10..12 |
13 | L_PAREN@[10; 11) "(" | 13 | L_PAREN@10..11 "(" |
14 | R_PAREN@[11; 12) ")" | 14 | R_PAREN@11..12 ")" |
15 | WHITESPACE@[12; 13) " " | 15 | WHITESPACE@12..13 " " |
16 | ERROR@[13; 15) | 16 | ERROR@13..15 |
17 | INT_NUMBER@[13; 15) "92" | 17 | INT_NUMBER@13..15 "92" |
18 | ERROR@[15; 16) | 18 | ERROR@15..16 |
19 | R_BRACK@[15; 16) "]" | 19 | R_BRACK@15..16 "]" |
20 | ERROR@[16; 17) | 20 | ERROR@16..17 |
21 | SEMICOLON@[16; 17) ";" | 21 | SEMICOLON@16..17 ";" |
22 | WHITESPACE@[17; 18) "\n" | 22 | WHITESPACE@17..18 "\n" |
23 | error [12; 12): expected `;` or `]` | 23 | error 12..12: expected `;` or `]` |
24 | error [12; 12): expected SEMICOLON | 24 | error 12..12: expected SEMICOLON |
25 | error [13; 13): expected an item | 25 | error 13..13: expected an item |
26 | error [15; 15): expected an item | 26 | error 15..15: expected an item |
27 | error [16; 16): expected an item | 27 | error 16..16: expected an item |
diff --git a/crates/ra_syntax/test_data/parser/inline/err/0002_misplaced_label_err.rast b/crates/ra_syntax/test_data/parser/inline/err/0002_misplaced_label_err.rast index a85855f8c..85bf276a0 100644 --- a/crates/ra_syntax/test_data/parser/inline/err/0002_misplaced_label_err.rast +++ b/crates/ra_syntax/test_data/parser/inline/err/0002_misplaced_label_err.rast | |||
@@ -1,29 +1,29 @@ | |||
1 | SOURCE_FILE@[0; 30) | 1 | SOURCE_FILE@0..30 |
2 | FN_DEF@[0; 29) | 2 | FN_DEF@0..29 |
3 | FN_KW@[0; 2) "fn" | 3 | FN_KW@0..2 "fn" |
4 | WHITESPACE@[2; 3) " " | 4 | WHITESPACE@2..3 " " |
5 | NAME@[3; 7) | 5 | NAME@3..7 |
6 | IDENT@[3; 7) "main" | 6 | IDENT@3..7 "main" |
7 | PARAM_LIST@[7; 9) | 7 | PARAM_LIST@7..9 |
8 | L_PAREN@[7; 8) "(" | 8 | L_PAREN@7..8 "(" |
9 | R_PAREN@[8; 9) ")" | 9 | R_PAREN@8..9 ")" |
10 | WHITESPACE@[9; 10) " " | 10 | WHITESPACE@9..10 " " |
11 | BLOCK_EXPR@[10; 29) | 11 | BLOCK_EXPR@10..29 |
12 | BLOCK@[10; 29) | 12 | BLOCK@10..29 |
13 | L_CURLY@[10; 11) "{" | 13 | L_CURLY@10..11 "{" |
14 | WHITESPACE@[11; 16) "\n " | 14 | WHITESPACE@11..16 "\n " |
15 | EXPR_STMT@[16; 22) | 15 | EXPR_STMT@16..22 |
16 | ERROR@[16; 22) | 16 | ERROR@16..22 |
17 | LABEL@[16; 22) | 17 | LABEL@16..22 |
18 | LIFETIME@[16; 21) "\'loop" | 18 | LIFETIME@16..21 "\'loop" |
19 | COLON@[21; 22) ":" | 19 | COLON@21..22 ":" |
20 | WHITESPACE@[22; 23) " " | 20 | WHITESPACE@22..23 " " |
21 | IMPL_DEF@[23; 27) | 21 | IMPL_DEF@23..27 |
22 | IMPL_KW@[23; 27) "impl" | 22 | IMPL_KW@23..27 "impl" |
23 | WHITESPACE@[27; 28) "\n" | 23 | WHITESPACE@27..28 "\n" |
24 | R_CURLY@[28; 29) "}" | 24 | R_CURLY@28..29 "}" |
25 | WHITESPACE@[29; 30) "\n" | 25 | WHITESPACE@29..30 "\n" |
26 | error [22; 22): expected a loop | 26 | error 22..22: expected a loop |
27 | error [22; 22): expected SEMICOLON | 27 | error 22..22: expected SEMICOLON |
28 | error [27; 27): expected type | 28 | error 27..27: expected type |
29 | error [27; 27): expected `{` | 29 | error 27..27: expected `{` |
diff --git a/crates/ra_syntax/test_data/parser/inline/err/0003_pointer_type_no_mutability.rast b/crates/ra_syntax/test_data/parser/inline/err/0003_pointer_type_no_mutability.rast index e9efad674..95bcc3c0a 100644 --- a/crates/ra_syntax/test_data/parser/inline/err/0003_pointer_type_no_mutability.rast +++ b/crates/ra_syntax/test_data/parser/inline/err/0003_pointer_type_no_mutability.rast | |||
@@ -1,17 +1,17 @@ | |||
1 | SOURCE_FILE@[0; 14) | 1 | SOURCE_FILE@0..14 |
2 | TYPE_ALIAS_DEF@[0; 13) | 2 | TYPE_ALIAS_DEF@0..13 |
3 | TYPE_KW@[0; 4) "type" | 3 | TYPE_KW@0..4 "type" |
4 | WHITESPACE@[4; 5) " " | 4 | WHITESPACE@4..5 " " |
5 | NAME@[5; 6) | 5 | NAME@5..6 |
6 | IDENT@[5; 6) "T" | 6 | IDENT@5..6 "T" |
7 | WHITESPACE@[6; 7) " " | 7 | WHITESPACE@6..7 " " |
8 | EQ@[7; 8) "=" | 8 | EQ@7..8 "=" |
9 | WHITESPACE@[8; 9) " " | 9 | WHITESPACE@8..9 " " |
10 | POINTER_TYPE@[9; 12) | 10 | POINTER_TYPE@9..12 |
11 | STAR@[9; 10) "*" | 11 | STAR@9..10 "*" |
12 | TUPLE_TYPE@[10; 12) | 12 | TUPLE_TYPE@10..12 |
13 | L_PAREN@[10; 11) "(" | 13 | L_PAREN@10..11 "(" |
14 | R_PAREN@[11; 12) ")" | 14 | R_PAREN@11..12 ")" |
15 | SEMICOLON@[12; 13) ";" | 15 | SEMICOLON@12..13 ";" |
16 | WHITESPACE@[13; 14) "\n" | 16 | WHITESPACE@13..14 "\n" |
17 | error [10; 10): expected mut or const in raw pointer type (use `*mut T` or `*const T` as appropriate) | 17 | error 10..10: expected mut or const in raw pointer type (use `*mut T` or `*const T` as appropriate) |
diff --git a/crates/ra_syntax/test_data/parser/inline/err/0004_impl_type.rast b/crates/ra_syntax/test_data/parser/inline/err/0004_impl_type.rast index 124f0a891..fd939be8d 100644 --- a/crates/ra_syntax/test_data/parser/inline/err/0004_impl_type.rast +++ b/crates/ra_syntax/test_data/parser/inline/err/0004_impl_type.rast | |||
@@ -1,79 +1,79 @@ | |||
1 | SOURCE_FILE@[0; 87) | 1 | SOURCE_FILE@0..87 |
2 | IMPL_DEF@[0; 12) | 2 | IMPL_DEF@0..12 |
3 | IMPL_KW@[0; 4) "impl" | 3 | IMPL_KW@0..4 "impl" |
4 | WHITESPACE@[4; 5) " " | 4 | WHITESPACE@4..5 " " |
5 | PATH_TYPE@[5; 9) | 5 | PATH_TYPE@5..9 |
6 | PATH@[5; 9) | 6 | PATH@5..9 |
7 | PATH_SEGMENT@[5; 9) | 7 | PATH_SEGMENT@5..9 |
8 | NAME_REF@[5; 9) | 8 | NAME_REF@5..9 |
9 | IDENT@[5; 9) "Type" | 9 | IDENT@5..9 "Type" |
10 | WHITESPACE@[9; 10) " " | 10 | WHITESPACE@9..10 " " |
11 | ITEM_LIST@[10; 12) | 11 | ITEM_LIST@10..12 |
12 | L_CURLY@[10; 11) "{" | 12 | L_CURLY@10..11 "{" |
13 | R_CURLY@[11; 12) "}" | 13 | R_CURLY@11..12 "}" |
14 | WHITESPACE@[12; 13) "\n" | 14 | WHITESPACE@12..13 "\n" |
15 | IMPL_DEF@[13; 33) | 15 | IMPL_DEF@13..33 |
16 | IMPL_KW@[13; 17) "impl" | 16 | IMPL_KW@13..17 "impl" |
17 | WHITESPACE@[17; 18) " " | 17 | WHITESPACE@17..18 " " |
18 | PATH_TYPE@[18; 24) | 18 | PATH_TYPE@18..24 |
19 | PATH@[18; 24) | 19 | PATH@18..24 |
20 | PATH_SEGMENT@[18; 24) | 20 | PATH_SEGMENT@18..24 |
21 | NAME_REF@[18; 24) | 21 | NAME_REF@18..24 |
22 | IDENT@[18; 24) "Trait1" | 22 | IDENT@18..24 "Trait1" |
23 | WHITESPACE@[24; 25) " " | 23 | WHITESPACE@24..25 " " |
24 | FOR_KW@[25; 28) "for" | 24 | FOR_KW@25..28 "for" |
25 | WHITESPACE@[28; 29) " " | 25 | WHITESPACE@28..29 " " |
26 | PATH_TYPE@[29; 30) | 26 | PATH_TYPE@29..30 |
27 | PATH@[29; 30) | 27 | PATH@29..30 |
28 | PATH_SEGMENT@[29; 30) | 28 | PATH_SEGMENT@29..30 |
29 | NAME_REF@[29; 30) | 29 | NAME_REF@29..30 |
30 | IDENT@[29; 30) "T" | 30 | IDENT@29..30 "T" |
31 | WHITESPACE@[30; 31) " " | 31 | WHITESPACE@30..31 " " |
32 | ITEM_LIST@[31; 33) | 32 | ITEM_LIST@31..33 |
33 | L_CURLY@[31; 32) "{" | 33 | L_CURLY@31..32 "{" |
34 | R_CURLY@[32; 33) "}" | 34 | R_CURLY@32..33 "}" |
35 | WHITESPACE@[33; 34) "\n" | 35 | WHITESPACE@33..34 "\n" |
36 | IMPL_DEF@[34; 38) | 36 | IMPL_DEF@34..38 |
37 | IMPL_KW@[34; 38) "impl" | 37 | IMPL_KW@34..38 "impl" |
38 | WHITESPACE@[38; 39) " " | 38 | WHITESPACE@38..39 " " |
39 | IMPL_DEF@[39; 54) | 39 | IMPL_DEF@39..54 |
40 | IMPL_KW@[39; 43) "impl" | 40 | IMPL_KW@39..43 "impl" |
41 | WHITESPACE@[43; 44) " " | 41 | WHITESPACE@43..44 " " |
42 | PATH_TYPE@[44; 51) | 42 | PATH_TYPE@44..51 |
43 | PATH@[44; 51) | 43 | PATH@44..51 |
44 | PATH_SEGMENT@[44; 51) | 44 | PATH_SEGMENT@44..51 |
45 | NAME_REF@[44; 51) | 45 | NAME_REF@44..51 |
46 | IDENT@[44; 51) "NotType" | 46 | IDENT@44..51 "NotType" |
47 | WHITESPACE@[51; 52) " " | 47 | WHITESPACE@51..52 " " |
48 | ITEM_LIST@[52; 54) | 48 | ITEM_LIST@52..54 |
49 | L_CURLY@[52; 53) "{" | 49 | L_CURLY@52..53 "{" |
50 | R_CURLY@[53; 54) "}" | 50 | R_CURLY@53..54 "}" |
51 | WHITESPACE@[54; 55) "\n" | 51 | WHITESPACE@54..55 "\n" |
52 | IMPL_DEF@[55; 70) | 52 | IMPL_DEF@55..70 |
53 | IMPL_KW@[55; 59) "impl" | 53 | IMPL_KW@55..59 "impl" |
54 | WHITESPACE@[59; 60) " " | 54 | WHITESPACE@59..60 " " |
55 | PATH_TYPE@[60; 66) | 55 | PATH_TYPE@60..66 |
56 | PATH@[60; 66) | 56 | PATH@60..66 |
57 | PATH_SEGMENT@[60; 66) | 57 | PATH_SEGMENT@60..66 |
58 | NAME_REF@[60; 66) | 58 | NAME_REF@60..66 |
59 | IDENT@[60; 66) "Trait2" | 59 | IDENT@60..66 "Trait2" |
60 | WHITESPACE@[66; 67) " " | 60 | WHITESPACE@66..67 " " |
61 | FOR_KW@[67; 70) "for" | 61 | FOR_KW@67..70 "for" |
62 | WHITESPACE@[70; 71) " " | 62 | WHITESPACE@70..71 " " |
63 | IMPL_DEF@[71; 86) | 63 | IMPL_DEF@71..86 |
64 | IMPL_KW@[71; 75) "impl" | 64 | IMPL_KW@71..75 "impl" |
65 | WHITESPACE@[75; 76) " " | 65 | WHITESPACE@75..76 " " |
66 | PATH_TYPE@[76; 83) | 66 | PATH_TYPE@76..83 |
67 | PATH@[76; 83) | 67 | PATH@76..83 |
68 | PATH_SEGMENT@[76; 83) | 68 | PATH_SEGMENT@76..83 |
69 | NAME_REF@[76; 83) | 69 | NAME_REF@76..83 |
70 | IDENT@[76; 83) "NotType" | 70 | IDENT@76..83 "NotType" |
71 | WHITESPACE@[83; 84) " " | 71 | WHITESPACE@83..84 " " |
72 | ITEM_LIST@[84; 86) | 72 | ITEM_LIST@84..86 |
73 | L_CURLY@[84; 85) "{" | 73 | L_CURLY@84..85 "{" |
74 | R_CURLY@[85; 86) "}" | 74 | R_CURLY@85..86 "}" |
75 | WHITESPACE@[86; 87) "\n" | 75 | WHITESPACE@86..87 "\n" |
76 | error [38; 38): expected trait or type | 76 | error 38..38: expected trait or type |
77 | error [38; 38): expected `{` | 77 | error 38..38: expected `{` |
78 | error [70; 70): expected trait or type | 78 | error 70..70: expected trait or type |
79 | error [70; 70): expected `{` | 79 | error 70..70: expected `{` |
diff --git a/crates/ra_syntax/test_data/parser/inline/err/0005_fn_pointer_type_missing_fn.rast b/crates/ra_syntax/test_data/parser/inline/err/0005_fn_pointer_type_missing_fn.rast index b8a494085..90202d764 100644 --- a/crates/ra_syntax/test_data/parser/inline/err/0005_fn_pointer_type_missing_fn.rast +++ b/crates/ra_syntax/test_data/parser/inline/err/0005_fn_pointer_type_missing_fn.rast | |||
@@ -1,23 +1,23 @@ | |||
1 | SOURCE_FILE@[0; 20) | 1 | SOURCE_FILE@0..20 |
2 | TYPE_ALIAS_DEF@[0; 15) | 2 | TYPE_ALIAS_DEF@0..15 |
3 | TYPE_KW@[0; 4) "type" | 3 | TYPE_KW@0..4 "type" |
4 | WHITESPACE@[4; 5) " " | 4 | WHITESPACE@4..5 " " |
5 | NAME@[5; 6) | 5 | NAME@5..6 |
6 | IDENT@[5; 6) "F" | 6 | IDENT@5..6 "F" |
7 | WHITESPACE@[6; 7) " " | 7 | WHITESPACE@6..7 " " |
8 | EQ@[7; 8) "=" | 8 | EQ@7..8 "=" |
9 | WHITESPACE@[8; 9) " " | 9 | WHITESPACE@8..9 " " |
10 | UNSAFE_KW@[9; 15) "unsafe" | 10 | UNSAFE_KW@9..15 "unsafe" |
11 | WHITESPACE@[15; 16) " " | 11 | WHITESPACE@15..16 " " |
12 | ERROR@[16; 17) | 12 | ERROR@16..17 |
13 | L_PAREN@[16; 17) "(" | 13 | L_PAREN@16..17 "(" |
14 | ERROR@[17; 18) | 14 | ERROR@17..18 |
15 | R_PAREN@[17; 18) ")" | 15 | R_PAREN@17..18 ")" |
16 | ERROR@[18; 19) | 16 | ERROR@18..19 |
17 | SEMICOLON@[18; 19) ";" | 17 | SEMICOLON@18..19 ";" |
18 | WHITESPACE@[19; 20) "\n" | 18 | WHITESPACE@19..20 "\n" |
19 | error [15; 15): expected `fn` | 19 | error 15..15: expected `fn` |
20 | error [15; 15): expected SEMICOLON | 20 | error 15..15: expected SEMICOLON |
21 | error [16; 16): expected an item | 21 | error 16..16: expected an item |
22 | error [17; 17): expected an item | 22 | error 17..17: expected an item |
23 | error [18; 18): expected an item | 23 | error 18..18: expected an item |
diff --git a/crates/ra_syntax/test_data/parser/inline/err/0006_unsafe_block_in_mod.rast b/crates/ra_syntax/test_data/parser/inline/err/0006_unsafe_block_in_mod.rast index 690acdca3..b901c17f7 100644 --- a/crates/ra_syntax/test_data/parser/inline/err/0006_unsafe_block_in_mod.rast +++ b/crates/ra_syntax/test_data/parser/inline/err/0006_unsafe_block_in_mod.rast | |||
@@ -1,37 +1,37 @@ | |||
1 | SOURCE_FILE@[0; 33) | 1 | SOURCE_FILE@0..33 |
2 | FN_DEF@[0; 10) | 2 | FN_DEF@0..10 |
3 | FN_KW@[0; 2) "fn" | 3 | FN_KW@0..2 "fn" |
4 | WHITESPACE@[2; 3) " " | 4 | WHITESPACE@2..3 " " |
5 | NAME@[3; 6) | 5 | NAME@3..6 |
6 | IDENT@[3; 6) "foo" | 6 | IDENT@3..6 "foo" |
7 | PARAM_LIST@[6; 8) | 7 | PARAM_LIST@6..8 |
8 | L_PAREN@[6; 7) "(" | 8 | L_PAREN@6..7 "(" |
9 | R_PAREN@[7; 8) ")" | 9 | R_PAREN@7..8 ")" |
10 | BLOCK_EXPR@[8; 10) | 10 | BLOCK_EXPR@8..10 |
11 | BLOCK@[8; 10) | 11 | BLOCK@8..10 |
12 | L_CURLY@[8; 9) "{" | 12 | L_CURLY@8..9 "{" |
13 | R_CURLY@[9; 10) "}" | 13 | R_CURLY@9..10 "}" |
14 | WHITESPACE@[10; 11) " " | 14 | WHITESPACE@10..11 " " |
15 | ERROR@[11; 17) | 15 | ERROR@11..17 |
16 | UNSAFE_KW@[11; 17) "unsafe" | 16 | UNSAFE_KW@11..17 "unsafe" |
17 | WHITESPACE@[17; 18) " " | 17 | WHITESPACE@17..18 " " |
18 | ERROR@[18; 21) | 18 | ERROR@18..21 |
19 | L_CURLY@[18; 19) "{" | 19 | L_CURLY@18..19 "{" |
20 | WHITESPACE@[19; 20) " " | 20 | WHITESPACE@19..20 " " |
21 | R_CURLY@[20; 21) "}" | 21 | R_CURLY@20..21 "}" |
22 | WHITESPACE@[21; 22) " " | 22 | WHITESPACE@21..22 " " |
23 | FN_DEF@[22; 32) | 23 | FN_DEF@22..32 |
24 | FN_KW@[22; 24) "fn" | 24 | FN_KW@22..24 "fn" |
25 | WHITESPACE@[24; 25) " " | 25 | WHITESPACE@24..25 " " |
26 | NAME@[25; 28) | 26 | NAME@25..28 |
27 | IDENT@[25; 28) "bar" | 27 | IDENT@25..28 "bar" |
28 | PARAM_LIST@[28; 30) | 28 | PARAM_LIST@28..30 |
29 | L_PAREN@[28; 29) "(" | 29 | L_PAREN@28..29 "(" |
30 | R_PAREN@[29; 30) ")" | 30 | R_PAREN@29..30 ")" |
31 | BLOCK_EXPR@[30; 32) | 31 | BLOCK_EXPR@30..32 |
32 | BLOCK@[30; 32) | 32 | BLOCK@30..32 |
33 | L_CURLY@[30; 31) "{" | 33 | L_CURLY@30..31 "{" |
34 | R_CURLY@[31; 32) "}" | 34 | R_CURLY@31..32 "}" |
35 | WHITESPACE@[32; 33) "\n" | 35 | WHITESPACE@32..33 "\n" |
36 | error [11; 11): expected an item | 36 | error 11..11: expected an item |
37 | error [18; 18): expected an item | 37 | error 18..18: expected an item |
diff --git a/crates/ra_syntax/test_data/parser/inline/err/0007_async_without_semicolon.rast b/crates/ra_syntax/test_data/parser/inline/err/0007_async_without_semicolon.rast index c3f7eb477..3f48b86ed 100644 --- a/crates/ra_syntax/test_data/parser/inline/err/0007_async_without_semicolon.rast +++ b/crates/ra_syntax/test_data/parser/inline/err/0007_async_without_semicolon.rast | |||
@@ -1,32 +1,32 @@ | |||
1 | SOURCE_FILE@[0; 30) | 1 | SOURCE_FILE@0..30 |
2 | FN_DEF@[0; 29) | 2 | FN_DEF@0..29 |
3 | FN_KW@[0; 2) "fn" | 3 | FN_KW@0..2 "fn" |
4 | WHITESPACE@[2; 3) " " | 4 | WHITESPACE@2..3 " " |
5 | NAME@[3; 6) | 5 | NAME@3..6 |
6 | IDENT@[3; 6) "foo" | 6 | IDENT@3..6 "foo" |
7 | PARAM_LIST@[6; 8) | 7 | PARAM_LIST@6..8 |
8 | L_PAREN@[6; 7) "(" | 8 | L_PAREN@6..7 "(" |
9 | R_PAREN@[7; 8) ")" | 9 | R_PAREN@7..8 ")" |
10 | WHITESPACE@[8; 9) " " | 10 | WHITESPACE@8..9 " " |
11 | BLOCK_EXPR@[9; 29) | 11 | BLOCK_EXPR@9..29 |
12 | BLOCK@[9; 29) | 12 | BLOCK@9..29 |
13 | L_CURLY@[9; 10) "{" | 13 | L_CURLY@9..10 "{" |
14 | WHITESPACE@[10; 11) " " | 14 | WHITESPACE@10..11 " " |
15 | LET_STMT@[11; 27) | 15 | LET_STMT@11..27 |
16 | LET_KW@[11; 14) "let" | 16 | LET_KW@11..14 "let" |
17 | WHITESPACE@[14; 15) " " | 17 | WHITESPACE@14..15 " " |
18 | PLACEHOLDER_PAT@[15; 16) | 18 | PLACEHOLDER_PAT@15..16 |
19 | UNDERSCORE@[15; 16) "_" | 19 | UNDERSCORE@15..16 "_" |
20 | WHITESPACE@[16; 17) " " | 20 | WHITESPACE@16..17 " " |
21 | EQ@[17; 18) "=" | 21 | EQ@17..18 "=" |
22 | WHITESPACE@[18; 19) " " | 22 | WHITESPACE@18..19 " " |
23 | BLOCK_EXPR@[19; 27) | 23 | BLOCK_EXPR@19..27 |
24 | ASYNC_KW@[19; 24) "async" | 24 | ASYNC_KW@19..24 "async" |
25 | WHITESPACE@[24; 25) " " | 25 | WHITESPACE@24..25 " " |
26 | BLOCK@[25; 27) | 26 | BLOCK@25..27 |
27 | L_CURLY@[25; 26) "{" | 27 | L_CURLY@25..26 "{" |
28 | R_CURLY@[26; 27) "}" | 28 | R_CURLY@26..27 "}" |
29 | WHITESPACE@[27; 28) " " | 29 | WHITESPACE@27..28 " " |
30 | R_CURLY@[28; 29) "}" | 30 | R_CURLY@28..29 "}" |
31 | WHITESPACE@[29; 30) "\n" | 31 | WHITESPACE@29..30 "\n" |
32 | error [27; 27): expected SEMICOLON | 32 | error 27..27: expected SEMICOLON |
diff --git a/crates/ra_syntax/test_data/parser/inline/err/0008_pub_expr.rast b/crates/ra_syntax/test_data/parser/inline/err/0008_pub_expr.rast index a345f8488..be02eaeeb 100644 --- a/crates/ra_syntax/test_data/parser/inline/err/0008_pub_expr.rast +++ b/crates/ra_syntax/test_data/parser/inline/err/0008_pub_expr.rast | |||
@@ -1,26 +1,26 @@ | |||
1 | SOURCE_FILE@[0; 21) | 1 | SOURCE_FILE@0..21 |
2 | FN_DEF@[0; 20) | 2 | FN_DEF@0..20 |
3 | FN_KW@[0; 2) "fn" | 3 | FN_KW@0..2 "fn" |
4 | WHITESPACE@[2; 3) " " | 4 | WHITESPACE@2..3 " " |
5 | NAME@[3; 6) | 5 | NAME@3..6 |
6 | IDENT@[3; 6) "foo" | 6 | IDENT@3..6 "foo" |
7 | PARAM_LIST@[6; 8) | 7 | PARAM_LIST@6..8 |
8 | L_PAREN@[6; 7) "(" | 8 | L_PAREN@6..7 "(" |
9 | R_PAREN@[7; 8) ")" | 9 | R_PAREN@7..8 ")" |
10 | WHITESPACE@[8; 9) " " | 10 | WHITESPACE@8..9 " " |
11 | BLOCK_EXPR@[9; 20) | 11 | BLOCK_EXPR@9..20 |
12 | BLOCK@[9; 20) | 12 | BLOCK@9..20 |
13 | L_CURLY@[9; 10) "{" | 13 | L_CURLY@9..10 "{" |
14 | WHITESPACE@[10; 11) " " | 14 | WHITESPACE@10..11 " " |
15 | ERROR@[11; 14) | 15 | ERROR@11..14 |
16 | VISIBILITY@[11; 14) | 16 | VISIBILITY@11..14 |
17 | PUB_KW@[11; 14) "pub" | 17 | PUB_KW@11..14 "pub" |
18 | WHITESPACE@[14; 15) " " | 18 | WHITESPACE@14..15 " " |
19 | EXPR_STMT@[15; 18) | 19 | EXPR_STMT@15..18 |
20 | LITERAL@[15; 17) | 20 | LITERAL@15..17 |
21 | INT_NUMBER@[15; 17) "92" | 21 | INT_NUMBER@15..17 "92" |
22 | SEMICOLON@[17; 18) ";" | 22 | SEMICOLON@17..18 ";" |
23 | WHITESPACE@[18; 19) " " | 23 | WHITESPACE@18..19 " " |
24 | R_CURLY@[19; 20) "}" | 24 | R_CURLY@19..20 "}" |
25 | WHITESPACE@[20; 21) "\n" | 25 | WHITESPACE@20..21 "\n" |
26 | error [14; 14): expected an item | 26 | error 14..14: expected an item |
diff --git a/crates/ra_syntax/test_data/parser/inline/err/0009_attr_on_expr_not_allowed.rast b/crates/ra_syntax/test_data/parser/inline/err/0009_attr_on_expr_not_allowed.rast index c3a70147a..b344e4f7f 100644 --- a/crates/ra_syntax/test_data/parser/inline/err/0009_attr_on_expr_not_allowed.rast +++ b/crates/ra_syntax/test_data/parser/inline/err/0009_attr_on_expr_not_allowed.rast | |||
@@ -1,61 +1,61 @@ | |||
1 | SOURCE_FILE@[0; 48) | 1 | SOURCE_FILE@0..48 |
2 | FN_DEF@[0; 47) | 2 | FN_DEF@0..47 |
3 | FN_KW@[0; 2) "fn" | 3 | FN_KW@0..2 "fn" |
4 | WHITESPACE@[2; 3) " " | 4 | WHITESPACE@2..3 " " |
5 | NAME@[3; 6) | 5 | NAME@3..6 |
6 | IDENT@[3; 6) "foo" | 6 | IDENT@3..6 "foo" |
7 | PARAM_LIST@[6; 8) | 7 | PARAM_LIST@6..8 |
8 | L_PAREN@[6; 7) "(" | 8 | L_PAREN@6..7 "(" |
9 | R_PAREN@[7; 8) ")" | 9 | R_PAREN@7..8 ")" |
10 | WHITESPACE@[8; 9) " " | 10 | WHITESPACE@8..9 " " |
11 | BLOCK_EXPR@[9; 47) | 11 | BLOCK_EXPR@9..47 |
12 | BLOCK@[9; 47) | 12 | BLOCK@9..47 |
13 | L_CURLY@[9; 10) "{" | 13 | L_CURLY@9..10 "{" |
14 | WHITESPACE@[10; 14) "\n " | 14 | WHITESPACE@10..14 "\n " |
15 | EXPR_STMT@[14; 25) | 15 | EXPR_STMT@14..25 |
16 | ATTR@[14; 18) | 16 | ATTR@14..18 |
17 | POUND@[14; 15) "#" | 17 | POUND@14..15 "#" |
18 | L_BRACK@[15; 16) "[" | 18 | L_BRACK@15..16 "[" |
19 | PATH@[16; 17) | 19 | PATH@16..17 |
20 | PATH_SEGMENT@[16; 17) | 20 | PATH_SEGMENT@16..17 |
21 | NAME_REF@[16; 17) | 21 | NAME_REF@16..17 |
22 | IDENT@[16; 17) "A" | 22 | IDENT@16..17 "A" |
23 | R_BRACK@[17; 18) "]" | 23 | R_BRACK@17..18 "]" |
24 | WHITESPACE@[18; 19) " " | 24 | WHITESPACE@18..19 " " |
25 | BIN_EXPR@[19; 24) | 25 | BIN_EXPR@19..24 |
26 | LITERAL@[19; 20) | 26 | LITERAL@19..20 |
27 | INT_NUMBER@[19; 20) "1" | 27 | INT_NUMBER@19..20 "1" |
28 | WHITESPACE@[20; 21) " " | 28 | WHITESPACE@20..21 " " |
29 | PLUS@[21; 22) "+" | 29 | PLUS@21..22 "+" |
30 | WHITESPACE@[22; 23) " " | 30 | WHITESPACE@22..23 " " |
31 | LITERAL@[23; 24) | 31 | LITERAL@23..24 |
32 | INT_NUMBER@[23; 24) "2" | 32 | INT_NUMBER@23..24 "2" |
33 | SEMICOLON@[24; 25) ";" | 33 | SEMICOLON@24..25 ";" |
34 | WHITESPACE@[25; 29) "\n " | 34 | WHITESPACE@25..29 "\n " |
35 | EXPR_STMT@[29; 45) | 35 | EXPR_STMT@29..45 |
36 | ATTR@[29; 33) | 36 | ATTR@29..33 |
37 | POUND@[29; 30) "#" | 37 | POUND@29..30 "#" |
38 | L_BRACK@[30; 31) "[" | 38 | L_BRACK@30..31 "[" |
39 | PATH@[31; 32) | 39 | PATH@31..32 |
40 | PATH_SEGMENT@[31; 32) | 40 | PATH_SEGMENT@31..32 |
41 | NAME_REF@[31; 32) | 41 | NAME_REF@31..32 |
42 | IDENT@[31; 32) "B" | 42 | IDENT@31..32 "B" |
43 | R_BRACK@[32; 33) "]" | 43 | R_BRACK@32..33 "]" |
44 | WHITESPACE@[33; 34) " " | 44 | WHITESPACE@33..34 " " |
45 | IF_EXPR@[34; 44) | 45 | IF_EXPR@34..44 |
46 | IF_KW@[34; 36) "if" | 46 | IF_KW@34..36 "if" |
47 | WHITESPACE@[36; 37) " " | 47 | WHITESPACE@36..37 " " |
48 | CONDITION@[37; 41) | 48 | CONDITION@37..41 |
49 | LITERAL@[37; 41) | 49 | LITERAL@37..41 |
50 | TRUE_KW@[37; 41) "true" | 50 | TRUE_KW@37..41 "true" |
51 | WHITESPACE@[41; 42) " " | 51 | WHITESPACE@41..42 " " |
52 | BLOCK_EXPR@[42; 44) | 52 | BLOCK_EXPR@42..44 |
53 | BLOCK@[42; 44) | 53 | BLOCK@42..44 |
54 | L_CURLY@[42; 43) "{" | 54 | L_CURLY@42..43 "{" |
55 | R_CURLY@[43; 44) "}" | 55 | R_CURLY@43..44 "}" |
56 | SEMICOLON@[44; 45) ";" | 56 | SEMICOLON@44..45 ";" |
57 | WHITESPACE@[45; 46) "\n" | 57 | WHITESPACE@45..46 "\n" |
58 | R_CURLY@[46; 47) "}" | 58 | R_CURLY@46..47 "}" |
59 | WHITESPACE@[47; 48) "\n" | 59 | WHITESPACE@47..48 "\n" |
60 | error [24; 24): attributes are not allowed on BIN_EXPR | 60 | error 24..24: attributes are not allowed on BIN_EXPR |
61 | error [44; 44): attributes are not allowed on IF_EXPR | 61 | error 44..44: attributes are not allowed on IF_EXPR |
diff --git a/crates/ra_syntax/test_data/parser/inline/err/0010_bad_tuple_index_expr.rast b/crates/ra_syntax/test_data/parser/inline/err/0010_bad_tuple_index_expr.rast index 61d737abe..5339a84d7 100644 --- a/crates/ra_syntax/test_data/parser/inline/err/0010_bad_tuple_index_expr.rast +++ b/crates/ra_syntax/test_data/parser/inline/err/0010_bad_tuple_index_expr.rast | |||
@@ -1,53 +1,53 @@ | |||
1 | SOURCE_FILE@[0; 47) | 1 | SOURCE_FILE@0..47 |
2 | FN_DEF@[0; 46) | 2 | FN_DEF@0..46 |
3 | FN_KW@[0; 2) "fn" | 3 | FN_KW@0..2 "fn" |
4 | WHITESPACE@[2; 3) " " | 4 | WHITESPACE@2..3 " " |
5 | NAME@[3; 6) | 5 | NAME@3..6 |
6 | IDENT@[3; 6) "foo" | 6 | IDENT@3..6 "foo" |
7 | PARAM_LIST@[6; 8) | 7 | PARAM_LIST@6..8 |
8 | L_PAREN@[6; 7) "(" | 8 | L_PAREN@6..7 "(" |
9 | R_PAREN@[7; 8) ")" | 9 | R_PAREN@7..8 ")" |
10 | WHITESPACE@[8; 9) " " | 10 | WHITESPACE@8..9 " " |
11 | BLOCK_EXPR@[9; 46) | 11 | BLOCK_EXPR@9..46 |
12 | BLOCK@[9; 46) | 12 | BLOCK@9..46 |
13 | L_CURLY@[9; 10) "{" | 13 | L_CURLY@9..10 "{" |
14 | WHITESPACE@[10; 15) "\n " | 14 | WHITESPACE@10..15 "\n " |
15 | EXPR_STMT@[15; 20) | 15 | EXPR_STMT@15..20 |
16 | FIELD_EXPR@[15; 19) | 16 | FIELD_EXPR@15..19 |
17 | PATH_EXPR@[15; 16) | 17 | PATH_EXPR@15..16 |
18 | PATH@[15; 16) | 18 | PATH@15..16 |
19 | PATH_SEGMENT@[15; 16) | 19 | PATH_SEGMENT@15..16 |
20 | NAME_REF@[15; 16) | 20 | NAME_REF@15..16 |
21 | IDENT@[15; 16) "x" | 21 | IDENT@15..16 "x" |
22 | DOT@[16; 17) "." | 22 | DOT@16..17 "." |
23 | FLOAT_NUMBER@[17; 19) "0." | 23 | FLOAT_NUMBER@17..19 "0." |
24 | SEMICOLON@[19; 20) ";" | 24 | SEMICOLON@19..20 ";" |
25 | WHITESPACE@[20; 25) "\n " | 25 | WHITESPACE@20..25 "\n " |
26 | EXPR_STMT@[25; 32) | 26 | EXPR_STMT@25..32 |
27 | FIELD_EXPR@[25; 31) | 27 | FIELD_EXPR@25..31 |
28 | PATH_EXPR@[25; 26) | 28 | PATH_EXPR@25..26 |
29 | PATH@[25; 26) | 29 | PATH@25..26 |
30 | PATH_SEGMENT@[25; 26) | 30 | PATH_SEGMENT@25..26 |
31 | NAME_REF@[25; 26) | 31 | NAME_REF@25..26 |
32 | IDENT@[25; 26) "x" | 32 | IDENT@25..26 "x" |
33 | DOT@[26; 27) "." | 33 | DOT@26..27 "." |
34 | NAME_REF@[27; 31) | 34 | NAME_REF@27..31 |
35 | INT_NUMBER@[27; 31) "1i32" | 35 | INT_NUMBER@27..31 "1i32" |
36 | SEMICOLON@[31; 32) ";" | 36 | SEMICOLON@31..32 ";" |
37 | WHITESPACE@[32; 37) "\n " | 37 | WHITESPACE@32..37 "\n " |
38 | EXPR_STMT@[37; 44) | 38 | EXPR_STMT@37..44 |
39 | FIELD_EXPR@[37; 43) | 39 | FIELD_EXPR@37..43 |
40 | PATH_EXPR@[37; 38) | 40 | PATH_EXPR@37..38 |
41 | PATH@[37; 38) | 41 | PATH@37..38 |
42 | PATH_SEGMENT@[37; 38) | 42 | PATH_SEGMENT@37..38 |
43 | NAME_REF@[37; 38) | 43 | NAME_REF@37..38 |
44 | IDENT@[37; 38) "x" | 44 | IDENT@37..38 "x" |
45 | DOT@[38; 39) "." | 45 | DOT@38..39 "." |
46 | NAME_REF@[39; 43) | 46 | NAME_REF@39..43 |
47 | INT_NUMBER@[39; 43) "0x01" | 47 | INT_NUMBER@39..43 "0x01" |
48 | SEMICOLON@[43; 44) ";" | 48 | SEMICOLON@43..44 ";" |
49 | WHITESPACE@[44; 45) "\n" | 49 | WHITESPACE@44..45 "\n" |
50 | R_CURLY@[45; 46) "}" | 50 | R_CURLY@45..46 "}" |
51 | WHITESPACE@[46; 47) "\n" | 51 | WHITESPACE@46..47 "\n" |
52 | error [27; 31): Tuple (struct) field access is only allowed through decimal integers with no underscores or suffix | 52 | error 27..31: Tuple (struct) field access is only allowed through decimal integers with no underscores or suffix |
53 | error [39; 43): Tuple (struct) field access is only allowed through decimal integers with no underscores or suffix | 53 | error 39..43: Tuple (struct) field access is only allowed through decimal integers with no underscores or suffix |
diff --git a/crates/ra_syntax/test_data/parser/inline/err/0010_wrong_order_fns.rast b/crates/ra_syntax/test_data/parser/inline/err/0010_wrong_order_fns.rast index f6ac0feaf..20ed39046 100644 --- a/crates/ra_syntax/test_data/parser/inline/err/0010_wrong_order_fns.rast +++ b/crates/ra_syntax/test_data/parser/inline/err/0010_wrong_order_fns.rast | |||
@@ -1,41 +1,41 @@ | |||
1 | SOURCE_FILE@[0; 50) | 1 | SOURCE_FILE@0..50 |
2 | ERROR@[0; 6) | 2 | ERROR@0..6 |
3 | UNSAFE_KW@[0; 6) "unsafe" | 3 | UNSAFE_KW@0..6 "unsafe" |
4 | WHITESPACE@[6; 7) " " | 4 | WHITESPACE@6..7 " " |
5 | FN_DEF@[7; 24) | 5 | FN_DEF@7..24 |
6 | ASYNC_KW@[7; 12) "async" | 6 | ASYNC_KW@7..12 "async" |
7 | WHITESPACE@[12; 13) " " | 7 | WHITESPACE@12..13 " " |
8 | FN_KW@[13; 15) "fn" | 8 | FN_KW@13..15 "fn" |
9 | WHITESPACE@[15; 16) " " | 9 | WHITESPACE@15..16 " " |
10 | NAME@[16; 19) | 10 | NAME@16..19 |
11 | IDENT@[16; 19) "foo" | 11 | IDENT@16..19 "foo" |
12 | PARAM_LIST@[19; 21) | 12 | PARAM_LIST@19..21 |
13 | L_PAREN@[19; 20) "(" | 13 | L_PAREN@19..20 "(" |
14 | R_PAREN@[20; 21) ")" | 14 | R_PAREN@20..21 ")" |
15 | WHITESPACE@[21; 22) " " | 15 | WHITESPACE@21..22 " " |
16 | BLOCK_EXPR@[22; 24) | 16 | BLOCK_EXPR@22..24 |
17 | BLOCK@[22; 24) | 17 | BLOCK@22..24 |
18 | L_CURLY@[22; 23) "{" | 18 | L_CURLY@22..23 "{" |
19 | R_CURLY@[23; 24) "}" | 19 | R_CURLY@23..24 "}" |
20 | WHITESPACE@[24; 25) "\n" | 20 | WHITESPACE@24..25 "\n" |
21 | ERROR@[25; 31) | 21 | ERROR@25..31 |
22 | UNSAFE_KW@[25; 31) "unsafe" | 22 | UNSAFE_KW@25..31 "unsafe" |
23 | WHITESPACE@[31; 32) " " | 23 | WHITESPACE@31..32 " " |
24 | FN_DEF@[32; 49) | 24 | FN_DEF@32..49 |
25 | CONST_KW@[32; 37) "const" | 25 | CONST_KW@32..37 "const" |
26 | WHITESPACE@[37; 38) " " | 26 | WHITESPACE@37..38 " " |
27 | FN_KW@[38; 40) "fn" | 27 | FN_KW@38..40 "fn" |
28 | WHITESPACE@[40; 41) " " | 28 | WHITESPACE@40..41 " " |
29 | NAME@[41; 44) | 29 | NAME@41..44 |
30 | IDENT@[41; 44) "bar" | 30 | IDENT@41..44 "bar" |
31 | PARAM_LIST@[44; 46) | 31 | PARAM_LIST@44..46 |
32 | L_PAREN@[44; 45) "(" | 32 | L_PAREN@44..45 "(" |
33 | R_PAREN@[45; 46) ")" | 33 | R_PAREN@45..46 ")" |
34 | WHITESPACE@[46; 47) " " | 34 | WHITESPACE@46..47 " " |
35 | BLOCK_EXPR@[47; 49) | 35 | BLOCK_EXPR@47..49 |
36 | BLOCK@[47; 49) | 36 | BLOCK@47..49 |
37 | L_CURLY@[47; 48) "{" | 37 | L_CURLY@47..48 "{" |
38 | R_CURLY@[48; 49) "}" | 38 | R_CURLY@48..49 "}" |
39 | WHITESPACE@[49; 50) "\n" | 39 | WHITESPACE@49..50 "\n" |
40 | error [6; 6): expected existential, fn, trait or impl | 40 | error 6..6: expected existential, fn, trait or impl |
41 | error [31; 31): expected existential, fn, trait or impl | 41 | error 31..31: expected existential, fn, trait or impl |
diff --git a/crates/ra_syntax/test_data/parser/inline/err/0013_static_underscore.rast b/crates/ra_syntax/test_data/parser/inline/err/0013_static_underscore.rast index 62fca0a39..ebcc26e0d 100644 --- a/crates/ra_syntax/test_data/parser/inline/err/0013_static_underscore.rast +++ b/crates/ra_syntax/test_data/parser/inline/err/0013_static_underscore.rast | |||
@@ -1,21 +1,21 @@ | |||
1 | SOURCE_FILE@[0; 19) | 1 | SOURCE_FILE@0..19 |
2 | STATIC_DEF@[0; 18) | 2 | STATIC_DEF@0..18 |
3 | STATIC_KW@[0; 6) "static" | 3 | STATIC_KW@0..6 "static" |
4 | WHITESPACE@[6; 7) " " | 4 | WHITESPACE@6..7 " " |
5 | ERROR@[7; 8) | 5 | ERROR@7..8 |
6 | UNDERSCORE@[7; 8) "_" | 6 | UNDERSCORE@7..8 "_" |
7 | COLON@[8; 9) ":" | 7 | COLON@8..9 ":" |
8 | WHITESPACE@[9; 10) " " | 8 | WHITESPACE@9..10 " " |
9 | PATH_TYPE@[10; 13) | 9 | PATH_TYPE@10..13 |
10 | PATH@[10; 13) | 10 | PATH@10..13 |
11 | PATH_SEGMENT@[10; 13) | 11 | PATH_SEGMENT@10..13 |
12 | NAME_REF@[10; 13) | 12 | NAME_REF@10..13 |
13 | IDENT@[10; 13) "i32" | 13 | IDENT@10..13 "i32" |
14 | WHITESPACE@[13; 14) " " | 14 | WHITESPACE@13..14 " " |
15 | EQ@[14; 15) "=" | 15 | EQ@14..15 "=" |
16 | WHITESPACE@[15; 16) " " | 16 | WHITESPACE@15..16 " " |
17 | LITERAL@[16; 17) | 17 | LITERAL@16..17 |
18 | INT_NUMBER@[16; 17) "5" | 18 | INT_NUMBER@16..17 "5" |
19 | SEMICOLON@[17; 18) ";" | 19 | SEMICOLON@17..18 ";" |
20 | WHITESPACE@[18; 19) "\n" | 20 | WHITESPACE@18..19 "\n" |
21 | error [7; 7): expected a name | 21 | error 7..7: expected a name |
diff --git a/crates/ra_syntax/test_data/parser/inline/err/0014_default_fn_type.rast b/crates/ra_syntax/test_data/parser/inline/err/0014_default_fn_type.rast index aa960d3ef..88567263e 100644 --- a/crates/ra_syntax/test_data/parser/inline/err/0014_default_fn_type.rast +++ b/crates/ra_syntax/test_data/parser/inline/err/0014_default_fn_type.rast | |||
@@ -1,59 +1,59 @@ | |||
1 | SOURCE_FILE@[0; 62) | 1 | SOURCE_FILE@0..62 |
2 | TRAIT_DEF@[0; 61) | 2 | TRAIT_DEF@0..61 |
3 | TRAIT_KW@[0; 5) "trait" | 3 | TRAIT_KW@0..5 "trait" |
4 | WHITESPACE@[5; 6) " " | 4 | WHITESPACE@5..6 " " |
5 | NAME@[6; 7) | 5 | NAME@6..7 |
6 | IDENT@[6; 7) "T" | 6 | IDENT@6..7 "T" |
7 | WHITESPACE@[7; 8) " " | 7 | WHITESPACE@7..8 " " |
8 | ITEM_LIST@[8; 61) | 8 | ITEM_LIST@8..61 |
9 | L_CURLY@[8; 9) "{" | 9 | L_CURLY@8..9 "{" |
10 | WHITESPACE@[9; 14) "\n " | 10 | WHITESPACE@9..14 "\n " |
11 | MACRO_CALL@[14; 21) | 11 | MACRO_CALL@14..21 |
12 | PATH@[14; 21) | 12 | PATH@14..21 |
13 | PATH_SEGMENT@[14; 21) | 13 | PATH_SEGMENT@14..21 |
14 | NAME_REF@[14; 21) | 14 | NAME_REF@14..21 |
15 | IDENT@[14; 21) "default" | 15 | IDENT@14..21 "default" |
16 | WHITESPACE@[21; 22) " " | 16 | WHITESPACE@21..22 " " |
17 | TYPE_ALIAS_DEF@[22; 35) | 17 | TYPE_ALIAS_DEF@22..35 |
18 | TYPE_KW@[22; 26) "type" | 18 | TYPE_KW@22..26 "type" |
19 | WHITESPACE@[26; 27) " " | 19 | WHITESPACE@26..27 " " |
20 | NAME@[27; 28) | 20 | NAME@27..28 |
21 | IDENT@[27; 28) "T" | 21 | IDENT@27..28 "T" |
22 | WHITESPACE@[28; 29) " " | 22 | WHITESPACE@28..29 " " |
23 | EQ@[29; 30) "=" | 23 | EQ@29..30 "=" |
24 | WHITESPACE@[30; 31) " " | 24 | WHITESPACE@30..31 " " |
25 | PATH_TYPE@[31; 34) | 25 | PATH_TYPE@31..34 |
26 | PATH@[31; 34) | 26 | PATH@31..34 |
27 | PATH_SEGMENT@[31; 34) | 27 | PATH_SEGMENT@31..34 |
28 | NAME_REF@[31; 34) | 28 | NAME_REF@31..34 |
29 | IDENT@[31; 34) "Bar" | 29 | IDENT@31..34 "Bar" |
30 | SEMICOLON@[34; 35) ";" | 30 | SEMICOLON@34..35 ";" |
31 | WHITESPACE@[35; 40) "\n " | 31 | WHITESPACE@35..40 "\n " |
32 | MACRO_CALL@[40; 47) | 32 | MACRO_CALL@40..47 |
33 | PATH@[40; 47) | 33 | PATH@40..47 |
34 | PATH_SEGMENT@[40; 47) | 34 | PATH_SEGMENT@40..47 |
35 | NAME_REF@[40; 47) | 35 | NAME_REF@40..47 |
36 | IDENT@[40; 47) "default" | 36 | IDENT@40..47 "default" |
37 | WHITESPACE@[47; 48) " " | 37 | WHITESPACE@47..48 " " |
38 | FN_DEF@[48; 59) | 38 | FN_DEF@48..59 |
39 | FN_KW@[48; 50) "fn" | 39 | FN_KW@48..50 "fn" |
40 | WHITESPACE@[50; 51) " " | 40 | WHITESPACE@50..51 " " |
41 | NAME@[51; 54) | 41 | NAME@51..54 |
42 | IDENT@[51; 54) "foo" | 42 | IDENT@51..54 "foo" |
43 | PARAM_LIST@[54; 56) | 43 | PARAM_LIST@54..56 |
44 | L_PAREN@[54; 55) "(" | 44 | L_PAREN@54..55 "(" |
45 | R_PAREN@[55; 56) ")" | 45 | R_PAREN@55..56 ")" |
46 | WHITESPACE@[56; 57) " " | 46 | WHITESPACE@56..57 " " |
47 | BLOCK_EXPR@[57; 59) | 47 | BLOCK_EXPR@57..59 |
48 | BLOCK@[57; 59) | 48 | BLOCK@57..59 |
49 | L_CURLY@[57; 58) "{" | 49 | L_CURLY@57..58 "{" |
50 | R_CURLY@[58; 59) "}" | 50 | R_CURLY@58..59 "}" |
51 | WHITESPACE@[59; 60) "\n" | 51 | WHITESPACE@59..60 "\n" |
52 | R_CURLY@[60; 61) "}" | 52 | R_CURLY@60..61 "}" |
53 | WHITESPACE@[61; 62) "\n" | 53 | WHITESPACE@61..62 "\n" |
54 | error [21; 21): expected BANG | 54 | error 21..21: expected BANG |
55 | error [21; 21): expected `{`, `[`, `(` | 55 | error 21..21: expected `{`, `[`, `(` |
56 | error [21; 21): expected SEMICOLON | 56 | error 21..21: expected SEMICOLON |
57 | error [47; 47): expected BANG | 57 | error 47..47: expected BANG |
58 | error [47; 47): expected `{`, `[`, `(` | 58 | error 47..47: expected `{`, `[`, `(` |
59 | error [47; 47): expected SEMICOLON | 59 | error 47..47: expected SEMICOLON |
diff --git a/crates/ra_syntax/test_data/parser/inline/err/0014_record_literal_before_ellipsis_recovery.rast b/crates/ra_syntax/test_data/parser/inline/err/0014_record_literal_before_ellipsis_recovery.rast index 75043c9c0..578befa56 100644 --- a/crates/ra_syntax/test_data/parser/inline/err/0014_record_literal_before_ellipsis_recovery.rast +++ b/crates/ra_syntax/test_data/parser/inline/err/0014_record_literal_before_ellipsis_recovery.rast | |||
@@ -1,49 +1,49 @@ | |||
1 | SOURCE_FILE@[0; 45) | 1 | SOURCE_FILE@0..45 |
2 | FN_DEF@[0; 44) | 2 | FN_DEF@0..44 |
3 | FN_KW@[0; 2) "fn" | 3 | FN_KW@0..2 "fn" |
4 | WHITESPACE@[2; 3) " " | 4 | WHITESPACE@2..3 " " |
5 | NAME@[3; 7) | 5 | NAME@3..7 |
6 | IDENT@[3; 7) "main" | 6 | IDENT@3..7 "main" |
7 | PARAM_LIST@[7; 9) | 7 | PARAM_LIST@7..9 |
8 | L_PAREN@[7; 8) "(" | 8 | L_PAREN@7..8 "(" |
9 | R_PAREN@[8; 9) ")" | 9 | R_PAREN@8..9 ")" |
10 | WHITESPACE@[9; 10) " " | 10 | WHITESPACE@9..10 " " |
11 | BLOCK_EXPR@[10; 44) | 11 | BLOCK_EXPR@10..44 |
12 | BLOCK@[10; 44) | 12 | BLOCK@10..44 |
13 | L_CURLY@[10; 11) "{" | 13 | L_CURLY@10..11 "{" |
14 | WHITESPACE@[11; 16) "\n " | 14 | WHITESPACE@11..16 "\n " |
15 | RECORD_LIT@[16; 42) | 15 | RECORD_LIT@16..42 |
16 | PATH@[16; 17) | 16 | PATH@16..17 |
17 | PATH_SEGMENT@[16; 17) | 17 | PATH_SEGMENT@16..17 |
18 | NAME_REF@[16; 17) | 18 | NAME_REF@16..17 |
19 | IDENT@[16; 17) "S" | 19 | IDENT@16..17 "S" |
20 | WHITESPACE@[17; 18) " " | 20 | WHITESPACE@17..18 " " |
21 | RECORD_FIELD_LIST@[18; 42) | 21 | RECORD_FIELD_LIST@18..42 |
22 | L_CURLY@[18; 19) "{" | 22 | L_CURLY@18..19 "{" |
23 | WHITESPACE@[19; 20) " " | 23 | WHITESPACE@19..20 " " |
24 | RECORD_FIELD@[20; 40) | 24 | RECORD_FIELD@20..40 |
25 | NAME_REF@[20; 25) | 25 | NAME_REF@20..25 |
26 | IDENT@[20; 25) "field" | 26 | IDENT@20..25 "field" |
27 | WHITESPACE@[25; 26) " " | 27 | WHITESPACE@25..26 " " |
28 | RANGE_EXPR@[26; 40) | 28 | RANGE_EXPR@26..40 |
29 | DOT2@[26; 28) ".." | 29 | DOT2@26..28 ".." |
30 | CALL_EXPR@[28; 40) | 30 | CALL_EXPR@28..40 |
31 | PATH_EXPR@[28; 38) | 31 | PATH_EXPR@28..38 |
32 | PATH@[28; 38) | 32 | PATH@28..38 |
33 | PATH@[28; 29) | 33 | PATH@28..29 |
34 | PATH_SEGMENT@[28; 29) | 34 | PATH_SEGMENT@28..29 |
35 | NAME_REF@[28; 29) | 35 | NAME_REF@28..29 |
36 | IDENT@[28; 29) "S" | 36 | IDENT@28..29 "S" |
37 | COLON2@[29; 31) "::" | 37 | COLON2@29..31 "::" |
38 | PATH_SEGMENT@[31; 38) | 38 | PATH_SEGMENT@31..38 |
39 | NAME_REF@[31; 38) | 39 | NAME_REF@31..38 |
40 | IDENT@[31; 38) "default" | 40 | IDENT@31..38 "default" |
41 | ARG_LIST@[38; 40) | 41 | ARG_LIST@38..40 |
42 | L_PAREN@[38; 39) "(" | 42 | L_PAREN@38..39 "(" |
43 | R_PAREN@[39; 40) ")" | 43 | R_PAREN@39..40 ")" |
44 | WHITESPACE@[40; 41) " " | 44 | WHITESPACE@40..41 " " |
45 | R_CURLY@[41; 42) "}" | 45 | R_CURLY@41..42 "}" |
46 | WHITESPACE@[42; 43) "\n" | 46 | WHITESPACE@42..43 "\n" |
47 | R_CURLY@[43; 44) "}" | 47 | R_CURLY@43..44 "}" |
48 | WHITESPACE@[44; 45) "\n" | 48 | WHITESPACE@44..45 "\n" |
49 | error [25; 25): expected COLON | 49 | error 25..25: expected COLON |