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/ok/0044_let_attrs.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/ok/0044_let_attrs.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/ok/0044_let_attrs.txt | 121 |
1 files changed, 61 insertions, 60 deletions
diff --git a/crates/ra_syntax/test_data/parser/ok/0044_let_attrs.txt b/crates/ra_syntax/test_data/parser/ok/0044_let_attrs.txt index b928adaad..7dabe535f 100644 --- a/crates/ra_syntax/test_data/parser/ok/0044_let_attrs.txt +++ b/crates/ra_syntax/test_data/parser/ok/0044_let_attrs.txt | |||
@@ -10,64 +10,65 @@ SOURCE_FILE@[0; 166) | |||
10 | L_PAREN@[68; 69) "(" | 10 | L_PAREN@[68; 69) "(" |
11 | R_PAREN@[69; 70) ")" | 11 | R_PAREN@[69; 70) ")" |
12 | WHITESPACE@[70; 71) " " | 12 | WHITESPACE@[70; 71) " " |
13 | BLOCK@[71; 165) | 13 | BLOCK_EXPR@[71; 165) |
14 | L_CURLY@[71; 72) "{" | 14 | BLOCK@[71; 165) |
15 | WHITESPACE@[72; 77) "\n " | 15 | L_CURLY@[71; 72) "{" |
16 | LET_STMT@[77; 163) | 16 | WHITESPACE@[72; 77) "\n " |
17 | ATTR@[77; 106) | 17 | LET_STMT@[77; 163) |
18 | POUND@[77; 78) "#" | 18 | ATTR@[77; 106) |
19 | TOKEN_TREE@[78; 106) | 19 | POUND@[77; 78) "#" |
20 | L_BRACK@[78; 79) "[" | 20 | TOKEN_TREE@[78; 106) |
21 | IDENT@[79; 82) "cfg" | 21 | L_BRACK@[78; 79) "[" |
22 | TOKEN_TREE@[82; 105) | 22 | IDENT@[79; 82) "cfg" |
23 | L_PAREN@[82; 83) "(" | 23 | TOKEN_TREE@[82; 105) |
24 | IDENT@[83; 90) "feature" | 24 | L_PAREN@[82; 83) "(" |
25 | WHITESPACE@[90; 91) " " | 25 | IDENT@[83; 90) "feature" |
26 | EQ@[91; 92) "=" | 26 | WHITESPACE@[90; 91) " " |
27 | WHITESPACE@[92; 93) " " | 27 | EQ@[91; 92) "=" |
28 | STRING@[93; 104) "\"backtrace\"" | 28 | WHITESPACE@[92; 93) " " |
29 | R_PAREN@[104; 105) ")" | 29 | STRING@[93; 104) "\"backtrace\"" |
30 | R_BRACK@[105; 106) "]" | 30 | R_PAREN@[104; 105) ")" |
31 | WHITESPACE@[106; 111) "\n " | 31 | R_BRACK@[105; 106) "]" |
32 | LET_KW@[111; 114) "let" | 32 | WHITESPACE@[106; 111) "\n " |
33 | WHITESPACE@[114; 115) " " | 33 | LET_KW@[111; 114) "let" |
34 | BIND_PAT@[115; 124) | 34 | WHITESPACE@[114; 115) " " |
35 | NAME@[115; 124) | 35 | BIND_PAT@[115; 124) |
36 | IDENT@[115; 124) "exit_code" | 36 | NAME@[115; 124) |
37 | WHITESPACE@[124; 125) " " | 37 | IDENT@[115; 124) "exit_code" |
38 | EQ@[125; 126) "=" | 38 | WHITESPACE@[124; 125) " " |
39 | WHITESPACE@[126; 127) " " | 39 | EQ@[125; 126) "=" |
40 | CALL_EXPR@[127; 162) | 40 | WHITESPACE@[126; 127) " " |
41 | PATH_EXPR@[127; 146) | 41 | CALL_EXPR@[127; 162) |
42 | PATH@[127; 146) | 42 | PATH_EXPR@[127; 146) |
43 | PATH@[127; 132) | 43 | PATH@[127; 146) |
44 | PATH_SEGMENT@[127; 132) | 44 | PATH@[127; 132) |
45 | NAME_REF@[127; 132) | 45 | PATH_SEGMENT@[127; 132) |
46 | IDENT@[127; 132) "panic" | 46 | NAME_REF@[127; 132) |
47 | COLONCOLON@[132; 134) "::" | 47 | IDENT@[127; 132) "panic" |
48 | PATH_SEGMENT@[134; 146) | 48 | COLONCOLON@[132; 134) "::" |
49 | NAME_REF@[134; 146) | 49 | PATH_SEGMENT@[134; 146) |
50 | IDENT@[134; 146) "catch_unwind" | 50 | NAME_REF@[134; 146) |
51 | ARG_LIST@[146; 162) | 51 | IDENT@[134; 146) "catch_unwind" |
52 | L_PAREN@[146; 147) "(" | 52 | ARG_LIST@[146; 162) |
53 | LAMBDA_EXPR@[147; 161) | 53 | L_PAREN@[146; 147) "(" |
54 | MOVE_KW@[147; 151) "move" | 54 | LAMBDA_EXPR@[147; 161) |
55 | WHITESPACE@[151; 152) " " | 55 | MOVE_KW@[147; 151) "move" |
56 | PARAM_LIST@[152; 154) | 56 | WHITESPACE@[151; 152) " " |
57 | PIPE@[152; 153) "|" | 57 | PARAM_LIST@[152; 154) |
58 | PIPE@[153; 154) "|" | 58 | PIPE@[152; 153) "|" |
59 | WHITESPACE@[154; 155) " " | 59 | PIPE@[153; 154) "|" |
60 | CALL_EXPR@[155; 161) | 60 | WHITESPACE@[154; 155) " " |
61 | PATH_EXPR@[155; 159) | 61 | CALL_EXPR@[155; 161) |
62 | PATH@[155; 159) | 62 | PATH_EXPR@[155; 159) |
63 | PATH_SEGMENT@[155; 159) | 63 | PATH@[155; 159) |
64 | NAME_REF@[155; 159) | 64 | PATH_SEGMENT@[155; 159) |
65 | IDENT@[155; 159) "main" | 65 | NAME_REF@[155; 159) |
66 | ARG_LIST@[159; 161) | 66 | IDENT@[155; 159) "main" |
67 | L_PAREN@[159; 160) "(" | 67 | ARG_LIST@[159; 161) |
68 | R_PAREN@[160; 161) ")" | 68 | L_PAREN@[159; 160) "(" |
69 | R_PAREN@[161; 162) ")" | 69 | R_PAREN@[160; 161) ")" |
70 | SEMI@[162; 163) ";" | 70 | R_PAREN@[161; 162) ")" |
71 | WHITESPACE@[163; 164) "\n" | 71 | SEMI@[162; 163) ";" |
72 | R_CURLY@[164; 165) "}" | 72 | WHITESPACE@[163; 164) "\n" |
73 | R_CURLY@[164; 165) "}" | ||
73 | WHITESPACE@[165; 166) "\n" | 74 | WHITESPACE@[165; 166) "\n" |