diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0137_await_expr.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0137_await_expr.rast | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0137_await_expr.rast b/crates/ra_syntax/test_data/parser/inline/ok/0137_await_expr.rast new file mode 100644 index 000000000..a6ac0dbd8 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0137_await_expr.rast | |||
@@ -0,0 +1,70 @@ | |||
1 | SOURCE_FILE@[0; 67) | ||
2 | FN_DEF@[0; 66) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 6) | ||
6 | IDENT@[3; 6) "foo" | ||
7 | PARAM_LIST@[6; 8) | ||
8 | L_PAREN@[6; 7) "(" | ||
9 | R_PAREN@[7; 8) ")" | ||
10 | WHITESPACE@[8; 9) " " | ||
11 | BLOCK_EXPR@[9; 66) | ||
12 | BLOCK@[9; 66) | ||
13 | L_CURLY@[9; 10) "{" | ||
14 | WHITESPACE@[10; 15) "\n " | ||
15 | EXPR_STMT@[15; 23) | ||
16 | AWAIT_EXPR@[15; 22) | ||
17 | PATH_EXPR@[15; 16) | ||
18 | PATH@[15; 16) | ||
19 | PATH_SEGMENT@[15; 16) | ||
20 | NAME_REF@[15; 16) | ||
21 | IDENT@[15; 16) "x" | ||
22 | DOT@[16; 17) "." | ||
23 | AWAIT_KW@[17; 22) "await" | ||
24 | SEMI@[22; 23) ";" | ||
25 | WHITESPACE@[23; 28) "\n " | ||
26 | EXPR_STMT@[28; 38) | ||
27 | AWAIT_EXPR@[28; 37) | ||
28 | FIELD_EXPR@[28; 31) | ||
29 | PATH_EXPR@[28; 29) | ||
30 | PATH@[28; 29) | ||
31 | PATH_SEGMENT@[28; 29) | ||
32 | NAME_REF@[28; 29) | ||
33 | IDENT@[28; 29) "x" | ||
34 | DOT@[29; 30) "." | ||
35 | NAME_REF@[30; 31) | ||
36 | INT_NUMBER@[30; 31) "0" | ||
37 | DOT@[31; 32) "." | ||
38 | AWAIT_KW@[32; 37) "await" | ||
39 | SEMI@[37; 38) ";" | ||
40 | WHITESPACE@[38; 43) "\n " | ||
41 | EXPR_STMT@[43; 64) | ||
42 | METHOD_CALL_EXPR@[43; 63) | ||
43 | TRY_EXPR@[43; 55) | ||
44 | AWAIT_EXPR@[43; 54) | ||
45 | CALL_EXPR@[43; 48) | ||
46 | FIELD_EXPR@[43; 46) | ||
47 | PATH_EXPR@[43; 44) | ||
48 | PATH@[43; 44) | ||
49 | PATH_SEGMENT@[43; 44) | ||
50 | NAME_REF@[43; 44) | ||
51 | IDENT@[43; 44) "x" | ||
52 | DOT@[44; 45) "." | ||
53 | NAME_REF@[45; 46) | ||
54 | INT_NUMBER@[45; 46) "0" | ||
55 | ARG_LIST@[46; 48) | ||
56 | L_PAREN@[46; 47) "(" | ||
57 | R_PAREN@[47; 48) ")" | ||
58 | DOT@[48; 49) "." | ||
59 | AWAIT_KW@[49; 54) "await" | ||
60 | QUESTION@[54; 55) "?" | ||
61 | DOT@[55; 56) "." | ||
62 | NAME_REF@[56; 61) | ||
63 | IDENT@[56; 61) "hello" | ||
64 | ARG_LIST@[61; 63) | ||
65 | L_PAREN@[61; 62) "(" | ||
66 | R_PAREN@[62; 63) ")" | ||
67 | SEMI@[63; 64) ";" | ||
68 | WHITESPACE@[64; 65) "\n" | ||
69 | R_CURLY@[65; 66) "}" | ||
70 | WHITESPACE@[66; 67) "\n" | ||