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/0053_path_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/0053_path_expr.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0053_path_expr.txt | 169 |
1 files changed, 85 insertions, 84 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0053_path_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0053_path_expr.txt index bc4b97c9f..f1018fcab 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0053_path_expr.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0053_path_expr.txt | |||
@@ -8,88 +8,89 @@ SOURCE_FILE@[0; 91) | |||
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; 90) | 11 | BLOCK_EXPR@[9; 90) |
12 | L_CURLY@[9; 10) "{" | 12 | BLOCK@[9; 90) |
13 | WHITESPACE@[10; 15) "\n " | 13 | L_CURLY@[9; 10) "{" |
14 | LET_STMT@[15; 25) | 14 | WHITESPACE@[10; 15) "\n " |
15 | LET_KW@[15; 18) "let" | 15 | LET_STMT@[15; 25) |
16 | WHITESPACE@[18; 19) " " | 16 | LET_KW@[15; 18) "let" |
17 | PLACEHOLDER_PAT@[19; 20) | 17 | WHITESPACE@[18; 19) " " |
18 | UNDERSCORE@[19; 20) "_" | 18 | PLACEHOLDER_PAT@[19; 20) |
19 | WHITESPACE@[20; 21) " " | 19 | UNDERSCORE@[19; 20) "_" |
20 | EQ@[21; 22) "=" | 20 | WHITESPACE@[20; 21) " " |
21 | WHITESPACE@[22; 23) " " | 21 | EQ@[21; 22) "=" |
22 | PATH_EXPR@[23; 24) | 22 | WHITESPACE@[22; 23) " " |
23 | PATH@[23; 24) | 23 | PATH_EXPR@[23; 24) |
24 | PATH_SEGMENT@[23; 24) | 24 | PATH@[23; 24) |
25 | NAME_REF@[23; 24) | 25 | PATH_SEGMENT@[23; 24) |
26 | IDENT@[23; 24) "a" | 26 | NAME_REF@[23; 24) |
27 | SEMI@[24; 25) ";" | 27 | IDENT@[23; 24) "a" |
28 | WHITESPACE@[25; 30) "\n " | 28 | SEMI@[24; 25) ";" |
29 | LET_STMT@[30; 43) | 29 | WHITESPACE@[25; 30) "\n " |
30 | LET_KW@[30; 33) "let" | 30 | LET_STMT@[30; 43) |
31 | WHITESPACE@[33; 34) " " | 31 | LET_KW@[30; 33) "let" |
32 | PLACEHOLDER_PAT@[34; 35) | 32 | WHITESPACE@[33; 34) " " |
33 | UNDERSCORE@[34; 35) "_" | 33 | PLACEHOLDER_PAT@[34; 35) |
34 | WHITESPACE@[35; 36) " " | 34 | UNDERSCORE@[34; 35) "_" |
35 | EQ@[36; 37) "=" | 35 | WHITESPACE@[35; 36) " " |
36 | WHITESPACE@[37; 38) " " | 36 | EQ@[36; 37) "=" |
37 | PATH_EXPR@[38; 42) | 37 | WHITESPACE@[37; 38) " " |
38 | PATH@[38; 42) | 38 | PATH_EXPR@[38; 42) |
39 | PATH@[38; 39) | 39 | PATH@[38; 42) |
40 | PATH_SEGMENT@[38; 39) | 40 | PATH@[38; 39) |
41 | NAME_REF@[38; 39) | 41 | PATH_SEGMENT@[38; 39) |
42 | IDENT@[38; 39) "a" | 42 | NAME_REF@[38; 39) |
43 | COLONCOLON@[39; 41) "::" | 43 | IDENT@[38; 39) "a" |
44 | PATH_SEGMENT@[41; 42) | 44 | COLONCOLON@[39; 41) "::" |
45 | NAME_REF@[41; 42) | 45 | PATH_SEGMENT@[41; 42) |
46 | IDENT@[41; 42) "b" | 46 | NAME_REF@[41; 42) |
47 | SEMI@[42; 43) ";" | 47 | IDENT@[41; 42) "b" |
48 | WHITESPACE@[43; 48) "\n " | 48 | SEMI@[42; 43) ";" |
49 | LET_STMT@[48; 65) | 49 | WHITESPACE@[43; 48) "\n " |
50 | LET_KW@[48; 51) "let" | 50 | LET_STMT@[48; 65) |
51 | WHITESPACE@[51; 52) " " | 51 | LET_KW@[48; 51) "let" |
52 | PLACEHOLDER_PAT@[52; 53) | 52 | WHITESPACE@[51; 52) " " |
53 | UNDERSCORE@[52; 53) "_" | 53 | PLACEHOLDER_PAT@[52; 53) |
54 | WHITESPACE@[53; 54) " " | 54 | UNDERSCORE@[52; 53) "_" |
55 | EQ@[54; 55) "=" | 55 | WHITESPACE@[53; 54) " " |
56 | WHITESPACE@[55; 56) " " | 56 | EQ@[54; 55) "=" |
57 | PATH_EXPR@[56; 64) | 57 | WHITESPACE@[55; 56) " " |
58 | PATH@[56; 64) | 58 | PATH_EXPR@[56; 64) |
59 | PATH_SEGMENT@[56; 64) | 59 | PATH@[56; 64) |
60 | COLONCOLON@[56; 58) "::" | 60 | PATH_SEGMENT@[56; 64) |
61 | NAME_REF@[58; 59) | 61 | COLONCOLON@[56; 58) "::" |
62 | IDENT@[58; 59) "a" | 62 | NAME_REF@[58; 59) |
63 | TYPE_ARG_LIST@[59; 64) | 63 | IDENT@[58; 59) "a" |
64 | COLONCOLON@[59; 61) "::" | 64 | TYPE_ARG_LIST@[59; 64) |
65 | L_ANGLE@[61; 62) "<" | 65 | COLONCOLON@[59; 61) "::" |
66 | TYPE_ARG@[62; 63) | 66 | L_ANGLE@[61; 62) "<" |
67 | PATH_TYPE@[62; 63) | 67 | TYPE_ARG@[62; 63) |
68 | PATH@[62; 63) | 68 | PATH_TYPE@[62; 63) |
69 | PATH_SEGMENT@[62; 63) | 69 | PATH@[62; 63) |
70 | NAME_REF@[62; 63) | 70 | PATH_SEGMENT@[62; 63) |
71 | IDENT@[62; 63) "b" | 71 | NAME_REF@[62; 63) |
72 | R_ANGLE@[63; 64) ">" | 72 | IDENT@[62; 63) "b" |
73 | SEMI@[64; 65) ";" | 73 | R_ANGLE@[63; 64) ">" |
74 | WHITESPACE@[65; 70) "\n " | 74 | SEMI@[64; 65) ";" |
75 | LET_STMT@[70; 88) | 75 | WHITESPACE@[65; 70) "\n " |
76 | LET_KW@[70; 73) "let" | 76 | LET_STMT@[70; 88) |
77 | WHITESPACE@[73; 74) " " | 77 | LET_KW@[70; 73) "let" |
78 | PLACEHOLDER_PAT@[74; 75) | 78 | WHITESPACE@[73; 74) " " |
79 | UNDERSCORE@[74; 75) "_" | 79 | PLACEHOLDER_PAT@[74; 75) |
80 | WHITESPACE@[75; 76) " " | 80 | UNDERSCORE@[74; 75) "_" |
81 | EQ@[76; 77) "=" | 81 | WHITESPACE@[75; 76) " " |
82 | WHITESPACE@[77; 78) " " | 82 | EQ@[76; 77) "=" |
83 | MACRO_CALL@[78; 87) | 83 | WHITESPACE@[77; 78) " " |
84 | PATH@[78; 84) | 84 | MACRO_CALL@[78; 87) |
85 | PATH_SEGMENT@[78; 84) | 85 | PATH@[78; 84) |
86 | NAME_REF@[78; 84) | 86 | PATH_SEGMENT@[78; 84) |
87 | IDENT@[78; 84) "format" | 87 | NAME_REF@[78; 84) |
88 | EXCL@[84; 85) "!" | 88 | IDENT@[78; 84) "format" |
89 | TOKEN_TREE@[85; 87) | 89 | EXCL@[84; 85) "!" |
90 | L_PAREN@[85; 86) "(" | 90 | TOKEN_TREE@[85; 87) |
91 | R_PAREN@[86; 87) ")" | 91 | L_PAREN@[85; 86) "(" |
92 | SEMI@[87; 88) ";" | 92 | R_PAREN@[86; 87) ")" |
93 | WHITESPACE@[88; 89) "\n" | 93 | SEMI@[87; 88) ";" |
94 | R_CURLY@[89; 90) "}" | 94 | WHITESPACE@[88; 89) "\n" |
95 | R_CURLY@[89; 90) "}" | ||
95 | WHITESPACE@[90; 91) "\n" | 96 | WHITESPACE@[90; 91) "\n" |