diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0125_record_literal_field_with_attr.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0125_record_literal_field_with_attr.rast | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0125_record_literal_field_with_attr.rast b/crates/ra_syntax/test_data/parser/inline/ok/0125_record_literal_field_with_attr.rast new file mode 100644 index 000000000..a36c3df0e --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0125_record_literal_field_with_attr.rast | |||
@@ -0,0 +1,48 @@ | |||
1 | SOURCE_FILE@[0; 46) | ||
2 | FN_DEF@[0; 45) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 7) | ||
6 | IDENT@[3; 7) "main" | ||
7 | PARAM_LIST@[7; 9) | ||
8 | L_PAREN@[7; 8) "(" | ||
9 | R_PAREN@[8; 9) ")" | ||
10 | WHITESPACE@[9; 10) " " | ||
11 | BLOCK_EXPR@[10; 45) | ||
12 | BLOCK@[10; 45) | ||
13 | L_CURLY@[10; 11) "{" | ||
14 | WHITESPACE@[11; 16) "\n " | ||
15 | RECORD_LIT@[16; 43) | ||
16 | PATH@[16; 17) | ||
17 | PATH_SEGMENT@[16; 17) | ||
18 | NAME_REF@[16; 17) | ||
19 | IDENT@[16; 17) "S" | ||
20 | WHITESPACE@[17; 18) " " | ||
21 | RECORD_FIELD_LIST@[18; 43) | ||
22 | L_CURLY@[18; 19) "{" | ||
23 | WHITESPACE@[19; 20) " " | ||
24 | RECORD_FIELD@[20; 41) | ||
25 | ATTR@[20; 32) | ||
26 | POUND@[20; 21) "#" | ||
27 | L_BRACK@[21; 22) "[" | ||
28 | PATH@[22; 25) | ||
29 | PATH_SEGMENT@[22; 25) | ||
30 | NAME_REF@[22; 25) | ||
31 | IDENT@[22; 25) "cfg" | ||
32 | TOKEN_TREE@[25; 31) | ||
33 | L_PAREN@[25; 26) "(" | ||
34 | IDENT@[26; 30) "test" | ||
35 | R_PAREN@[30; 31) ")" | ||
36 | R_BRACK@[31; 32) "]" | ||
37 | WHITESPACE@[32; 33) " " | ||
38 | NAME_REF@[33; 38) | ||
39 | IDENT@[33; 38) "field" | ||
40 | COLON@[38; 39) ":" | ||
41 | WHITESPACE@[39; 40) " " | ||
42 | LITERAL@[40; 41) | ||
43 | INT_NUMBER@[40; 41) "1" | ||
44 | WHITESPACE@[41; 42) " " | ||
45 | R_CURLY@[42; 43) "}" | ||
46 | WHITESPACE@[43; 44) "\n" | ||
47 | R_CURLY@[44; 45) "}" | ||
48 | WHITESPACE@[45; 46) "\n" | ||