diff options
Diffstat (limited to 'tests/data/parser/inline')
-rw-r--r-- | tests/data/parser/inline/0051_method_call_expr.rs | 4 | ||||
-rw-r--r-- | tests/data/parser/inline/0051_method_call_expr.txt | 50 | ||||
-rw-r--r-- | tests/data/parser/inline/0052_field_expr.rs | 3 | ||||
-rw-r--r-- | tests/data/parser/inline/0052_field_expr.txt | 29 |
4 files changed, 86 insertions, 0 deletions
diff --git a/tests/data/parser/inline/0051_method_call_expr.rs b/tests/data/parser/inline/0051_method_call_expr.rs new file mode 100644 index 000000000..236d94e88 --- /dev/null +++ b/tests/data/parser/inline/0051_method_call_expr.rs | |||
@@ -0,0 +1,4 @@ | |||
1 | fn foo() { | ||
2 | x.foo(); | ||
3 | y.bar(1, 2,); | ||
4 | } | ||
diff --git a/tests/data/parser/inline/0051_method_call_expr.txt b/tests/data/parser/inline/0051_method_call_expr.txt new file mode 100644 index 000000000..69e13bd2a --- /dev/null +++ b/tests/data/parser/inline/0051_method_call_expr.txt | |||
@@ -0,0 +1,50 @@ | |||
1 | FILE@[0; 44) | ||
2 | FN_ITEM@[0; 44) | ||
3 | FN_KW@[0; 2) | ||
4 | NAME@[2; 6) | ||
5 | WHITESPACE@[2; 3) | ||
6 | IDENT@[3; 6) "foo" | ||
7 | PARAM_LIST@[6; 9) | ||
8 | L_PAREN@[6; 7) | ||
9 | R_PAREN@[7; 8) | ||
10 | WHITESPACE@[8; 9) | ||
11 | BLOCK@[9; 44) | ||
12 | L_CURLY@[9; 10) | ||
13 | EXPR_STMT@[10; 28) | ||
14 | METHOD_CALL_EXPR@[10; 22) | ||
15 | PATH_EXPR@[10; 16) | ||
16 | PATH@[10; 16) | ||
17 | PATH_SEGMENT@[10; 16) | ||
18 | NAME_REF@[10; 16) | ||
19 | WHITESPACE@[10; 15) | ||
20 | IDENT@[15; 16) "x" | ||
21 | DOT@[16; 17) | ||
22 | IDENT@[17; 20) "foo" | ||
23 | ARG_LIST@[20; 22) | ||
24 | L_PAREN@[20; 21) | ||
25 | R_PAREN@[21; 22) | ||
26 | SEMI@[22; 23) | ||
27 | WHITESPACE@[23; 28) | ||
28 | EXPR_STMT@[28; 42) | ||
29 | METHOD_CALL_EXPR@[28; 40) | ||
30 | PATH_EXPR@[28; 29) | ||
31 | PATH@[28; 29) | ||
32 | PATH_SEGMENT@[28; 29) | ||
33 | NAME_REF@[28; 29) | ||
34 | IDENT@[28; 29) "y" | ||
35 | DOT@[29; 30) | ||
36 | IDENT@[30; 33) "bar" | ||
37 | ARG_LIST@[33; 40) | ||
38 | L_PAREN@[33; 34) | ||
39 | LITERAL@[34; 35) | ||
40 | INT_NUMBER@[34; 35) | ||
41 | COMMA@[35; 36) | ||
42 | LITERAL@[36; 38) | ||
43 | WHITESPACE@[36; 37) | ||
44 | INT_NUMBER@[37; 38) | ||
45 | COMMA@[38; 39) | ||
46 | R_PAREN@[39; 40) | ||
47 | SEMI@[40; 41) | ||
48 | WHITESPACE@[41; 42) | ||
49 | R_CURLY@[42; 43) | ||
50 | WHITESPACE@[43; 44) | ||
diff --git a/tests/data/parser/inline/0052_field_expr.rs b/tests/data/parser/inline/0052_field_expr.rs new file mode 100644 index 000000000..874887eae --- /dev/null +++ b/tests/data/parser/inline/0052_field_expr.rs | |||
@@ -0,0 +1,3 @@ | |||
1 | fn foo() { | ||
2 | x.foo.bar; | ||
3 | } | ||
diff --git a/tests/data/parser/inline/0052_field_expr.txt b/tests/data/parser/inline/0052_field_expr.txt new file mode 100644 index 000000000..0ef2c5836 --- /dev/null +++ b/tests/data/parser/inline/0052_field_expr.txt | |||
@@ -0,0 +1,29 @@ | |||
1 | FILE@[0; 28) | ||
2 | FN_ITEM@[0; 28) | ||
3 | FN_KW@[0; 2) | ||
4 | NAME@[2; 6) | ||
5 | WHITESPACE@[2; 3) | ||
6 | IDENT@[3; 6) "foo" | ||
7 | PARAM_LIST@[6; 9) | ||
8 | L_PAREN@[6; 7) | ||
9 | R_PAREN@[7; 8) | ||
10 | WHITESPACE@[8; 9) | ||
11 | BLOCK@[9; 28) | ||
12 | L_CURLY@[9; 10) | ||
13 | EXPR_STMT@[10; 26) | ||
14 | FIELD_EXPR@[10; 24) | ||
15 | FIELD_EXPR@[10; 20) | ||
16 | PATH_EXPR@[10; 16) | ||
17 | PATH@[10; 16) | ||
18 | PATH_SEGMENT@[10; 16) | ||
19 | NAME_REF@[10; 16) | ||
20 | WHITESPACE@[10; 15) | ||
21 | IDENT@[15; 16) "x" | ||
22 | DOT@[16; 17) | ||
23 | IDENT@[17; 20) "foo" | ||
24 | DOT@[20; 21) | ||
25 | IDENT@[21; 24) "bar" | ||
26 | SEMI@[24; 25) | ||
27 | WHITESPACE@[25; 26) | ||
28 | R_CURLY@[26; 27) | ||
29 | WHITESPACE@[27; 28) | ||