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/0034_crate_path_in_call.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/0034_crate_path_in_call.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/ok/0034_crate_path_in_call.txt | 61 |
1 files changed, 31 insertions, 30 deletions
diff --git a/crates/ra_syntax/test_data/parser/ok/0034_crate_path_in_call.txt b/crates/ra_syntax/test_data/parser/ok/0034_crate_path_in_call.txt index a77d4aabe..fc0d452f4 100644 --- a/crates/ra_syntax/test_data/parser/ok/0034_crate_path_in_call.txt +++ b/crates/ra_syntax/test_data/parser/ok/0034_crate_path_in_call.txt | |||
@@ -8,34 +8,35 @@ SOURCE_FILE@[0; 62) | |||
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; 61) | 11 | BLOCK_EXPR@[10; 61) |
12 | L_CURLY@[10; 11) "{" | 12 | BLOCK@[10; 61) |
13 | WHITESPACE@[11; 16) "\n " | 13 | L_CURLY@[10; 11) "{" |
14 | EXPR_STMT@[16; 59) | 14 | WHITESPACE@[11; 16) "\n " |
15 | CALL_EXPR@[16; 58) | 15 | EXPR_STMT@[16; 59) |
16 | PATH_EXPR@[16; 26) | 16 | CALL_EXPR@[16; 58) |
17 | PATH@[16; 26) | 17 | PATH_EXPR@[16; 26) |
18 | PATH_SEGMENT@[16; 26) | 18 | PATH@[16; 26) |
19 | NAME_REF@[16; 26) | 19 | PATH_SEGMENT@[16; 26) |
20 | IDENT@[16; 26) "make_query" | 20 | NAME_REF@[16; 26) |
21 | ARG_LIST@[26; 58) | 21 | IDENT@[16; 26) "make_query" |
22 | L_PAREN@[26; 27) "(" | 22 | ARG_LIST@[26; 58) |
23 | PATH_EXPR@[27; 57) | 23 | L_PAREN@[26; 27) "(" |
24 | PATH@[27; 57) | 24 | PATH_EXPR@[27; 57) |
25 | PATH@[27; 44) | 25 | PATH@[27; 57) |
26 | PATH@[27; 32) | 26 | PATH@[27; 44) |
27 | PATH_SEGMENT@[27; 32) | 27 | PATH@[27; 32) |
28 | CRATE_KW@[27; 32) "crate" | 28 | PATH_SEGMENT@[27; 32) |
29 | COLONCOLON@[32; 34) "::" | 29 | CRATE_KW@[27; 32) "crate" |
30 | PATH_SEGMENT@[34; 44) | 30 | COLONCOLON@[32; 34) "::" |
31 | NAME_REF@[34; 44) | 31 | PATH_SEGMENT@[34; 44) |
32 | IDENT@[34; 44) "module_map" | 32 | NAME_REF@[34; 44) |
33 | COLONCOLON@[44; 46) "::" | 33 | IDENT@[34; 44) "module_map" |
34 | PATH_SEGMENT@[46; 57) | 34 | COLONCOLON@[44; 46) "::" |
35 | NAME_REF@[46; 57) | 35 | PATH_SEGMENT@[46; 57) |
36 | IDENT@[46; 57) "module_tree" | 36 | NAME_REF@[46; 57) |
37 | R_PAREN@[57; 58) ")" | 37 | IDENT@[46; 57) "module_tree" |
38 | SEMI@[58; 59) ";" | 38 | R_PAREN@[57; 58) ")" |
39 | WHITESPACE@[59; 60) "\n" | 39 | SEMI@[58; 59) ";" |
40 | R_CURLY@[60; 61) "}" | 40 | WHITESPACE@[59; 60) "\n" |
41 | R_CURLY@[60; 61) "}" | ||
41 | WHITESPACE@[61; 62) "\n" | 42 | WHITESPACE@[61; 62) "\n" |