diff options
Diffstat (limited to 'tests/data/parser')
-rw-r--r-- | tests/data/parser/inline/0043_call_expr.rs | 4 | ||||
-rw-r--r-- | tests/data/parser/inline/0043_call_expr.txt | 65 |
2 files changed, 69 insertions, 0 deletions
diff --git a/tests/data/parser/inline/0043_call_expr.rs b/tests/data/parser/inline/0043_call_expr.rs new file mode 100644 index 000000000..0c9a20718 --- /dev/null +++ b/tests/data/parser/inline/0043_call_expr.rs | |||
@@ -0,0 +1,4 @@ | |||
1 | fn foo() { | ||
2 | let _ = f(); | ||
3 | let _ = f()(1)(1, 2,); | ||
4 | } | ||
diff --git a/tests/data/parser/inline/0043_call_expr.txt b/tests/data/parser/inline/0043_call_expr.txt new file mode 100644 index 000000000..418d86270 --- /dev/null +++ b/tests/data/parser/inline/0043_call_expr.txt | |||
@@ -0,0 +1,65 @@ | |||
1 | FILE@[0; 57) | ||
2 | FN_ITEM@[0; 57) | ||
3 | FN_KW@[0; 2) | ||
4 | NAME@[2; 6) | ||
5 | WHITESPACE@[2; 3) | ||
6 | IDENT@[3; 6) "foo" | ||
7 | L_PAREN@[6; 7) | ||
8 | R_PAREN@[7; 8) | ||
9 | BLOCK@[8; 57) | ||
10 | WHITESPACE@[8; 9) | ||
11 | L_CURLY@[9; 10) | ||
12 | LET_STMT@[10; 32) | ||
13 | WHITESPACE@[10; 15) | ||
14 | LET_KW@[15; 18) | ||
15 | PLACEHOLDER_PAT@[18; 21) | ||
16 | WHITESPACE@[18; 19) | ||
17 | UNDERSCORE@[19; 20) | ||
18 | WHITESPACE@[20; 21) | ||
19 | EQ@[21; 22) | ||
20 | CALL_EXPR@[22; 26) | ||
21 | PATH_EXPR@[22; 24) | ||
22 | PATH@[22; 24) | ||
23 | PATH_SEGMENT@[22; 24) | ||
24 | NAME_REF@[22; 24) | ||
25 | WHITESPACE@[22; 23) | ||
26 | IDENT@[23; 24) "f" | ||
27 | L_PAREN@[24; 25) | ||
28 | R_PAREN@[25; 26) | ||
29 | SEMI@[26; 27) | ||
30 | WHITESPACE@[27; 32) | ||
31 | LET_STMT@[32; 55) | ||
32 | LET_KW@[32; 35) | ||
33 | PLACEHOLDER_PAT@[35; 38) | ||
34 | WHITESPACE@[35; 36) | ||
35 | UNDERSCORE@[36; 37) | ||
36 | WHITESPACE@[37; 38) | ||
37 | EQ@[38; 39) | ||
38 | CALL_EXPR@[39; 53) | ||
39 | CALL_EXPR@[39; 46) | ||
40 | CALL_EXPR@[39; 43) | ||
41 | PATH_EXPR@[39; 41) | ||
42 | PATH@[39; 41) | ||
43 | PATH_SEGMENT@[39; 41) | ||
44 | NAME_REF@[39; 41) | ||
45 | WHITESPACE@[39; 40) | ||
46 | IDENT@[40; 41) "f" | ||
47 | L_PAREN@[41; 42) | ||
48 | R_PAREN@[42; 43) | ||
49 | L_PAREN@[43; 44) | ||
50 | LITERAL@[44; 45) | ||
51 | INT_NUMBER@[44; 45) | ||
52 | R_PAREN@[45; 46) | ||
53 | L_PAREN@[46; 47) | ||
54 | LITERAL@[47; 48) | ||
55 | INT_NUMBER@[47; 48) | ||
56 | COMMA@[48; 49) | ||
57 | LITERAL@[49; 51) | ||
58 | WHITESPACE@[49; 50) | ||
59 | INT_NUMBER@[50; 51) | ||
60 | COMMA@[51; 52) | ||
61 | R_PAREN@[52; 53) | ||
62 | SEMI@[53; 54) | ||
63 | WHITESPACE@[54; 55) | ||
64 | R_CURLY@[55; 56) | ||
65 | WHITESPACE@[56; 57) | ||