diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0132_box_expr.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0132_box_expr.rast | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0132_box_expr.rast b/crates/ra_syntax/test_data/parser/inline/ok/0132_box_expr.rast new file mode 100644 index 000000000..12294210e --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0132_box_expr.rast | |||
@@ -0,0 +1,90 @@ | |||
1 | SOURCE_FILE@[0; 106) | ||
2 | FN_DEF@[0; 105) | ||
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; 105) | ||
12 | BLOCK@[9; 105) | ||
13 | L_CURLY@[9; 10) "{" | ||
14 | WHITESPACE@[10; 15) "\n " | ||
15 | LET_STMT@[15; 32) | ||
16 | LET_KW@[15; 18) "let" | ||
17 | WHITESPACE@[18; 19) " " | ||
18 | BIND_PAT@[19; 20) | ||
19 | NAME@[19; 20) | ||
20 | IDENT@[19; 20) "x" | ||
21 | WHITESPACE@[20; 21) " " | ||
22 | EQ@[21; 22) "=" | ||
23 | WHITESPACE@[22; 23) " " | ||
24 | BOX_EXPR@[23; 31) | ||
25 | BOX_KW@[23; 26) "box" | ||
26 | WHITESPACE@[26; 27) " " | ||
27 | LITERAL@[27; 31) | ||
28 | INT_NUMBER@[27; 31) "1i32" | ||
29 | SEMI@[31; 32) ";" | ||
30 | WHITESPACE@[32; 37) "\n " | ||
31 | LET_STMT@[37; 66) | ||
32 | LET_KW@[37; 40) "let" | ||
33 | WHITESPACE@[40; 41) " " | ||
34 | BIND_PAT@[41; 42) | ||
35 | NAME@[41; 42) | ||
36 | IDENT@[41; 42) "y" | ||
37 | WHITESPACE@[42; 43) " " | ||
38 | EQ@[43; 44) "=" | ||
39 | WHITESPACE@[44; 45) " " | ||
40 | TUPLE_EXPR@[45; 65) | ||
41 | L_PAREN@[45; 46) "(" | ||
42 | BOX_EXPR@[46; 54) | ||
43 | BOX_KW@[46; 49) "box" | ||
44 | WHITESPACE@[49; 50) " " | ||
45 | LITERAL@[50; 54) | ||
46 | INT_NUMBER@[50; 54) "1i32" | ||
47 | COMMA@[54; 55) "," | ||
48 | WHITESPACE@[55; 56) " " | ||
49 | BOX_EXPR@[56; 64) | ||
50 | BOX_KW@[56; 59) "box" | ||
51 | WHITESPACE@[59; 60) " " | ||
52 | LITERAL@[60; 64) | ||
53 | INT_NUMBER@[60; 64) "2i32" | ||
54 | R_PAREN@[64; 65) ")" | ||
55 | SEMI@[65; 66) ";" | ||
56 | WHITESPACE@[66; 71) "\n " | ||
57 | LET_STMT@[71; 103) | ||
58 | LET_KW@[71; 74) "let" | ||
59 | WHITESPACE@[74; 75) " " | ||
60 | BIND_PAT@[75; 76) | ||
61 | NAME@[75; 76) | ||
62 | IDENT@[75; 76) "z" | ||
63 | WHITESPACE@[76; 77) " " | ||
64 | EQ@[77; 78) "=" | ||
65 | WHITESPACE@[78; 79) " " | ||
66 | CALL_EXPR@[79; 102) | ||
67 | PATH_EXPR@[79; 82) | ||
68 | PATH@[79; 82) | ||
69 | PATH_SEGMENT@[79; 82) | ||
70 | NAME_REF@[79; 82) | ||
71 | IDENT@[79; 82) "Foo" | ||
72 | ARG_LIST@[82; 102) | ||
73 | L_PAREN@[82; 83) "(" | ||
74 | BOX_EXPR@[83; 91) | ||
75 | BOX_KW@[83; 86) "box" | ||
76 | WHITESPACE@[86; 87) " " | ||
77 | LITERAL@[87; 91) | ||
78 | INT_NUMBER@[87; 91) "1i32" | ||
79 | COMMA@[91; 92) "," | ||
80 | WHITESPACE@[92; 93) " " | ||
81 | BOX_EXPR@[93; 101) | ||
82 | BOX_KW@[93; 96) "box" | ||
83 | WHITESPACE@[96; 97) " " | ||
84 | LITERAL@[97; 101) | ||
85 | INT_NUMBER@[97; 101) "2i32" | ||
86 | R_PAREN@[101; 102) ")" | ||
87 | SEMI@[102; 103) ";" | ||
88 | WHITESPACE@[103; 104) "\n" | ||
89 | R_CURLY@[104; 105) "}" | ||
90 | WHITESPACE@[105; 106) "\n" | ||