diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/err/0029_field_completion.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/err/0029_field_completion.rast | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/err/0029_field_completion.rast b/crates/ra_syntax/test_data/parser/err/0029_field_completion.rast new file mode 100644 index 000000000..177849476 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/err/0029_field_completion.rast | |||
@@ -0,0 +1,36 @@ | |||
1 | SOURCE_FILE@[0; 24) | ||
2 | FN_DEF@[0; 23) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 6) | ||
6 | IDENT@[3; 6) "foo" | ||
7 | PARAM_LIST@[6; 12) | ||
8 | L_PAREN@[6; 7) "(" | ||
9 | PARAM@[7; 11) | ||
10 | BIND_PAT@[7; 8) | ||
11 | NAME@[7; 8) | ||
12 | IDENT@[7; 8) "a" | ||
13 | COLON@[8; 9) ":" | ||
14 | WHITESPACE@[9; 10) " " | ||
15 | PATH_TYPE@[10; 11) | ||
16 | PATH@[10; 11) | ||
17 | PATH_SEGMENT@[10; 11) | ||
18 | NAME_REF@[10; 11) | ||
19 | IDENT@[10; 11) "A" | ||
20 | R_PAREN@[11; 12) ")" | ||
21 | WHITESPACE@[12; 13) " " | ||
22 | BLOCK_EXPR@[13; 23) | ||
23 | BLOCK@[13; 23) | ||
24 | L_CURLY@[13; 14) "{" | ||
25 | WHITESPACE@[14; 19) "\n " | ||
26 | FIELD_EXPR@[19; 21) | ||
27 | PATH_EXPR@[19; 20) | ||
28 | PATH@[19; 20) | ||
29 | PATH_SEGMENT@[19; 20) | ||
30 | NAME_REF@[19; 20) | ||
31 | IDENT@[19; 20) "a" | ||
32 | DOT@[20; 21) "." | ||
33 | WHITESPACE@[21; 22) "\n" | ||
34 | R_CURLY@[22; 23) "}" | ||
35 | WHITESPACE@[23; 24) "\n" | ||
36 | error [21; 21): expected field name or number | ||