diff options
author | Aleksey Kladov <[email protected]> | 2019-07-24 10:38:21 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-07-24 10:49:19 +0100 |
commit | 459241f272748ff2e57b2c7e84f5a04f78d67edb (patch) | |
tree | 2353f8f068962313d0b2748aab58b71c4ca456d2 /crates/ra_syntax/test_data/parser/inline/ok/0029_cast_expr.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0029_cast_expr.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0029_cast_expr.txt | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0029_cast_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0029_cast_expr.txt new file mode 100644 index 000000000..11c14e3b4 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0029_cast_expr.txt | |||
@@ -0,0 +1,89 @@ | |||
1 | SOURCE_FILE@[0; 89) | ||
2 | FN_DEF@[0; 88) | ||
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@[9; 88) | ||
12 | L_CURLY@[9; 10) "{" | ||
13 | WHITESPACE@[10; 15) "\n " | ||
14 | EXPR_STMT@[15; 25) | ||
15 | CAST_EXPR@[15; 24) | ||
16 | LITERAL@[15; 17) | ||
17 | INT_NUMBER@[15; 17) "82" | ||
18 | WHITESPACE@[17; 18) " " | ||
19 | AS_KW@[18; 20) "as" | ||
20 | WHITESPACE@[20; 21) " " | ||
21 | PATH_TYPE@[21; 24) | ||
22 | PATH@[21; 24) | ||
23 | PATH_SEGMENT@[21; 24) | ||
24 | NAME_REF@[21; 24) | ||
25 | IDENT@[21; 24) "i32" | ||
26 | SEMI@[24; 25) ";" | ||
27 | WHITESPACE@[25; 30) "\n " | ||
28 | EXPR_STMT@[30; 43) | ||
29 | BIN_EXPR@[30; 42) | ||
30 | CAST_EXPR@[30; 38) | ||
31 | LITERAL@[30; 32) | ||
32 | INT_NUMBER@[30; 32) "81" | ||
33 | WHITESPACE@[32; 33) " " | ||
34 | AS_KW@[33; 35) "as" | ||
35 | WHITESPACE@[35; 36) " " | ||
36 | PATH_TYPE@[36; 38) | ||
37 | PATH@[36; 38) | ||
38 | PATH_SEGMENT@[36; 38) | ||
39 | NAME_REF@[36; 38) | ||
40 | IDENT@[36; 38) "i8" | ||
41 | WHITESPACE@[38; 39) " " | ||
42 | PLUS@[39; 40) "+" | ||
43 | WHITESPACE@[40; 41) " " | ||
44 | LITERAL@[41; 42) | ||
45 | INT_NUMBER@[41; 42) "1" | ||
46 | SEMI@[42; 43) ";" | ||
47 | WHITESPACE@[43; 48) "\n " | ||
48 | EXPR_STMT@[48; 62) | ||
49 | BIN_EXPR@[48; 61) | ||
50 | CAST_EXPR@[48; 57) | ||
51 | LITERAL@[48; 50) | ||
52 | INT_NUMBER@[48; 50) "79" | ||
53 | WHITESPACE@[50; 51) " " | ||
54 | AS_KW@[51; 53) "as" | ||
55 | WHITESPACE@[53; 54) " " | ||
56 | PATH_TYPE@[54; 57) | ||
57 | PATH@[54; 57) | ||
58 | PATH_SEGMENT@[54; 57) | ||
59 | NAME_REF@[54; 57) | ||
60 | IDENT@[54; 57) "i16" | ||
61 | WHITESPACE@[57; 58) " " | ||
62 | MINUS@[58; 59) "-" | ||
63 | WHITESPACE@[59; 60) " " | ||
64 | LITERAL@[60; 61) | ||
65 | INT_NUMBER@[60; 61) "1" | ||
66 | SEMI@[61; 62) ";" | ||
67 | WHITESPACE@[62; 67) "\n " | ||
68 | EXPR_STMT@[67; 86) | ||
69 | BIN_EXPR@[67; 85) | ||
70 | CAST_EXPR@[67; 77) | ||
71 | LITERAL@[67; 71) | ||
72 | INT_NUMBER@[67; 71) "0x36" | ||
73 | WHITESPACE@[71; 72) " " | ||
74 | AS_KW@[72; 74) "as" | ||
75 | WHITESPACE@[74; 75) " " | ||
76 | PATH_TYPE@[75; 77) | ||
77 | PATH@[75; 77) | ||
78 | PATH_SEGMENT@[75; 77) | ||
79 | NAME_REF@[75; 77) | ||
80 | IDENT@[75; 77) "u8" | ||
81 | WHITESPACE@[77; 78) " " | ||
82 | LTEQ@[78; 80) "<=" | ||
83 | WHITESPACE@[80; 81) " " | ||
84 | LITERAL@[81; 85) | ||
85 | INT_NUMBER@[81; 85) "0x37" | ||
86 | SEMI@[85; 86) ";" | ||
87 | WHITESPACE@[86; 87) "\n" | ||
88 | R_CURLY@[87; 88) "}" | ||
89 | WHITESPACE@[88; 89) "\n" | ||