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/0008_path_part.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/0008_path_part.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0008_path_part.txt | 169 |
1 files changed, 85 insertions, 84 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0008_path_part.txt b/crates/ra_syntax/test_data/parser/inline/ok/0008_path_part.txt index 4108762e5..80bb7733c 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0008_path_part.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0008_path_part.txt | |||
@@ -8,88 +8,89 @@ SOURCE_FILE@[0; 103) | |||
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; 102) | 11 | BLOCK_EXPR@[9; 102) |
12 | L_CURLY@[9; 10) "{" | 12 | BLOCK@[9; 102) |
13 | WHITESPACE@[10; 15) "\n " | 13 | L_CURLY@[9; 10) "{" |
14 | LET_STMT@[15; 33) | 14 | WHITESPACE@[10; 15) "\n " |
15 | LET_KW@[15; 18) "let" | 15 | LET_STMT@[15; 33) |
16 | WHITESPACE@[18; 19) " " | 16 | LET_KW@[15; 18) "let" |
17 | PATH_PAT@[19; 27) | 17 | WHITESPACE@[18; 19) " " |
18 | PATH@[19; 27) | 18 | PATH_PAT@[19; 27) |
19 | PATH@[19; 22) | 19 | PATH@[19; 27) |
20 | PATH_SEGMENT@[19; 22) | 20 | PATH@[19; 22) |
21 | NAME_REF@[19; 22) | 21 | PATH_SEGMENT@[19; 22) |
22 | IDENT@[19; 22) "foo" | 22 | NAME_REF@[19; 22) |
23 | COLONCOLON@[22; 24) "::" | 23 | IDENT@[19; 22) "foo" |
24 | PATH_SEGMENT@[24; 27) | 24 | COLONCOLON@[22; 24) "::" |
25 | NAME_REF@[24; 27) | 25 | PATH_SEGMENT@[24; 27) |
26 | IDENT@[24; 27) "Bar" | 26 | NAME_REF@[24; 27) |
27 | WHITESPACE@[27; 28) " " | 27 | IDENT@[24; 27) "Bar" |
28 | EQ@[28; 29) "=" | 28 | WHITESPACE@[27; 28) " " |
29 | WHITESPACE@[29; 30) " " | 29 | EQ@[28; 29) "=" |
30 | TUPLE_EXPR@[30; 32) | 30 | WHITESPACE@[29; 30) " " |
31 | L_PAREN@[30; 31) "(" | 31 | TUPLE_EXPR@[30; 32) |
32 | R_PAREN@[31; 32) ")" | 32 | L_PAREN@[30; 31) "(" |
33 | SEMI@[32; 33) ";" | 33 | R_PAREN@[31; 32) ")" |
34 | WHITESPACE@[33; 38) "\n " | 34 | SEMI@[32; 33) ";" |
35 | LET_STMT@[38; 53) | 35 | WHITESPACE@[33; 38) "\n " |
36 | LET_KW@[38; 41) "let" | 36 | LET_STMT@[38; 53) |
37 | WHITESPACE@[41; 42) " " | 37 | LET_KW@[38; 41) "let" |
38 | PATH_PAT@[42; 47) | 38 | WHITESPACE@[41; 42) " " |
39 | PATH@[42; 47) | 39 | PATH_PAT@[42; 47) |
40 | PATH_SEGMENT@[42; 47) | 40 | PATH@[42; 47) |
41 | COLONCOLON@[42; 44) "::" | 41 | PATH_SEGMENT@[42; 47) |
42 | NAME_REF@[44; 47) | 42 | COLONCOLON@[42; 44) "::" |
43 | IDENT@[44; 47) "Bar" | 43 | NAME_REF@[44; 47) |
44 | WHITESPACE@[47; 48) " " | 44 | IDENT@[44; 47) "Bar" |
45 | EQ@[48; 49) "=" | 45 | WHITESPACE@[47; 48) " " |
46 | WHITESPACE@[49; 50) " " | 46 | EQ@[48; 49) "=" |
47 | TUPLE_EXPR@[50; 52) | 47 | WHITESPACE@[49; 50) " " |
48 | L_PAREN@[50; 51) "(" | 48 | TUPLE_EXPR@[50; 52) |
49 | R_PAREN@[51; 52) ")" | 49 | L_PAREN@[50; 51) "(" |
50 | SEMI@[52; 53) ";" | 50 | R_PAREN@[51; 52) ")" |
51 | WHITESPACE@[53; 58) "\n " | 51 | SEMI@[52; 53) ";" |
52 | LET_STMT@[58; 78) | 52 | WHITESPACE@[53; 58) "\n " |
53 | LET_KW@[58; 61) "let" | 53 | LET_STMT@[58; 78) |
54 | WHITESPACE@[61; 62) " " | 54 | LET_KW@[58; 61) "let" |
55 | RECORD_PAT@[62; 72) | 55 | WHITESPACE@[61; 62) " " |
56 | PATH@[62; 65) | 56 | RECORD_PAT@[62; 72) |
57 | PATH_SEGMENT@[62; 65) | 57 | PATH@[62; 65) |
58 | NAME_REF@[62; 65) | 58 | PATH_SEGMENT@[62; 65) |
59 | IDENT@[62; 65) "Bar" | 59 | NAME_REF@[62; 65) |
60 | WHITESPACE@[65; 66) " " | 60 | IDENT@[62; 65) "Bar" |
61 | RECORD_FIELD_PAT_LIST@[66; 72) | 61 | WHITESPACE@[65; 66) " " |
62 | L_CURLY@[66; 67) "{" | 62 | RECORD_FIELD_PAT_LIST@[66; 72) |
63 | WHITESPACE@[67; 68) " " | 63 | L_CURLY@[66; 67) "{" |
64 | DOTDOT@[68; 70) ".." | 64 | WHITESPACE@[67; 68) " " |
65 | WHITESPACE@[70; 71) " " | 65 | DOTDOT@[68; 70) ".." |
66 | R_CURLY@[71; 72) "}" | 66 | WHITESPACE@[70; 71) " " |
67 | WHITESPACE@[72; 73) " " | 67 | R_CURLY@[71; 72) "}" |
68 | EQ@[73; 74) "=" | 68 | WHITESPACE@[72; 73) " " |
69 | WHITESPACE@[74; 75) " " | 69 | EQ@[73; 74) "=" |
70 | TUPLE_EXPR@[75; 77) | 70 | WHITESPACE@[74; 75) " " |
71 | L_PAREN@[75; 76) "(" | 71 | TUPLE_EXPR@[75; 77) |
72 | R_PAREN@[76; 77) ")" | 72 | L_PAREN@[75; 76) "(" |
73 | SEMI@[77; 78) ";" | 73 | R_PAREN@[76; 77) ")" |
74 | WHITESPACE@[78; 83) "\n " | 74 | SEMI@[77; 78) ";" |
75 | LET_STMT@[83; 100) | 75 | WHITESPACE@[78; 83) "\n " |
76 | LET_KW@[83; 86) "let" | 76 | LET_STMT@[83; 100) |
77 | WHITESPACE@[86; 87) " " | 77 | LET_KW@[83; 86) "let" |
78 | TUPLE_STRUCT_PAT@[87; 94) | 78 | WHITESPACE@[86; 87) " " |
79 | PATH@[87; 90) | 79 | TUPLE_STRUCT_PAT@[87; 94) |
80 | PATH_SEGMENT@[87; 90) | 80 | PATH@[87; 90) |
81 | NAME_REF@[87; 90) | 81 | PATH_SEGMENT@[87; 90) |
82 | IDENT@[87; 90) "Bar" | 82 | NAME_REF@[87; 90) |
83 | L_PAREN@[90; 91) "(" | 83 | IDENT@[87; 90) "Bar" |
84 | DOTDOT@[91; 93) ".." | 84 | L_PAREN@[90; 91) "(" |
85 | R_PAREN@[93; 94) ")" | 85 | DOTDOT@[91; 93) ".." |
86 | WHITESPACE@[94; 95) " " | 86 | R_PAREN@[93; 94) ")" |
87 | EQ@[95; 96) "=" | 87 | WHITESPACE@[94; 95) " " |
88 | WHITESPACE@[96; 97) " " | 88 | EQ@[95; 96) "=" |
89 | TUPLE_EXPR@[97; 99) | 89 | WHITESPACE@[96; 97) " " |
90 | L_PAREN@[97; 98) "(" | 90 | TUPLE_EXPR@[97; 99) |
91 | R_PAREN@[98; 99) ")" | 91 | L_PAREN@[97; 98) "(" |
92 | SEMI@[99; 100) ";" | 92 | R_PAREN@[98; 99) ")" |
93 | WHITESPACE@[100; 101) "\n" | 93 | SEMI@[99; 100) ";" |
94 | R_CURLY@[101; 102) "}" | 94 | WHITESPACE@[100; 101) "\n" |
95 | R_CURLY@[101; 102) "}" | ||
95 | WHITESPACE@[102; 103) "\n" | 96 | WHITESPACE@[102; 103) "\n" |