diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/data/parser/inline/0051_method_call_expr.rs | 2 | ||||
-rw-r--r-- | tests/data/parser/inline/0051_method_call_expr.txt | 48 |
2 files changed, 30 insertions, 20 deletions
diff --git a/tests/data/parser/inline/0051_method_call_expr.rs b/tests/data/parser/inline/0051_method_call_expr.rs index 236d94e88..1a3aa35ae 100644 --- a/tests/data/parser/inline/0051_method_call_expr.rs +++ b/tests/data/parser/inline/0051_method_call_expr.rs | |||
@@ -1,4 +1,4 @@ | |||
1 | fn foo() { | 1 | fn foo() { |
2 | x.foo(); | 2 | x.foo(); |
3 | y.bar(1, 2,); | 3 | y.bar::<T>(1, 2,); |
4 | } | 4 | } |
diff --git a/tests/data/parser/inline/0051_method_call_expr.txt b/tests/data/parser/inline/0051_method_call_expr.txt index bf3705878..598056c88 100644 --- a/tests/data/parser/inline/0051_method_call_expr.txt +++ b/tests/data/parser/inline/0051_method_call_expr.txt | |||
@@ -1,5 +1,5 @@ | |||
1 | FILE@[0; 44) | 1 | FILE@[0; 49) |
2 | FN_ITEM@[0; 44) | 2 | FN_ITEM@[0; 49) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | NAME@[2; 6) | 4 | NAME@[2; 6) |
5 | WHITESPACE@[2; 3) | 5 | WHITESPACE@[2; 3) |
@@ -8,7 +8,7 @@ FILE@[0; 44) | |||
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_EXPR@[9; 44) | 11 | BLOCK_EXPR@[9; 49) |
12 | L_CURLY@[9; 10) | 12 | L_CURLY@[9; 10) |
13 | EXPR_STMT@[10; 28) | 13 | EXPR_STMT@[10; 28) |
14 | METHOD_CALL_EXPR@[10; 22) | 14 | METHOD_CALL_EXPR@[10; 22) |
@@ -26,8 +26,8 @@ FILE@[0; 44) | |||
26 | R_PAREN@[21; 22) | 26 | R_PAREN@[21; 22) |
27 | SEMI@[22; 23) | 27 | SEMI@[22; 23) |
28 | WHITESPACE@[23; 28) | 28 | WHITESPACE@[23; 28) |
29 | EXPR_STMT@[28; 42) | 29 | EXPR_STMT@[28; 47) |
30 | METHOD_CALL_EXPR@[28; 40) | 30 | METHOD_CALL_EXPR@[28; 45) |
31 | PATH_EXPR@[28; 29) | 31 | PATH_EXPR@[28; 29) |
32 | PATH@[28; 29) | 32 | PATH@[28; 29) |
33 | PATH_SEGMENT@[28; 29) | 33 | PATH_SEGMENT@[28; 29) |
@@ -36,17 +36,27 @@ FILE@[0; 44) | |||
36 | DOT@[29; 30) | 36 | DOT@[29; 30) |
37 | NAME_REF@[30; 33) | 37 | NAME_REF@[30; 33) |
38 | IDENT@[30; 33) "bar" | 38 | IDENT@[30; 33) "bar" |
39 | ARG_LIST@[33; 40) | 39 | TYPE_ARG_LIST@[33; 38) |
40 | L_PAREN@[33; 34) | 40 | COLONCOLON@[33; 35) |
41 | LITERAL@[34; 35) | 41 | L_ANGLE@[35; 36) |
42 | INT_NUMBER@[34; 35) "1" | 42 | TYPE_ARG@[36; 37) |
43 | COMMA@[35; 36) | 43 | PATH_TYPE@[36; 37) |
44 | LITERAL@[36; 38) | 44 | PATH@[36; 37) |
45 | WHITESPACE@[36; 37) | 45 | PATH_SEGMENT@[36; 37) |
46 | INT_NUMBER@[37; 38) "2" | 46 | NAME_REF@[36; 37) |
47 | COMMA@[38; 39) | 47 | IDENT@[36; 37) "T" |
48 | R_PAREN@[39; 40) | 48 | R_ANGLE@[37; 38) |
49 | SEMI@[40; 41) | 49 | ARG_LIST@[38; 45) |
50 | WHITESPACE@[41; 42) | 50 | L_PAREN@[38; 39) |
51 | R_CURLY@[42; 43) | 51 | LITERAL@[39; 40) |
52 | WHITESPACE@[43; 44) | 52 | INT_NUMBER@[39; 40) "1" |
53 | COMMA@[40; 41) | ||
54 | LITERAL@[41; 43) | ||
55 | WHITESPACE@[41; 42) | ||
56 | INT_NUMBER@[42; 43) "2" | ||
57 | COMMA@[43; 44) | ||
58 | R_PAREN@[44; 45) | ||
59 | SEMI@[45; 46) | ||
60 | WHITESPACE@[46; 47) | ||
61 | R_CURLY@[47; 48) | ||
62 | WHITESPACE@[48; 49) | ||