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/0132_box_expr.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/0132_box_expr.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0132_box_expr.txt | 157 |
1 files changed, 79 insertions, 78 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0132_box_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0132_box_expr.txt index 3d22002a1..12294210e 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0132_box_expr.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0132_box_expr.txt | |||
@@ -8,82 +8,83 @@ SOURCE_FILE@[0; 106) | |||
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; 105) | 11 | BLOCK_EXPR@[9; 105) |
12 | L_CURLY@[9; 10) "{" | 12 | BLOCK@[9; 105) |
13 | WHITESPACE@[10; 15) "\n " | 13 | L_CURLY@[9; 10) "{" |
14 | LET_STMT@[15; 32) | 14 | WHITESPACE@[10; 15) "\n " |
15 | LET_KW@[15; 18) "let" | 15 | LET_STMT@[15; 32) |
16 | WHITESPACE@[18; 19) " " | 16 | LET_KW@[15; 18) "let" |
17 | BIND_PAT@[19; 20) | 17 | WHITESPACE@[18; 19) " " |
18 | NAME@[19; 20) | 18 | BIND_PAT@[19; 20) |
19 | IDENT@[19; 20) "x" | 19 | NAME@[19; 20) |
20 | WHITESPACE@[20; 21) " " | 20 | IDENT@[19; 20) "x" |
21 | EQ@[21; 22) "=" | 21 | WHITESPACE@[20; 21) " " |
22 | WHITESPACE@[22; 23) " " | 22 | EQ@[21; 22) "=" |
23 | BOX_EXPR@[23; 31) | 23 | WHITESPACE@[22; 23) " " |
24 | BOX_KW@[23; 26) "box" | 24 | BOX_EXPR@[23; 31) |
25 | WHITESPACE@[26; 27) " " | 25 | BOX_KW@[23; 26) "box" |
26 | LITERAL@[27; 31) | 26 | WHITESPACE@[26; 27) " " |
27 | INT_NUMBER@[27; 31) "1i32" | 27 | LITERAL@[27; 31) |
28 | SEMI@[31; 32) ";" | 28 | INT_NUMBER@[27; 31) "1i32" |
29 | WHITESPACE@[32; 37) "\n " | 29 | SEMI@[31; 32) ";" |
30 | LET_STMT@[37; 66) | 30 | WHITESPACE@[32; 37) "\n " |
31 | LET_KW@[37; 40) "let" | 31 | LET_STMT@[37; 66) |
32 | WHITESPACE@[40; 41) " " | 32 | LET_KW@[37; 40) "let" |
33 | BIND_PAT@[41; 42) | 33 | WHITESPACE@[40; 41) " " |
34 | NAME@[41; 42) | 34 | BIND_PAT@[41; 42) |
35 | IDENT@[41; 42) "y" | 35 | NAME@[41; 42) |
36 | WHITESPACE@[42; 43) " " | 36 | IDENT@[41; 42) "y" |
37 | EQ@[43; 44) "=" | 37 | WHITESPACE@[42; 43) " " |
38 | WHITESPACE@[44; 45) " " | 38 | EQ@[43; 44) "=" |
39 | TUPLE_EXPR@[45; 65) | 39 | WHITESPACE@[44; 45) " " |
40 | L_PAREN@[45; 46) "(" | 40 | TUPLE_EXPR@[45; 65) |
41 | BOX_EXPR@[46; 54) | 41 | L_PAREN@[45; 46) "(" |
42 | BOX_KW@[46; 49) "box" | 42 | BOX_EXPR@[46; 54) |
43 | WHITESPACE@[49; 50) " " | 43 | BOX_KW@[46; 49) "box" |
44 | LITERAL@[50; 54) | 44 | WHITESPACE@[49; 50) " " |
45 | INT_NUMBER@[50; 54) "1i32" | 45 | LITERAL@[50; 54) |
46 | COMMA@[54; 55) "," | 46 | INT_NUMBER@[50; 54) "1i32" |
47 | WHITESPACE@[55; 56) " " | 47 | COMMA@[54; 55) "," |
48 | BOX_EXPR@[56; 64) | 48 | WHITESPACE@[55; 56) " " |
49 | BOX_KW@[56; 59) "box" | 49 | BOX_EXPR@[56; 64) |
50 | WHITESPACE@[59; 60) " " | 50 | BOX_KW@[56; 59) "box" |
51 | LITERAL@[60; 64) | 51 | WHITESPACE@[59; 60) " " |
52 | INT_NUMBER@[60; 64) "2i32" | 52 | LITERAL@[60; 64) |
53 | R_PAREN@[64; 65) ")" | 53 | INT_NUMBER@[60; 64) "2i32" |
54 | SEMI@[65; 66) ";" | 54 | R_PAREN@[64; 65) ")" |
55 | WHITESPACE@[66; 71) "\n " | 55 | SEMI@[65; 66) ";" |
56 | LET_STMT@[71; 103) | 56 | WHITESPACE@[66; 71) "\n " |
57 | LET_KW@[71; 74) "let" | 57 | LET_STMT@[71; 103) |
58 | WHITESPACE@[74; 75) " " | 58 | LET_KW@[71; 74) "let" |
59 | BIND_PAT@[75; 76) | 59 | WHITESPACE@[74; 75) " " |
60 | NAME@[75; 76) | 60 | BIND_PAT@[75; 76) |
61 | IDENT@[75; 76) "z" | 61 | NAME@[75; 76) |
62 | WHITESPACE@[76; 77) " " | 62 | IDENT@[75; 76) "z" |
63 | EQ@[77; 78) "=" | 63 | WHITESPACE@[76; 77) " " |
64 | WHITESPACE@[78; 79) " " | 64 | EQ@[77; 78) "=" |
65 | CALL_EXPR@[79; 102) | 65 | WHITESPACE@[78; 79) " " |
66 | PATH_EXPR@[79; 82) | 66 | CALL_EXPR@[79; 102) |
67 | PATH@[79; 82) | 67 | PATH_EXPR@[79; 82) |
68 | PATH_SEGMENT@[79; 82) | 68 | PATH@[79; 82) |
69 | NAME_REF@[79; 82) | 69 | PATH_SEGMENT@[79; 82) |
70 | IDENT@[79; 82) "Foo" | 70 | NAME_REF@[79; 82) |
71 | ARG_LIST@[82; 102) | 71 | IDENT@[79; 82) "Foo" |
72 | L_PAREN@[82; 83) "(" | 72 | ARG_LIST@[82; 102) |
73 | BOX_EXPR@[83; 91) | 73 | L_PAREN@[82; 83) "(" |
74 | BOX_KW@[83; 86) "box" | 74 | BOX_EXPR@[83; 91) |
75 | WHITESPACE@[86; 87) " " | 75 | BOX_KW@[83; 86) "box" |
76 | LITERAL@[87; 91) | 76 | WHITESPACE@[86; 87) " " |
77 | INT_NUMBER@[87; 91) "1i32" | 77 | LITERAL@[87; 91) |
78 | COMMA@[91; 92) "," | 78 | INT_NUMBER@[87; 91) "1i32" |
79 | WHITESPACE@[92; 93) " " | 79 | COMMA@[91; 92) "," |
80 | BOX_EXPR@[93; 101) | 80 | WHITESPACE@[92; 93) " " |
81 | BOX_KW@[93; 96) "box" | 81 | BOX_EXPR@[93; 101) |
82 | WHITESPACE@[96; 97) " " | 82 | BOX_KW@[93; 96) "box" |
83 | LITERAL@[97; 101) | 83 | WHITESPACE@[96; 97) " " |
84 | INT_NUMBER@[97; 101) "2i32" | 84 | LITERAL@[97; 101) |
85 | R_PAREN@[101; 102) ")" | 85 | INT_NUMBER@[97; 101) "2i32" |
86 | SEMI@[102; 103) ";" | 86 | R_PAREN@[101; 102) ")" |
87 | WHITESPACE@[103; 104) "\n" | 87 | SEMI@[102; 103) ";" |
88 | R_CURLY@[104; 105) "}" | 88 | WHITESPACE@[103; 104) "\n" |
89 | R_CURLY@[104; 105) "}" | ||
89 | WHITESPACE@[105; 106) "\n" | 90 | WHITESPACE@[105; 106) "\n" |