diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-09-02 20:20:24 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2019-09-02 20:20:24 +0100 |
commit | 7faec1c30046769d4ae490e15cf5405bcfbdeef8 (patch) | |
tree | 6d268b721027a5350928a6c5a0ec227b5fde8ebc /crates/ra_syntax/test_data/parser/inline/ok/0026_tuple_pat_fields.txt | |
parent | a8397deab914240aca8f015fb3736689919c0a5b (diff) | |
parent | e94587e3153b52684fd3f6b82c8e7efc09ff5c8d (diff) |
Merge #1752
1752: Always wrap blocks into block expressions r=flodiebold a=matklad
This way, things like function bodies are expressions, and we don't have to single them out
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0026_tuple_pat_fields.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0026_tuple_pat_fields.txt | 185 |
1 files changed, 93 insertions, 92 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0026_tuple_pat_fields.txt b/crates/ra_syntax/test_data/parser/inline/ok/0026_tuple_pat_fields.txt index 0ff936471..adc8931e2 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0026_tuple_pat_fields.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0026_tuple_pat_fields.txt | |||
@@ -8,96 +8,97 @@ SOURCE_FILE@[0; 97) | |||
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@[9; 96) | 11 | BLOCK_EXPR@[9; 96) |
12 | L_CURLY@[9; 10) "{" | 12 | BLOCK@[9; 96) |
13 | WHITESPACE@[10; 15) "\n " | 13 | L_CURLY@[9; 10) "{" |
14 | LET_STMT@[15; 28) | 14 | WHITESPACE@[10; 15) "\n " |
15 | LET_KW@[15; 18) "let" | 15 | LET_STMT@[15; 28) |
16 | WHITESPACE@[18; 19) " " | 16 | LET_KW@[15; 18) "let" |
17 | TUPLE_STRUCT_PAT@[19; 22) | 17 | WHITESPACE@[18; 19) " " |
18 | PATH@[19; 20) | 18 | TUPLE_STRUCT_PAT@[19; 22) |
19 | PATH_SEGMENT@[19; 20) | 19 | PATH@[19; 20) |
20 | NAME_REF@[19; 20) | 20 | PATH_SEGMENT@[19; 20) |
21 | IDENT@[19; 20) "S" | 21 | NAME_REF@[19; 20) |
22 | L_PAREN@[20; 21) "(" | 22 | IDENT@[19; 20) "S" |
23 | R_PAREN@[21; 22) ")" | 23 | L_PAREN@[20; 21) "(" |
24 | WHITESPACE@[22; 23) " " | 24 | R_PAREN@[21; 22) ")" |
25 | EQ@[23; 24) "=" | 25 | WHITESPACE@[22; 23) " " |
26 | WHITESPACE@[24; 25) " " | 26 | EQ@[23; 24) "=" |
27 | TUPLE_EXPR@[25; 27) | 27 | WHITESPACE@[24; 25) " " |
28 | L_PAREN@[25; 26) "(" | 28 | TUPLE_EXPR@[25; 27) |
29 | R_PAREN@[26; 27) ")" | 29 | L_PAREN@[25; 26) "(" |
30 | SEMI@[27; 28) ";" | 30 | R_PAREN@[26; 27) ")" |
31 | WHITESPACE@[28; 33) "\n " | 31 | SEMI@[27; 28) ";" |
32 | LET_STMT@[33; 47) | 32 | WHITESPACE@[28; 33) "\n " |
33 | LET_KW@[33; 36) "let" | 33 | LET_STMT@[33; 47) |
34 | WHITESPACE@[36; 37) " " | 34 | LET_KW@[33; 36) "let" |
35 | TUPLE_STRUCT_PAT@[37; 41) | 35 | WHITESPACE@[36; 37) " " |
36 | PATH@[37; 38) | 36 | TUPLE_STRUCT_PAT@[37; 41) |
37 | PATH_SEGMENT@[37; 38) | 37 | PATH@[37; 38) |
38 | NAME_REF@[37; 38) | 38 | PATH_SEGMENT@[37; 38) |
39 | IDENT@[37; 38) "S" | 39 | NAME_REF@[37; 38) |
40 | L_PAREN@[38; 39) "(" | 40 | IDENT@[37; 38) "S" |
41 | PLACEHOLDER_PAT@[39; 40) | 41 | L_PAREN@[38; 39) "(" |
42 | UNDERSCORE@[39; 40) "_" | 42 | PLACEHOLDER_PAT@[39; 40) |
43 | R_PAREN@[40; 41) ")" | 43 | UNDERSCORE@[39; 40) "_" |
44 | WHITESPACE@[41; 42) " " | 44 | R_PAREN@[40; 41) ")" |
45 | EQ@[42; 43) "=" | 45 | WHITESPACE@[41; 42) " " |
46 | WHITESPACE@[43; 44) " " | 46 | EQ@[42; 43) "=" |
47 | TUPLE_EXPR@[44; 46) | 47 | WHITESPACE@[43; 44) " " |
48 | L_PAREN@[44; 45) "(" | 48 | TUPLE_EXPR@[44; 46) |
49 | R_PAREN@[45; 46) ")" | 49 | L_PAREN@[44; 45) "(" |
50 | SEMI@[46; 47) ";" | 50 | R_PAREN@[45; 46) ")" |
51 | WHITESPACE@[47; 52) "\n " | 51 | SEMI@[46; 47) ";" |
52 | LET_STMT@[52; 67) | 52 | WHITESPACE@[47; 52) "\n " |
53 | LET_KW@[52; 55) "let" | 53 | LET_STMT@[52; 67) |
54 | WHITESPACE@[55; 56) " " | 54 | LET_KW@[52; 55) "let" |
55 | TUPLE_STRUCT_PAT@[56; 61) | 55 | WHITESPACE@[55; 56) " " |
56 | PATH@[56; 57) | 56 | TUPLE_STRUCT_PAT@[56; 61) |
57 | PATH_SEGMENT@[56; 57) | 57 | PATH@[56; 57) |
58 | NAME_REF@[56; 57) | 58 | PATH_SEGMENT@[56; 57) |
59 | IDENT@[56; 57) "S" | 59 | NAME_REF@[56; 57) |
60 | L_PAREN@[57; 58) "(" | 60 | IDENT@[56; 57) "S" |
61 | PLACEHOLDER_PAT@[58; 59) | 61 | L_PAREN@[57; 58) "(" |
62 | UNDERSCORE@[58; 59) "_" | 62 | PLACEHOLDER_PAT@[58; 59) |
63 | COMMA@[59; 60) "," | 63 | UNDERSCORE@[58; 59) "_" |
64 | R_PAREN@[60; 61) ")" | 64 | COMMA@[59; 60) "," |
65 | WHITESPACE@[61; 62) " " | 65 | R_PAREN@[60; 61) ")" |
66 | EQ@[62; 63) "=" | 66 | WHITESPACE@[61; 62) " " |
67 | WHITESPACE@[63; 64) " " | 67 | EQ@[62; 63) "=" |
68 | TUPLE_EXPR@[64; 66) | 68 | WHITESPACE@[63; 64) " " |
69 | L_PAREN@[64; 65) "(" | 69 | TUPLE_EXPR@[64; 66) |
70 | R_PAREN@[65; 66) ")" | 70 | L_PAREN@[64; 65) "(" |
71 | SEMI@[66; 67) ";" | 71 | R_PAREN@[65; 66) ")" |
72 | WHITESPACE@[67; 72) "\n " | 72 | SEMI@[66; 67) ";" |
73 | LET_STMT@[72; 94) | 73 | WHITESPACE@[67; 72) "\n " |
74 | LET_KW@[72; 75) "let" | 74 | LET_STMT@[72; 94) |
75 | WHITESPACE@[75; 76) " " | 75 | LET_KW@[72; 75) "let" |
76 | TUPLE_STRUCT_PAT@[76; 88) | 76 | WHITESPACE@[75; 76) " " |
77 | PATH@[76; 77) | 77 | TUPLE_STRUCT_PAT@[76; 88) |
78 | PATH_SEGMENT@[76; 77) | 78 | PATH@[76; 77) |
79 | NAME_REF@[76; 77) | 79 | PATH_SEGMENT@[76; 77) |
80 | IDENT@[76; 77) "S" | 80 | NAME_REF@[76; 77) |
81 | L_PAREN@[77; 78) "(" | 81 | IDENT@[76; 77) "S" |
82 | PLACEHOLDER_PAT@[78; 79) | 82 | L_PAREN@[77; 78) "(" |
83 | UNDERSCORE@[78; 79) "_" | 83 | PLACEHOLDER_PAT@[78; 79) |
84 | COMMA@[79; 80) "," | 84 | UNDERSCORE@[78; 79) "_" |
85 | WHITESPACE@[80; 81) " " | 85 | COMMA@[79; 80) "," |
86 | DOTDOT@[81; 83) ".." | 86 | WHITESPACE@[80; 81) " " |
87 | WHITESPACE@[83; 84) " " | 87 | DOTDOT@[81; 83) ".." |
88 | COMMA@[84; 85) "," | 88 | WHITESPACE@[83; 84) " " |
89 | WHITESPACE@[85; 86) " " | 89 | COMMA@[84; 85) "," |
90 | BIND_PAT@[86; 87) | 90 | WHITESPACE@[85; 86) " " |
91 | NAME@[86; 87) | 91 | BIND_PAT@[86; 87) |
92 | IDENT@[86; 87) "x" | 92 | NAME@[86; 87) |
93 | R_PAREN@[87; 88) ")" | 93 | IDENT@[86; 87) "x" |
94 | WHITESPACE@[88; 89) " " | 94 | R_PAREN@[87; 88) ")" |
95 | EQ@[89; 90) "=" | 95 | WHITESPACE@[88; 89) " " |
96 | WHITESPACE@[90; 91) " " | 96 | EQ@[89; 90) "=" |
97 | TUPLE_EXPR@[91; 93) | 97 | WHITESPACE@[90; 91) " " |
98 | L_PAREN@[91; 92) "(" | 98 | TUPLE_EXPR@[91; 93) |
99 | R_PAREN@[92; 93) ")" | 99 | L_PAREN@[91; 92) "(" |
100 | SEMI@[93; 94) ";" | 100 | R_PAREN@[92; 93) ")" |
101 | WHITESPACE@[94; 95) "\n" | 101 | SEMI@[93; 94) ";" |
102 | R_CURLY@[95; 96) "}" | 102 | WHITESPACE@[94; 95) "\n" |
103 | R_CURLY@[95; 96) "}" | ||
103 | WHITESPACE@[96; 97) "\n" | 104 | WHITESPACE@[96; 97) "\n" |