diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline')
18 files changed, 59 insertions, 59 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0008_path_part.txt b/crates/ra_syntax/test_data/parser/inline/ok/0008_path_part.txt index 0c6be485e..4108762e5 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0008_path_part.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0008_path_part.txt | |||
@@ -52,13 +52,13 @@ SOURCE_FILE@[0; 103) | |||
52 | LET_STMT@[58; 78) | 52 | LET_STMT@[58; 78) |
53 | LET_KW@[58; 61) "let" | 53 | LET_KW@[58; 61) "let" |
54 | WHITESPACE@[61; 62) " " | 54 | WHITESPACE@[61; 62) " " |
55 | STRUCT_PAT@[62; 72) | 55 | RECORD_PAT@[62; 72) |
56 | PATH@[62; 65) | 56 | PATH@[62; 65) |
57 | PATH_SEGMENT@[62; 65) | 57 | PATH_SEGMENT@[62; 65) |
58 | NAME_REF@[62; 65) | 58 | NAME_REF@[62; 65) |
59 | IDENT@[62; 65) "Bar" | 59 | IDENT@[62; 65) "Bar" |
60 | WHITESPACE@[65; 66) " " | 60 | WHITESPACE@[65; 66) " " |
61 | FIELD_PAT_LIST@[66; 72) | 61 | RECORD_FIELD_PAT_LIST@[66; 72) |
62 | L_CURLY@[66; 67) "{" | 62 | L_CURLY@[66; 67) "{" |
63 | WHITESPACE@[67; 68) " " | 63 | WHITESPACE@[67; 68) " " |
64 | DOTDOT@[68; 70) ".." | 64 | DOTDOT@[68; 70) ".." |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0040_crate_keyword_vis.txt b/crates/ra_syntax/test_data/parser/inline/ok/0040_crate_keyword_vis.txt index fb8246174..882e4a9ae 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0040_crate_keyword_vis.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0040_crate_keyword_vis.txt | |||
@@ -22,10 +22,10 @@ SOURCE_FILE@[0; 71) | |||
22 | NAME@[27; 28) | 22 | NAME@[27; 28) |
23 | IDENT@[27; 28) "S" | 23 | IDENT@[27; 28) "S" |
24 | WHITESPACE@[28; 29) " " | 24 | WHITESPACE@[28; 29) " " |
25 | NAMED_FIELD_DEF_LIST@[29; 49) | 25 | RECORD_FIELD_DEF_LIST@[29; 49) |
26 | L_CURLY@[29; 30) "{" | 26 | L_CURLY@[29; 30) "{" |
27 | WHITESPACE@[30; 31) " " | 27 | WHITESPACE@[30; 31) " " |
28 | NAMED_FIELD_DEF@[31; 47) | 28 | RECORD_FIELD_DEF@[31; 47) |
29 | VISIBILITY@[31; 36) | 29 | VISIBILITY@[31; 36) |
30 | CRATE_KW@[31; 36) "crate" | 30 | CRATE_KW@[31; 36) "crate" |
31 | WHITESPACE@[36; 37) " " | 31 | WHITESPACE@[36; 37) " " |
@@ -46,9 +46,9 @@ SOURCE_FILE@[0; 71) | |||
46 | WHITESPACE@[56; 57) " " | 46 | WHITESPACE@[56; 57) " " |
47 | NAME@[57; 58) | 47 | NAME@[57; 58) |
48 | IDENT@[57; 58) "T" | 48 | IDENT@[57; 58) "T" |
49 | POS_FIELD_DEF_LIST@[58; 69) | 49 | TUPLE_FIELD_DEF_LIST@[58; 69) |
50 | L_PAREN@[58; 59) "(" | 50 | L_PAREN@[58; 59) "(" |
51 | POS_FIELD_DEF@[59; 68) | 51 | TUPLE_FIELD_DEF@[59; 68) |
52 | VISIBILITY@[59; 64) | 52 | VISIBILITY@[59; 64) |
53 | CRATE_KW@[59; 64) "crate" | 53 | CRATE_KW@[59; 64) "crate" |
54 | WHITESPACE@[64; 65) " " | 54 | WHITESPACE@[64; 65) " " |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0054_field_attrs.rs b/crates/ra_syntax/test_data/parser/inline/ok/0054_record_field_attrs.rs index 4744d8ac0..4744d8ac0 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0054_field_attrs.rs +++ b/crates/ra_syntax/test_data/parser/inline/ok/0054_record_field_attrs.rs | |||
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0054_field_attrs.txt b/crates/ra_syntax/test_data/parser/inline/ok/0054_record_field_attrs.txt index f214d1d47..56aeba768 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0054_field_attrs.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0054_record_field_attrs.txt | |||
@@ -5,10 +5,10 @@ SOURCE_FILE@[0; 64) | |||
5 | NAME@[7; 8) | 5 | NAME@[7; 8) |
6 | IDENT@[7; 8) "S" | 6 | IDENT@[7; 8) "S" |
7 | WHITESPACE@[8; 9) " " | 7 | WHITESPACE@[8; 9) " " |
8 | NAMED_FIELD_DEF_LIST@[9; 63) | 8 | RECORD_FIELD_DEF_LIST@[9; 63) |
9 | L_CURLY@[9; 10) "{" | 9 | L_CURLY@[9; 10) "{" |
10 | WHITESPACE@[10; 15) "\n " | 10 | WHITESPACE@[10; 15) "\n " |
11 | NAMED_FIELD_DEF@[15; 60) | 11 | RECORD_FIELD_DEF@[15; 60) |
12 | ATTR@[15; 43) | 12 | ATTR@[15; 43) |
13 | POUND@[15; 16) "#" | 13 | POUND@[15; 16) "#" |
14 | TOKEN_TREE@[16; 43) | 14 | TOKEN_TREE@[16; 43) |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0061_struct_lit.rs b/crates/ra_syntax/test_data/parser/inline/ok/0061_record_lit.rs index 6285e5549..6285e5549 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0061_struct_lit.rs +++ b/crates/ra_syntax/test_data/parser/inline/ok/0061_record_lit.rs | |||
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0061_struct_lit.txt b/crates/ra_syntax/test_data/parser/inline/ok/0061_record_lit.txt index d06594cae..1c915ea0c 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0061_struct_lit.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0061_record_lit.txt | |||
@@ -12,33 +12,33 @@ SOURCE_FILE@[0; 112) | |||
12 | L_CURLY@[9; 10) "{" | 12 | L_CURLY@[9; 10) "{" |
13 | WHITESPACE@[10; 15) "\n " | 13 | WHITESPACE@[10; 15) "\n " |
14 | EXPR_STMT@[15; 20) | 14 | EXPR_STMT@[15; 20) |
15 | STRUCT_LIT@[15; 19) | 15 | RECORD_LIT@[15; 19) |
16 | PATH@[15; 16) | 16 | PATH@[15; 16) |
17 | PATH_SEGMENT@[15; 16) | 17 | PATH_SEGMENT@[15; 16) |
18 | NAME_REF@[15; 16) | 18 | NAME_REF@[15; 16) |
19 | IDENT@[15; 16) "S" | 19 | IDENT@[15; 16) "S" |
20 | WHITESPACE@[16; 17) " " | 20 | WHITESPACE@[16; 17) " " |
21 | NAMED_FIELD_LIST@[17; 19) | 21 | RECORD_FIELD_LIST@[17; 19) |
22 | L_CURLY@[17; 18) "{" | 22 | L_CURLY@[17; 18) "{" |
23 | R_CURLY@[18; 19) "}" | 23 | R_CURLY@[18; 19) "}" |
24 | SEMI@[19; 20) ";" | 24 | SEMI@[19; 20) ";" |
25 | WHITESPACE@[20; 25) "\n " | 25 | WHITESPACE@[20; 25) "\n " |
26 | EXPR_STMT@[25; 41) | 26 | EXPR_STMT@[25; 41) |
27 | STRUCT_LIT@[25; 40) | 27 | RECORD_LIT@[25; 40) |
28 | PATH@[25; 26) | 28 | PATH@[25; 26) |
29 | PATH_SEGMENT@[25; 26) | 29 | PATH_SEGMENT@[25; 26) |
30 | NAME_REF@[25; 26) | 30 | NAME_REF@[25; 26) |
31 | IDENT@[25; 26) "S" | 31 | IDENT@[25; 26) "S" |
32 | WHITESPACE@[26; 27) " " | 32 | WHITESPACE@[26; 27) " " |
33 | NAMED_FIELD_LIST@[27; 40) | 33 | RECORD_FIELD_LIST@[27; 40) |
34 | L_CURLY@[27; 28) "{" | 34 | L_CURLY@[27; 28) "{" |
35 | WHITESPACE@[28; 29) " " | 35 | WHITESPACE@[28; 29) " " |
36 | NAMED_FIELD@[29; 30) | 36 | RECORD_FIELD@[29; 30) |
37 | NAME_REF@[29; 30) | 37 | NAME_REF@[29; 30) |
38 | IDENT@[29; 30) "x" | 38 | IDENT@[29; 30) "x" |
39 | COMMA@[30; 31) "," | 39 | COMMA@[30; 31) "," |
40 | WHITESPACE@[31; 32) " " | 40 | WHITESPACE@[31; 32) " " |
41 | NAMED_FIELD@[32; 37) | 41 | RECORD_FIELD@[32; 37) |
42 | NAME_REF@[32; 33) | 42 | NAME_REF@[32; 33) |
43 | IDENT@[32; 33) "y" | 43 | IDENT@[32; 33) "y" |
44 | COLON@[33; 34) ":" | 44 | COLON@[33; 34) ":" |
@@ -51,21 +51,21 @@ SOURCE_FILE@[0; 112) | |||
51 | SEMI@[40; 41) ";" | 51 | SEMI@[40; 41) ";" |
52 | WHITESPACE@[41; 46) "\n " | 52 | WHITESPACE@[41; 46) "\n " |
53 | EXPR_STMT@[46; 83) | 53 | EXPR_STMT@[46; 83) |
54 | STRUCT_LIT@[46; 82) | 54 | RECORD_LIT@[46; 82) |
55 | PATH@[46; 47) | 55 | PATH@[46; 47) |
56 | PATH_SEGMENT@[46; 47) | 56 | PATH_SEGMENT@[46; 47) |
57 | NAME_REF@[46; 47) | 57 | NAME_REF@[46; 47) |
58 | IDENT@[46; 47) "S" | 58 | IDENT@[46; 47) "S" |
59 | WHITESPACE@[47; 48) " " | 59 | WHITESPACE@[47; 48) " " |
60 | NAMED_FIELD_LIST@[48; 82) | 60 | RECORD_FIELD_LIST@[48; 82) |
61 | L_CURLY@[48; 49) "{" | 61 | L_CURLY@[48; 49) "{" |
62 | WHITESPACE@[49; 50) " " | 62 | WHITESPACE@[49; 50) " " |
63 | NAMED_FIELD@[50; 51) | 63 | RECORD_FIELD@[50; 51) |
64 | NAME_REF@[50; 51) | 64 | NAME_REF@[50; 51) |
65 | IDENT@[50; 51) "x" | 65 | IDENT@[50; 51) "x" |
66 | COMMA@[51; 52) "," | 66 | COMMA@[51; 52) "," |
67 | WHITESPACE@[52; 53) " " | 67 | WHITESPACE@[52; 53) " " |
68 | NAMED_FIELD@[53; 58) | 68 | RECORD_FIELD@[53; 58) |
69 | NAME_REF@[53; 54) | 69 | NAME_REF@[53; 54) |
70 | IDENT@[53; 54) "y" | 70 | IDENT@[53; 54) "y" |
71 | COLON@[54; 55) ":" | 71 | COLON@[54; 55) ":" |
@@ -94,16 +94,16 @@ SOURCE_FILE@[0; 112) | |||
94 | SEMI@[82; 83) ";" | 94 | SEMI@[82; 83) ";" |
95 | WHITESPACE@[83; 88) "\n " | 95 | WHITESPACE@[83; 88) "\n " |
96 | EXPR_STMT@[88; 109) | 96 | EXPR_STMT@[88; 109) |
97 | STRUCT_LIT@[88; 108) | 97 | RECORD_LIT@[88; 108) |
98 | PATH@[88; 99) | 98 | PATH@[88; 99) |
99 | PATH_SEGMENT@[88; 99) | 99 | PATH_SEGMENT@[88; 99) |
100 | NAME_REF@[88; 99) | 100 | NAME_REF@[88; 99) |
101 | IDENT@[88; 99) "TupleStruct" | 101 | IDENT@[88; 99) "TupleStruct" |
102 | WHITESPACE@[99; 100) " " | 102 | WHITESPACE@[99; 100) " " |
103 | NAMED_FIELD_LIST@[100; 108) | 103 | RECORD_FIELD_LIST@[100; 108) |
104 | L_CURLY@[100; 101) "{" | 104 | L_CURLY@[100; 101) "{" |
105 | WHITESPACE@[101; 102) " " | 105 | WHITESPACE@[101; 102) " " |
106 | NAMED_FIELD@[102; 106) | 106 | RECORD_FIELD@[102; 106) |
107 | NAME_REF@[102; 103) | 107 | NAME_REF@[102; 103) |
108 | INT_NUMBER@[102; 103) "0" | 108 | INT_NUMBER@[102; 103) "0" |
109 | COLON@[103; 104) ":" | 109 | COLON@[103; 104) ":" |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0066_match_arm.txt b/crates/ra_syntax/test_data/parser/inline/ok/0066_match_arm.txt index 28d501459..35f023782 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0066_match_arm.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0066_match_arm.txt | |||
@@ -49,14 +49,14 @@ SOURCE_FILE@[0; 215) | |||
49 | WHITESPACE@[60; 61) " " | 49 | WHITESPACE@[60; 61) " " |
50 | R_ANGLE@[61; 62) ">" | 50 | R_ANGLE@[61; 62) ">" |
51 | WHITESPACE@[62; 63) " " | 51 | WHITESPACE@[62; 63) " " |
52 | STRUCT_LIT@[63; 77) | 52 | RECORD_LIT@[63; 77) |
53 | PATH@[63; 67) | 53 | PATH@[63; 67) |
54 | PATH_SEGMENT@[63; 67) | 54 | PATH_SEGMENT@[63; 67) |
55 | NAME_REF@[63; 67) | 55 | NAME_REF@[63; 67) |
56 | IDENT@[63; 67) "Test" | 56 | IDENT@[63; 67) "Test" |
57 | NAMED_FIELD_LIST@[67; 77) | 57 | RECORD_FIELD_LIST@[67; 77) |
58 | L_CURLY@[67; 68) "{" | 58 | L_CURLY@[67; 68) "{" |
59 | NAMED_FIELD@[68; 76) | 59 | RECORD_FIELD@[68; 76) |
60 | NAME_REF@[68; 73) | 60 | NAME_REF@[68; 73) |
61 | IDENT@[68; 73) "field" | 61 | IDENT@[68; 73) "field" |
62 | COLON@[73; 74) ":" | 62 | COLON@[73; 74) ":" |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0068_union_items.txt b/crates/ra_syntax/test_data/parser/inline/ok/0068_union_items.txt index 4b653317b..f9ace02ee 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0068_union_items.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0068_union_items.txt | |||
@@ -5,7 +5,7 @@ SOURCE_FILE@[0; 51) | |||
5 | NAME@[6; 9) | 5 | NAME@[6; 9) |
6 | IDENT@[6; 9) "Foo" | 6 | IDENT@[6; 9) "Foo" |
7 | WHITESPACE@[9; 10) " " | 7 | WHITESPACE@[9; 10) " " |
8 | NAMED_FIELD_DEF_LIST@[10; 12) | 8 | RECORD_FIELD_DEF_LIST@[10; 12) |
9 | L_CURLY@[10; 11) "{" | 9 | L_CURLY@[10; 11) "{" |
10 | R_CURLY@[11; 12) "}" | 10 | R_CURLY@[11; 12) "}" |
11 | WHITESPACE@[12; 13) "\n" | 11 | WHITESPACE@[12; 13) "\n" |
@@ -15,10 +15,10 @@ SOURCE_FILE@[0; 51) | |||
15 | NAME@[19; 22) | 15 | NAME@[19; 22) |
16 | IDENT@[19; 22) "Foo" | 16 | IDENT@[19; 22) "Foo" |
17 | WHITESPACE@[22; 23) " " | 17 | WHITESPACE@[22; 23) " " |
18 | NAMED_FIELD_DEF_LIST@[23; 50) | 18 | RECORD_FIELD_DEF_LIST@[23; 50) |
19 | L_CURLY@[23; 24) "{" | 19 | L_CURLY@[23; 24) "{" |
20 | WHITESPACE@[24; 29) "\n " | 20 | WHITESPACE@[24; 29) "\n " |
21 | NAMED_FIELD_DEF@[29; 35) | 21 | RECORD_FIELD_DEF@[29; 35) |
22 | NAME@[29; 30) | 22 | NAME@[29; 30) |
23 | IDENT@[29; 30) "a" | 23 | IDENT@[29; 30) "a" |
24 | COLON@[30; 31) ":" | 24 | COLON@[30; 31) ":" |
@@ -30,7 +30,7 @@ SOURCE_FILE@[0; 51) | |||
30 | IDENT@[32; 35) "i32" | 30 | IDENT@[32; 35) "i32" |
31 | COMMA@[35; 36) "," | 31 | COMMA@[35; 36) "," |
32 | WHITESPACE@[36; 41) "\n " | 32 | WHITESPACE@[36; 41) "\n " |
33 | NAMED_FIELD_DEF@[41; 47) | 33 | RECORD_FIELD_DEF@[41; 47) |
34 | NAME@[41; 42) | 34 | NAME@[41; 42) |
35 | IDENT@[41; 42) "b" | 35 | IDENT@[41; 42) "b" |
36 | COLON@[42; 43) ":" | 36 | COLON@[42; 43) ":" |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0083_struct_items.txt b/crates/ra_syntax/test_data/parser/inline/ok/0083_struct_items.txt index 62d93512b..e909f2b78 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0083_struct_items.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0083_struct_items.txt | |||
@@ -12,7 +12,7 @@ SOURCE_FILE@[0; 106) | |||
12 | NAME@[19; 22) | 12 | NAME@[19; 22) |
13 | IDENT@[19; 22) "Foo" | 13 | IDENT@[19; 22) "Foo" |
14 | WHITESPACE@[22; 23) " " | 14 | WHITESPACE@[22; 23) " " |
15 | NAMED_FIELD_DEF_LIST@[23; 25) | 15 | RECORD_FIELD_DEF_LIST@[23; 25) |
16 | L_CURLY@[23; 24) "{" | 16 | L_CURLY@[23; 24) "{" |
17 | R_CURLY@[24; 25) "}" | 17 | R_CURLY@[24; 25) "}" |
18 | WHITESPACE@[25; 26) "\n" | 18 | WHITESPACE@[25; 26) "\n" |
@@ -21,7 +21,7 @@ SOURCE_FILE@[0; 106) | |||
21 | WHITESPACE@[32; 33) " " | 21 | WHITESPACE@[32; 33) " " |
22 | NAME@[33; 36) | 22 | NAME@[33; 36) |
23 | IDENT@[33; 36) "Foo" | 23 | IDENT@[33; 36) "Foo" |
24 | POS_FIELD_DEF_LIST@[36; 38) | 24 | TUPLE_FIELD_DEF_LIST@[36; 38) |
25 | L_PAREN@[36; 37) "(" | 25 | L_PAREN@[36; 37) "(" |
26 | R_PAREN@[37; 38) ")" | 26 | R_PAREN@[37; 38) ")" |
27 | SEMI@[38; 39) ";" | 27 | SEMI@[38; 39) ";" |
@@ -31,9 +31,9 @@ SOURCE_FILE@[0; 106) | |||
31 | WHITESPACE@[46; 47) " " | 31 | WHITESPACE@[46; 47) " " |
32 | NAME@[47; 50) | 32 | NAME@[47; 50) |
33 | IDENT@[47; 50) "Foo" | 33 | IDENT@[47; 50) "Foo" |
34 | POS_FIELD_DEF_LIST@[50; 65) | 34 | TUPLE_FIELD_DEF_LIST@[50; 65) |
35 | L_PAREN@[50; 51) "(" | 35 | L_PAREN@[50; 51) "(" |
36 | POS_FIELD_DEF@[51; 57) | 36 | TUPLE_FIELD_DEF@[51; 57) |
37 | PATH_TYPE@[51; 57) | 37 | PATH_TYPE@[51; 57) |
38 | PATH@[51; 57) | 38 | PATH@[51; 57) |
39 | PATH_SEGMENT@[51; 57) | 39 | PATH_SEGMENT@[51; 57) |
@@ -41,7 +41,7 @@ SOURCE_FILE@[0; 106) | |||
41 | IDENT@[51; 57) "String" | 41 | IDENT@[51; 57) "String" |
42 | COMMA@[57; 58) "," | 42 | COMMA@[57; 58) "," |
43 | WHITESPACE@[58; 59) " " | 43 | WHITESPACE@[58; 59) " " |
44 | POS_FIELD_DEF@[59; 64) | 44 | TUPLE_FIELD_DEF@[59; 64) |
45 | PATH_TYPE@[59; 64) | 45 | PATH_TYPE@[59; 64) |
46 | PATH@[59; 64) | 46 | PATH@[59; 64) |
47 | PATH_SEGMENT@[59; 64) | 47 | PATH_SEGMENT@[59; 64) |
@@ -56,10 +56,10 @@ SOURCE_FILE@[0; 106) | |||
56 | NAME@[74; 77) | 56 | NAME@[74; 77) |
57 | IDENT@[74; 77) "Foo" | 57 | IDENT@[74; 77) "Foo" |
58 | WHITESPACE@[77; 78) " " | 58 | WHITESPACE@[77; 78) " " |
59 | NAMED_FIELD_DEF_LIST@[78; 105) | 59 | RECORD_FIELD_DEF_LIST@[78; 105) |
60 | L_CURLY@[78; 79) "{" | 60 | L_CURLY@[78; 79) "{" |
61 | WHITESPACE@[79; 84) "\n " | 61 | WHITESPACE@[79; 84) "\n " |
62 | NAMED_FIELD_DEF@[84; 90) | 62 | RECORD_FIELD_DEF@[84; 90) |
63 | NAME@[84; 85) | 63 | NAME@[84; 85) |
64 | IDENT@[84; 85) "a" | 64 | IDENT@[84; 85) "a" |
65 | COLON@[85; 86) ":" | 65 | COLON@[85; 86) ":" |
@@ -71,7 +71,7 @@ SOURCE_FILE@[0; 106) | |||
71 | IDENT@[87; 90) "i32" | 71 | IDENT@[87; 90) "i32" |
72 | COMMA@[90; 91) "," | 72 | COMMA@[90; 91) "," |
73 | WHITESPACE@[91; 96) "\n " | 73 | WHITESPACE@[91; 96) "\n " |
74 | NAMED_FIELD_DEF@[96; 102) | 74 | RECORD_FIELD_DEF@[96; 102) |
75 | NAME@[96; 97) | 75 | NAME@[96; 97) |
76 | IDENT@[96; 97) "b" | 76 | IDENT@[96; 97) "b" |
77 | COLON@[97; 98) ":" | 77 | COLON@[97; 98) ":" |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0102_field_pat_list.rs b/crates/ra_syntax/test_data/parser/inline/ok/0102_record_field_pat_list.rs index da3412fa8..da3412fa8 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0102_field_pat_list.rs +++ b/crates/ra_syntax/test_data/parser/inline/ok/0102_record_field_pat_list.rs | |||
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0102_field_pat_list.txt b/crates/ra_syntax/test_data/parser/inline/ok/0102_record_field_pat_list.txt index a2af4fc60..22db72c12 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0102_field_pat_list.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0102_record_field_pat_list.txt | |||
@@ -14,13 +14,13 @@ SOURCE_FILE@[0; 119) | |||
14 | LET_STMT@[15; 29) | 14 | LET_STMT@[15; 29) |
15 | LET_KW@[15; 18) "let" | 15 | LET_KW@[15; 18) "let" |
16 | WHITESPACE@[18; 19) " " | 16 | WHITESPACE@[18; 19) " " |
17 | STRUCT_PAT@[19; 23) | 17 | RECORD_PAT@[19; 23) |
18 | PATH@[19; 20) | 18 | PATH@[19; 20) |
19 | PATH_SEGMENT@[19; 20) | 19 | PATH_SEGMENT@[19; 20) |
20 | NAME_REF@[19; 20) | 20 | NAME_REF@[19; 20) |
21 | IDENT@[19; 20) "S" | 21 | IDENT@[19; 20) "S" |
22 | WHITESPACE@[20; 21) " " | 22 | WHITESPACE@[20; 21) " " |
23 | FIELD_PAT_LIST@[21; 23) | 23 | RECORD_FIELD_PAT_LIST@[21; 23) |
24 | L_CURLY@[21; 22) "{" | 24 | L_CURLY@[21; 22) "{" |
25 | R_CURLY@[22; 23) "}" | 25 | R_CURLY@[22; 23) "}" |
26 | WHITESPACE@[23; 24) " " | 26 | WHITESPACE@[23; 24) " " |
@@ -34,13 +34,13 @@ SOURCE_FILE@[0; 119) | |||
34 | LET_STMT@[34; 62) | 34 | LET_STMT@[34; 62) |
35 | LET_KW@[34; 37) "let" | 35 | LET_KW@[34; 37) "let" |
36 | WHITESPACE@[37; 38) " " | 36 | WHITESPACE@[37; 38) " " |
37 | STRUCT_PAT@[38; 56) | 37 | RECORD_PAT@[38; 56) |
38 | PATH@[38; 39) | 38 | PATH@[38; 39) |
39 | PATH_SEGMENT@[38; 39) | 39 | PATH_SEGMENT@[38; 39) |
40 | NAME_REF@[38; 39) | 40 | NAME_REF@[38; 39) |
41 | IDENT@[38; 39) "S" | 41 | IDENT@[38; 39) "S" |
42 | WHITESPACE@[39; 40) " " | 42 | WHITESPACE@[39; 40) " " |
43 | FIELD_PAT_LIST@[40; 56) | 43 | RECORD_FIELD_PAT_LIST@[40; 56) |
44 | L_CURLY@[40; 41) "{" | 44 | L_CURLY@[40; 41) "{" |
45 | WHITESPACE@[41; 42) " " | 45 | WHITESPACE@[41; 42) " " |
46 | BIND_PAT@[42; 43) | 46 | BIND_PAT@[42; 43) |
@@ -68,16 +68,16 @@ SOURCE_FILE@[0; 119) | |||
68 | LET_STMT@[67; 90) | 68 | LET_STMT@[67; 90) |
69 | LET_KW@[67; 70) "let" | 69 | LET_KW@[67; 70) "let" |
70 | WHITESPACE@[70; 71) " " | 70 | WHITESPACE@[70; 71) " " |
71 | STRUCT_PAT@[71; 84) | 71 | RECORD_PAT@[71; 84) |
72 | PATH@[71; 72) | 72 | PATH@[71; 72) |
73 | PATH_SEGMENT@[71; 72) | 73 | PATH_SEGMENT@[71; 72) |
74 | NAME_REF@[71; 72) | 74 | NAME_REF@[71; 72) |
75 | IDENT@[71; 72) "S" | 75 | IDENT@[71; 72) "S" |
76 | WHITESPACE@[72; 73) " " | 76 | WHITESPACE@[72; 73) " " |
77 | FIELD_PAT_LIST@[73; 84) | 77 | RECORD_FIELD_PAT_LIST@[73; 84) |
78 | L_CURLY@[73; 74) "{" | 78 | L_CURLY@[73; 74) "{" |
79 | WHITESPACE@[74; 75) " " | 79 | WHITESPACE@[74; 75) " " |
80 | FIELD_PAT@[75; 79) | 80 | RECORD_FIELD_PAT@[75; 79) |
81 | NAME@[75; 76) | 81 | NAME@[75; 76) |
82 | IDENT@[75; 76) "h" | 82 | IDENT@[75; 76) "h" |
83 | COLON@[76; 77) ":" | 83 | COLON@[76; 77) ":" |
@@ -99,16 +99,16 @@ SOURCE_FILE@[0; 119) | |||
99 | LET_STMT@[95; 116) | 99 | LET_STMT@[95; 116) |
100 | LET_KW@[95; 98) "let" | 100 | LET_KW@[95; 98) "let" |
101 | WHITESPACE@[98; 99) " " | 101 | WHITESPACE@[98; 99) " " |
102 | STRUCT_PAT@[99; 110) | 102 | RECORD_PAT@[99; 110) |
103 | PATH@[99; 100) | 103 | PATH@[99; 100) |
104 | PATH_SEGMENT@[99; 100) | 104 | PATH_SEGMENT@[99; 100) |
105 | NAME_REF@[99; 100) | 105 | NAME_REF@[99; 100) |
106 | IDENT@[99; 100) "S" | 106 | IDENT@[99; 100) "S" |
107 | WHITESPACE@[100; 101) " " | 107 | WHITESPACE@[100; 101) " " |
108 | FIELD_PAT_LIST@[101; 110) | 108 | RECORD_FIELD_PAT_LIST@[101; 110) |
109 | L_CURLY@[101; 102) "{" | 109 | L_CURLY@[101; 102) "{" |
110 | WHITESPACE@[102; 103) " " | 110 | WHITESPACE@[102; 103) " " |
111 | FIELD_PAT@[103; 107) | 111 | RECORD_FIELD_PAT@[103; 107) |
112 | NAME@[103; 104) | 112 | NAME@[103; 104) |
113 | IDENT@[103; 104) "h" | 113 | IDENT@[103; 104) "h" |
114 | COLON@[104; 105) ":" | 114 | COLON@[104; 105) ":" |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0114_tuple_struct_where.txt b/crates/ra_syntax/test_data/parser/inline/ok/0114_tuple_struct_where.txt index 8534592b9..f5de01405 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0114_tuple_struct_where.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0114_tuple_struct_where.txt | |||
@@ -10,9 +10,9 @@ SOURCE_FILE@[0; 53) | |||
10 | NAME@[12; 13) | 10 | NAME@[12; 13) |
11 | IDENT@[12; 13) "T" | 11 | IDENT@[12; 13) "T" |
12 | R_ANGLE@[13; 14) ">" | 12 | R_ANGLE@[13; 14) ">" |
13 | POS_FIELD_DEF_LIST@[14; 17) | 13 | TUPLE_FIELD_DEF_LIST@[14; 17) |
14 | L_PAREN@[14; 15) "(" | 14 | L_PAREN@[14; 15) "(" |
15 | POS_FIELD_DEF@[15; 16) | 15 | TUPLE_FIELD_DEF@[15; 16) |
16 | PATH_TYPE@[15; 16) | 16 | PATH_TYPE@[15; 16) |
17 | PATH@[15; 16) | 17 | PATH@[15; 16) |
18 | PATH_SEGMENT@[15; 16) | 18 | PATH_SEGMENT@[15; 16) |
@@ -51,9 +51,9 @@ SOURCE_FILE@[0; 53) | |||
51 | NAME@[46; 47) | 51 | NAME@[46; 47) |
52 | IDENT@[46; 47) "T" | 52 | IDENT@[46; 47) "T" |
53 | R_ANGLE@[47; 48) ">" | 53 | R_ANGLE@[47; 48) ">" |
54 | POS_FIELD_DEF_LIST@[48; 51) | 54 | TUPLE_FIELD_DEF_LIST@[48; 51) |
55 | L_PAREN@[48; 49) "(" | 55 | L_PAREN@[48; 49) "(" |
56 | POS_FIELD_DEF@[49; 50) | 56 | TUPLE_FIELD_DEF@[49; 50) |
57 | PATH_TYPE@[49; 50) | 57 | PATH_TYPE@[49; 50) |
58 | PATH@[49; 50) | 58 | PATH@[49; 50) |
59 | PATH_SEGMENT@[49; 50) | 59 | PATH_SEGMENT@[49; 50) |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0115_pos_field_attrs.rs b/crates/ra_syntax/test_data/parser/inline/ok/0115_tuple_field_attrs.rs index 635b9ac21..635b9ac21 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0115_pos_field_attrs.rs +++ b/crates/ra_syntax/test_data/parser/inline/ok/0115_tuple_field_attrs.rs | |||
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0115_pos_field_attrs.txt b/crates/ra_syntax/test_data/parser/inline/ok/0115_tuple_field_attrs.txt index 6dd3a9b93..cb6d9f76d 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0115_pos_field_attrs.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0115_tuple_field_attrs.txt | |||
@@ -5,10 +5,10 @@ SOURCE_FILE@[0; 60) | |||
5 | NAME@[7; 8) | 5 | NAME@[7; 8) |
6 | IDENT@[7; 8) "S" | 6 | IDENT@[7; 8) "S" |
7 | WHITESPACE@[8; 9) " " | 7 | WHITESPACE@[8; 9) " " |
8 | POS_FIELD_DEF_LIST@[9; 58) | 8 | TUPLE_FIELD_DEF_LIST@[9; 58) |
9 | L_PAREN@[9; 10) "(" | 9 | L_PAREN@[9; 10) "(" |
10 | WHITESPACE@[10; 15) "\n " | 10 | WHITESPACE@[10; 15) "\n " |
11 | POS_FIELD_DEF@[15; 55) | 11 | TUPLE_FIELD_DEF@[15; 55) |
12 | ATTR@[15; 43) | 12 | ATTR@[15; 43) |
13 | POUND@[15; 16) "#" | 13 | POUND@[15; 16) "#" |
14 | TOKEN_TREE@[16; 43) | 14 | TOKEN_TREE@[16; 43) |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0125_struct_literal_field_with_attr.rs b/crates/ra_syntax/test_data/parser/inline/ok/0125_record_literal_field_with_attr.rs index a6c7760c7..a6c7760c7 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0125_struct_literal_field_with_attr.rs +++ b/crates/ra_syntax/test_data/parser/inline/ok/0125_record_literal_field_with_attr.rs | |||
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0125_struct_literal_field_with_attr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0125_record_literal_field_with_attr.txt index f9c5ec124..8fdf3756f 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0125_struct_literal_field_with_attr.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0125_record_literal_field_with_attr.txt | |||
@@ -11,16 +11,16 @@ SOURCE_FILE@[0; 46) | |||
11 | BLOCK@[10; 45) | 11 | BLOCK@[10; 45) |
12 | L_CURLY@[10; 11) "{" | 12 | L_CURLY@[10; 11) "{" |
13 | WHITESPACE@[11; 16) "\n " | 13 | WHITESPACE@[11; 16) "\n " |
14 | STRUCT_LIT@[16; 43) | 14 | RECORD_LIT@[16; 43) |
15 | PATH@[16; 17) | 15 | PATH@[16; 17) |
16 | PATH_SEGMENT@[16; 17) | 16 | PATH_SEGMENT@[16; 17) |
17 | NAME_REF@[16; 17) | 17 | NAME_REF@[16; 17) |
18 | IDENT@[16; 17) "S" | 18 | IDENT@[16; 17) "S" |
19 | WHITESPACE@[17; 18) " " | 19 | WHITESPACE@[17; 18) " " |
20 | NAMED_FIELD_LIST@[18; 43) | 20 | RECORD_FIELD_LIST@[18; 43) |
21 | L_CURLY@[18; 19) "{" | 21 | L_CURLY@[18; 19) "{" |
22 | WHITESPACE@[19; 20) " " | 22 | WHITESPACE@[19; 20) " " |
23 | NAMED_FIELD@[20; 41) | 23 | RECORD_FIELD@[20; 41) |
24 | ATTR@[20; 32) | 24 | ATTR@[20; 32) |
25 | POUND@[20; 21) "#" | 25 | POUND@[20; 21) "#" |
26 | TOKEN_TREE@[21; 32) | 26 | TOKEN_TREE@[21; 32) |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0134_nocontentexpr_after_item.txt b/crates/ra_syntax/test_data/parser/inline/ok/0134_nocontentexpr_after_item.txt index 50d3b5def..64cbf4632 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0134_nocontentexpr_after_item.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0134_nocontentexpr_after_item.txt | |||
@@ -53,7 +53,7 @@ SOURCE_FILE@[0; 111) | |||
53 | NAME@[103; 104) | 53 | NAME@[103; 104) |
54 | IDENT@[103; 104) "S" | 54 | IDENT@[103; 104) "S" |
55 | WHITESPACE@[104; 105) " " | 55 | WHITESPACE@[104; 105) " " |
56 | NAMED_FIELD_DEF_LIST@[105; 107) | 56 | RECORD_FIELD_DEF_LIST@[105; 107) |
57 | L_CURLY@[105; 106) "{" | 57 | L_CURLY@[105; 106) "{" |
58 | R_CURLY@[106; 107) "}" | 58 | R_CURLY@[106; 107) "}" |
59 | SEMI@[107; 108) ";" | 59 | SEMI@[107; 108) ";" |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0138_expression_after_block.txt b/crates/ra_syntax/test_data/parser/inline/ok/0138_expression_after_block.txt index 08128f365..c4db9da40 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0138_expression_after_block.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0138_expression_after_block.txt | |||
@@ -22,14 +22,14 @@ SOURCE_FILE@[0; 52) | |||
22 | WHITESPACE@[23; 24) " " | 22 | WHITESPACE@[23; 24) " " |
23 | EQ@[24; 25) "=" | 23 | EQ@[24; 25) "=" |
24 | WHITESPACE@[25; 26) " " | 24 | WHITESPACE@[25; 26) " " |
25 | STRUCT_LIT@[26; 33) | 25 | RECORD_LIT@[26; 33) |
26 | PATH@[26; 27) | 26 | PATH@[26; 27) |
27 | PATH_SEGMENT@[26; 27) | 27 | PATH_SEGMENT@[26; 27) |
28 | NAME_REF@[26; 27) | 28 | NAME_REF@[26; 27) |
29 | IDENT@[26; 27) "F" | 29 | IDENT@[26; 27) "F" |
30 | NAMED_FIELD_LIST@[27; 33) | 30 | RECORD_FIELD_LIST@[27; 33) |
31 | L_CURLY@[27; 28) "{" | 31 | L_CURLY@[27; 28) "{" |
32 | NAMED_FIELD@[28; 32) | 32 | RECORD_FIELD@[28; 32) |
33 | NAME_REF@[28; 29) | 33 | NAME_REF@[28; 29) |
34 | IDENT@[28; 29) "x" | 34 | IDENT@[28; 29) "x" |
35 | COLON@[29; 30) ":" | 35 | COLON@[29; 30) ":" |