diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/ok/0001_struct_item.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/ok/0001_struct_item.rast | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/ok/0001_struct_item.rast b/crates/ra_syntax/test_data/parser/ok/0001_struct_item.rast new file mode 100644 index 000000000..fdc2d6768 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/ok/0001_struct_item.rast | |||
@@ -0,0 +1,39 @@ | |||
1 | SOURCE_FILE@[0; 32) | ||
2 | STRUCT_DEF@[0; 31) | ||
3 | STRUCT_KW@[0; 6) "struct" | ||
4 | WHITESPACE@[6; 7) " " | ||
5 | NAME@[7; 8) | ||
6 | IDENT@[7; 8) "S" | ||
7 | TYPE_PARAM_LIST@[8; 17) | ||
8 | L_ANGLE@[8; 9) "<" | ||
9 | TYPE_PARAM@[9; 16) | ||
10 | NAME@[9; 10) | ||
11 | IDENT@[9; 10) "T" | ||
12 | COLON@[10; 11) ":" | ||
13 | WHITESPACE@[11; 12) " " | ||
14 | TYPE_BOUND_LIST@[12; 16) | ||
15 | TYPE_BOUND@[12; 16) | ||
16 | PATH_TYPE@[12; 16) | ||
17 | PATH@[12; 16) | ||
18 | PATH_SEGMENT@[12; 16) | ||
19 | NAME_REF@[12; 16) | ||
20 | IDENT@[12; 16) "Copy" | ||
21 | R_ANGLE@[16; 17) ">" | ||
22 | WHITESPACE@[17; 18) " " | ||
23 | RECORD_FIELD_DEF_LIST@[18; 31) | ||
24 | L_CURLY@[18; 19) "{" | ||
25 | WHITESPACE@[19; 24) "\n " | ||
26 | RECORD_FIELD_DEF@[24; 28) | ||
27 | NAME@[24; 25) | ||
28 | IDENT@[24; 25) "f" | ||
29 | COLON@[25; 26) ":" | ||
30 | WHITESPACE@[26; 27) " " | ||
31 | PATH_TYPE@[27; 28) | ||
32 | PATH@[27; 28) | ||
33 | PATH_SEGMENT@[27; 28) | ||
34 | NAME_REF@[27; 28) | ||
35 | IDENT@[27; 28) "T" | ||
36 | COMMA@[28; 29) "," | ||
37 | WHITESPACE@[29; 30) "\n" | ||
38 | R_CURLY@[30; 31) "}" | ||
39 | WHITESPACE@[31; 32) "\n" | ||