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/0107_method_call_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/0107_method_call_expr.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0107_method_call_expr.txt | 103 |
1 files changed, 52 insertions, 51 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0107_method_call_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0107_method_call_expr.txt index bc28b293e..ba478528c 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0107_method_call_expr.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0107_method_call_expr.txt | |||
@@ -8,55 +8,56 @@ SOURCE_FILE@[0; 49) | |||
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; 48) | 11 | BLOCK_EXPR@[9; 48) |
12 | L_CURLY@[9; 10) "{" | 12 | BLOCK@[9; 48) |
13 | WHITESPACE@[10; 15) "\n " | 13 | L_CURLY@[9; 10) "{" |
14 | EXPR_STMT@[15; 23) | 14 | WHITESPACE@[10; 15) "\n " |
15 | METHOD_CALL_EXPR@[15; 22) | 15 | EXPR_STMT@[15; 23) |
16 | PATH_EXPR@[15; 16) | 16 | METHOD_CALL_EXPR@[15; 22) |
17 | PATH@[15; 16) | 17 | PATH_EXPR@[15; 16) |
18 | PATH_SEGMENT@[15; 16) | 18 | PATH@[15; 16) |
19 | NAME_REF@[15; 16) | 19 | PATH_SEGMENT@[15; 16) |
20 | IDENT@[15; 16) "x" | 20 | NAME_REF@[15; 16) |
21 | DOT@[16; 17) "." | 21 | IDENT@[15; 16) "x" |
22 | NAME_REF@[17; 20) | 22 | DOT@[16; 17) "." |
23 | IDENT@[17; 20) "foo" | 23 | NAME_REF@[17; 20) |
24 | ARG_LIST@[20; 22) | 24 | IDENT@[17; 20) "foo" |
25 | L_PAREN@[20; 21) "(" | 25 | ARG_LIST@[20; 22) |
26 | R_PAREN@[21; 22) ")" | 26 | L_PAREN@[20; 21) "(" |
27 | SEMI@[22; 23) ";" | 27 | R_PAREN@[21; 22) ")" |
28 | WHITESPACE@[23; 28) "\n " | 28 | SEMI@[22; 23) ";" |
29 | EXPR_STMT@[28; 46) | 29 | WHITESPACE@[23; 28) "\n " |
30 | METHOD_CALL_EXPR@[28; 45) | 30 | EXPR_STMT@[28; 46) |
31 | PATH_EXPR@[28; 29) | 31 | METHOD_CALL_EXPR@[28; 45) |
32 | PATH@[28; 29) | 32 | PATH_EXPR@[28; 29) |
33 | PATH_SEGMENT@[28; 29) | 33 | PATH@[28; 29) |
34 | NAME_REF@[28; 29) | 34 | PATH_SEGMENT@[28; 29) |
35 | IDENT@[28; 29) "y" | 35 | NAME_REF@[28; 29) |
36 | DOT@[29; 30) "." | 36 | IDENT@[28; 29) "y" |
37 | NAME_REF@[30; 33) | 37 | DOT@[29; 30) "." |
38 | IDENT@[30; 33) "bar" | 38 | NAME_REF@[30; 33) |
39 | TYPE_ARG_LIST@[33; 38) | 39 | IDENT@[30; 33) "bar" |
40 | COLONCOLON@[33; 35) "::" | 40 | TYPE_ARG_LIST@[33; 38) |
41 | L_ANGLE@[35; 36) "<" | 41 | COLONCOLON@[33; 35) "::" |
42 | TYPE_ARG@[36; 37) | 42 | L_ANGLE@[35; 36) "<" |
43 | PATH_TYPE@[36; 37) | 43 | TYPE_ARG@[36; 37) |
44 | PATH@[36; 37) | 44 | PATH_TYPE@[36; 37) |
45 | PATH_SEGMENT@[36; 37) | 45 | PATH@[36; 37) |
46 | NAME_REF@[36; 37) | 46 | PATH_SEGMENT@[36; 37) |
47 | IDENT@[36; 37) "T" | 47 | NAME_REF@[36; 37) |
48 | R_ANGLE@[37; 38) ">" | 48 | IDENT@[36; 37) "T" |
49 | ARG_LIST@[38; 45) | 49 | R_ANGLE@[37; 38) ">" |
50 | L_PAREN@[38; 39) "(" | 50 | ARG_LIST@[38; 45) |
51 | LITERAL@[39; 40) | 51 | L_PAREN@[38; 39) "(" |
52 | INT_NUMBER@[39; 40) "1" | 52 | LITERAL@[39; 40) |
53 | COMMA@[40; 41) "," | 53 | INT_NUMBER@[39; 40) "1" |
54 | WHITESPACE@[41; 42) " " | 54 | COMMA@[40; 41) "," |
55 | LITERAL@[42; 43) | 55 | WHITESPACE@[41; 42) " " |
56 | INT_NUMBER@[42; 43) "2" | 56 | LITERAL@[42; 43) |
57 | COMMA@[43; 44) "," | 57 | INT_NUMBER@[42; 43) "2" |
58 | R_PAREN@[44; 45) ")" | 58 | COMMA@[43; 44) "," |
59 | SEMI@[45; 46) ";" | 59 | R_PAREN@[44; 45) ")" |
60 | WHITESPACE@[46; 47) "\n" | 60 | SEMI@[45; 46) ";" |
61 | R_CURLY@[47; 48) "}" | 61 | WHITESPACE@[46; 47) "\n" |
62 | R_CURLY@[47; 48) "}" | ||
62 | WHITESPACE@[48; 49) "\n" | 63 | WHITESPACE@[48; 49) "\n" |