diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/ok/0024_const_item.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/ok/0024_const_item.rast | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/ok/0024_const_item.rast b/crates/ra_syntax/test_data/parser/ok/0024_const_item.rast new file mode 100644 index 000000000..abe9f851b --- /dev/null +++ b/crates/ra_syntax/test_data/parser/ok/0024_const_item.rast | |||
@@ -0,0 +1,59 @@ | |||
1 | SOURCE_FILE@[0; 64) | ||
2 | CONST_DEF@[0; 17) | ||
3 | CONST_KW@[0; 5) "const" | ||
4 | WHITESPACE@[5; 6) " " | ||
5 | UNDERSCORE@[6; 7) "_" | ||
6 | COLON@[7; 8) ":" | ||
7 | WHITESPACE@[8; 9) " " | ||
8 | PATH_TYPE@[9; 12) | ||
9 | PATH@[9; 12) | ||
10 | PATH_SEGMENT@[9; 12) | ||
11 | NAME_REF@[9; 12) | ||
12 | IDENT@[9; 12) "u32" | ||
13 | WHITESPACE@[12; 13) " " | ||
14 | EQ@[13; 14) "=" | ||
15 | WHITESPACE@[14; 15) " " | ||
16 | LITERAL@[15; 16) | ||
17 | INT_NUMBER@[15; 16) "0" | ||
18 | SEMI@[16; 17) ";" | ||
19 | WHITESPACE@[17; 18) "\n" | ||
20 | CONST_DEF@[18; 38) | ||
21 | CONST_KW@[18; 23) "const" | ||
22 | WHITESPACE@[23; 24) " " | ||
23 | NAME@[24; 27) | ||
24 | IDENT@[24; 27) "FOO" | ||
25 | COLON@[27; 28) ":" | ||
26 | WHITESPACE@[28; 29) " " | ||
27 | PATH_TYPE@[29; 32) | ||
28 | PATH@[29; 32) | ||
29 | PATH_SEGMENT@[29; 32) | ||
30 | NAME_REF@[29; 32) | ||
31 | IDENT@[29; 32) "u32" | ||
32 | WHITESPACE@[32; 33) " " | ||
33 | EQ@[33; 34) "=" | ||
34 | WHITESPACE@[34; 35) " " | ||
35 | LITERAL@[35; 37) | ||
36 | INT_NUMBER@[35; 37) "92" | ||
37 | SEMI@[37; 38) ";" | ||
38 | WHITESPACE@[38; 39) "\n" | ||
39 | CONST_DEF@[39; 63) | ||
40 | CONST_KW@[39; 44) "const" | ||
41 | WHITESPACE@[44; 45) " " | ||
42 | MUT_KW@[45; 48) "mut" | ||
43 | WHITESPACE@[48; 49) " " | ||
44 | NAME@[49; 52) | ||
45 | IDENT@[49; 52) "BAR" | ||
46 | COLON@[52; 53) ":" | ||
47 | WHITESPACE@[53; 54) " " | ||
48 | PATH_TYPE@[54; 57) | ||
49 | PATH@[54; 57) | ||
50 | PATH_SEGMENT@[54; 57) | ||
51 | NAME_REF@[54; 57) | ||
52 | IDENT@[54; 57) "u32" | ||
53 | WHITESPACE@[57; 58) " " | ||
54 | EQ@[58; 59) "=" | ||
55 | WHITESPACE@[59; 60) " " | ||
56 | LITERAL@[60; 62) | ||
57 | INT_NUMBER@[60; 62) "62" | ||
58 | SEMI@[62; 63) ";" | ||
59 | WHITESPACE@[63; 64) "\n" | ||