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/0143_box_pat.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/0143_box_pat.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0143_box_pat.txt | 197 |
1 files changed, 99 insertions, 98 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0143_box_pat.txt b/crates/ra_syntax/test_data/parser/inline/ok/0143_box_pat.txt index f0db58143..4d2048711 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0143_box_pat.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0143_box_pat.txt | |||
@@ -8,102 +8,103 @@ SOURCE_FILE@[0; 118) | |||
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@[10; 117) | 11 | BLOCK_EXPR@[10; 117) |
12 | L_CURLY@[10; 11) "{" | 12 | BLOCK@[10; 117) |
13 | WHITESPACE@[11; 16) "\n " | 13 | L_CURLY@[10; 11) "{" |
14 | LET_STMT@[16; 31) | 14 | WHITESPACE@[11; 16) "\n " |
15 | LET_KW@[16; 19) "let" | 15 | LET_STMT@[16; 31) |
16 | WHITESPACE@[19; 20) " " | 16 | LET_KW@[16; 19) "let" |
17 | BOX_PAT@[20; 25) | 17 | WHITESPACE@[19; 20) " " |
18 | BOX_KW@[20; 23) "box" | 18 | BOX_PAT@[20; 25) |
19 | WHITESPACE@[23; 24) " " | 19 | BOX_KW@[20; 23) "box" |
20 | BIND_PAT@[24; 25) | 20 | WHITESPACE@[23; 24) " " |
21 | NAME@[24; 25) | 21 | BIND_PAT@[24; 25) |
22 | IDENT@[24; 25) "i" | 22 | NAME@[24; 25) |
23 | WHITESPACE@[25; 26) " " | 23 | IDENT@[24; 25) "i" |
24 | EQ@[26; 27) "=" | 24 | WHITESPACE@[25; 26) " " |
25 | WHITESPACE@[27; 28) " " | 25 | EQ@[26; 27) "=" |
26 | TUPLE_EXPR@[28; 30) | 26 | WHITESPACE@[27; 28) " " |
27 | L_PAREN@[28; 29) "(" | 27 | TUPLE_EXPR@[28; 30) |
28 | R_PAREN@[29; 30) ")" | 28 | L_PAREN@[28; 29) "(" |
29 | SEMI@[30; 31) ";" | 29 | R_PAREN@[29; 30) ")" |
30 | WHITESPACE@[31; 36) "\n " | 30 | SEMI@[30; 31) ";" |
31 | LET_STMT@[36; 87) | 31 | WHITESPACE@[31; 36) "\n " |
32 | LET_KW@[36; 39) "let" | 32 | LET_STMT@[36; 87) |
33 | WHITESPACE@[39; 40) " " | 33 | LET_KW@[36; 39) "let" |
34 | BOX_PAT@[40; 81) | 34 | WHITESPACE@[39; 40) " " |
35 | BOX_KW@[40; 43) "box" | 35 | BOX_PAT@[40; 81) |
36 | WHITESPACE@[43; 44) " " | 36 | BOX_KW@[40; 43) "box" |
37 | RECORD_PAT@[44; 81) | 37 | WHITESPACE@[43; 44) " " |
38 | PATH@[44; 49) | 38 | RECORD_PAT@[44; 81) |
39 | PATH_SEGMENT@[44; 49) | 39 | PATH@[44; 49) |
40 | NAME_REF@[44; 49) | 40 | PATH_SEGMENT@[44; 49) |
41 | IDENT@[44; 49) "Outer" | 41 | NAME_REF@[44; 49) |
42 | WHITESPACE@[49; 50) " " | 42 | IDENT@[44; 49) "Outer" |
43 | RECORD_FIELD_PAT_LIST@[50; 81) | 43 | WHITESPACE@[49; 50) " " |
44 | L_CURLY@[50; 51) "{" | 44 | RECORD_FIELD_PAT_LIST@[50; 81) |
45 | WHITESPACE@[51; 52) " " | 45 | L_CURLY@[50; 51) "{" |
46 | BOX_PAT@[52; 57) | 46 | WHITESPACE@[51; 52) " " |
47 | BOX_KW@[52; 55) "box" | 47 | BOX_PAT@[52; 57) |
48 | WHITESPACE@[55; 56) " " | 48 | BOX_KW@[52; 55) "box" |
49 | BIND_PAT@[56; 57) | 49 | WHITESPACE@[55; 56) " " |
50 | NAME@[56; 57) | 50 | BIND_PAT@[56; 57) |
51 | IDENT@[56; 57) "i" | 51 | NAME@[56; 57) |
52 | COMMA@[57; 58) "," | 52 | IDENT@[56; 57) "i" |
53 | WHITESPACE@[58; 59) " " | 53 | COMMA@[57; 58) "," |
54 | RECORD_FIELD_PAT@[59; 79) | 54 | WHITESPACE@[58; 59) " " |
55 | NAME@[59; 60) | 55 | RECORD_FIELD_PAT@[59; 79) |
56 | IDENT@[59; 60) "j" | 56 | NAME@[59; 60) |
57 | COLON@[60; 61) ":" | 57 | IDENT@[59; 60) "j" |
58 | WHITESPACE@[61; 62) " " | 58 | COLON@[60; 61) ":" |
59 | BOX_PAT@[62; 79) | 59 | WHITESPACE@[61; 62) " " |
60 | BOX_KW@[62; 65) "box" | 60 | BOX_PAT@[62; 79) |
61 | WHITESPACE@[65; 66) " " | 61 | BOX_KW@[62; 65) "box" |
62 | TUPLE_STRUCT_PAT@[66; 79) | 62 | WHITESPACE@[65; 66) " " |
63 | PATH@[66; 71) | 63 | TUPLE_STRUCT_PAT@[66; 79) |
64 | PATH_SEGMENT@[66; 71) | 64 | PATH@[66; 71) |
65 | NAME_REF@[66; 71) | 65 | PATH_SEGMENT@[66; 71) |
66 | IDENT@[66; 71) "Inner" | 66 | NAME_REF@[66; 71) |
67 | L_PAREN@[71; 72) "(" | 67 | IDENT@[66; 71) "Inner" |
68 | BOX_PAT@[72; 78) | 68 | L_PAREN@[71; 72) "(" |
69 | BOX_KW@[72; 75) "box" | 69 | BOX_PAT@[72; 78) |
70 | WHITESPACE@[75; 76) " " | 70 | BOX_KW@[72; 75) "box" |
71 | REF_PAT@[76; 78) | 71 | WHITESPACE@[75; 76) " " |
72 | AMP@[76; 77) "&" | 72 | REF_PAT@[76; 78) |
73 | BIND_PAT@[77; 78) | 73 | AMP@[76; 77) "&" |
74 | NAME@[77; 78) | 74 | BIND_PAT@[77; 78) |
75 | IDENT@[77; 78) "x" | 75 | NAME@[77; 78) |
76 | R_PAREN@[78; 79) ")" | 76 | IDENT@[77; 78) "x" |
77 | WHITESPACE@[79; 80) " " | 77 | R_PAREN@[78; 79) ")" |
78 | R_CURLY@[80; 81) "}" | 78 | WHITESPACE@[79; 80) " " |
79 | WHITESPACE@[81; 82) " " | 79 | R_CURLY@[80; 81) "}" |
80 | EQ@[82; 83) "=" | 80 | WHITESPACE@[81; 82) " " |
81 | WHITESPACE@[83; 84) " " | 81 | EQ@[82; 83) "=" |
82 | TUPLE_EXPR@[84; 86) | 82 | WHITESPACE@[83; 84) " " |
83 | L_PAREN@[84; 85) "(" | 83 | TUPLE_EXPR@[84; 86) |
84 | R_PAREN@[85; 86) ")" | 84 | L_PAREN@[84; 85) "(" |
85 | SEMI@[86; 87) ";" | 85 | R_PAREN@[85; 86) ")" |
86 | WHITESPACE@[87; 92) "\n " | 86 | SEMI@[86; 87) ";" |
87 | LET_STMT@[92; 115) | 87 | WHITESPACE@[87; 92) "\n " |
88 | LET_KW@[92; 95) "let" | 88 | LET_STMT@[92; 115) |
89 | WHITESPACE@[95; 96) " " | 89 | LET_KW@[92; 95) "let" |
90 | BOX_PAT@[96; 109) | 90 | WHITESPACE@[95; 96) " " |
91 | BOX_KW@[96; 99) "box" | 91 | BOX_PAT@[96; 109) |
92 | WHITESPACE@[99; 100) " " | 92 | BOX_KW@[96; 99) "box" |
93 | BIND_PAT@[100; 109) | 93 | WHITESPACE@[99; 100) " " |
94 | REF_KW@[100; 103) "ref" | 94 | BIND_PAT@[100; 109) |
95 | WHITESPACE@[103; 104) " " | 95 | REF_KW@[100; 103) "ref" |
96 | MUT_KW@[104; 107) "mut" | 96 | WHITESPACE@[103; 104) " " |
97 | WHITESPACE@[107; 108) " " | 97 | MUT_KW@[104; 107) "mut" |
98 | NAME@[108; 109) | 98 | WHITESPACE@[107; 108) " " |
99 | IDENT@[108; 109) "i" | 99 | NAME@[108; 109) |
100 | WHITESPACE@[109; 110) " " | 100 | IDENT@[108; 109) "i" |
101 | EQ@[110; 111) "=" | 101 | WHITESPACE@[109; 110) " " |
102 | WHITESPACE@[111; 112) " " | 102 | EQ@[110; 111) "=" |
103 | TUPLE_EXPR@[112; 114) | 103 | WHITESPACE@[111; 112) " " |
104 | L_PAREN@[112; 113) "(" | 104 | TUPLE_EXPR@[112; 114) |
105 | R_PAREN@[113; 114) ")" | 105 | L_PAREN@[112; 113) "(" |
106 | SEMI@[114; 115) ";" | 106 | R_PAREN@[113; 114) ")" |
107 | WHITESPACE@[115; 116) "\n" | 107 | SEMI@[114; 115) ";" |
108 | R_CURLY@[116; 117) "}" | 108 | WHITESPACE@[115; 116) "\n" |
109 | R_CURLY@[116; 117) "}" | ||
109 | WHITESPACE@[117; 118) "\n" | 110 | WHITESPACE@[117; 118) "\n" |