diff options
author | Aleksey Kladov <[email protected]> | 2018-08-28 09:12:42 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-28 09:12:42 +0100 |
commit | 2fa90e736b026ee979d9eb59178dc1f792228250 (patch) | |
tree | adba3a569241a2030bf66e4e0b24ac5ffeaccbc3 /crates/libsyntax2/tests/data/parser/err/0019_let_recover.txt | |
parent | 13110f48e948d7554500aefc336e72f96041386b (diff) |
better recovery for exprs
Diffstat (limited to 'crates/libsyntax2/tests/data/parser/err/0019_let_recover.txt')
-rw-r--r-- | crates/libsyntax2/tests/data/parser/err/0019_let_recover.txt | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/crates/libsyntax2/tests/data/parser/err/0019_let_recover.txt b/crates/libsyntax2/tests/data/parser/err/0019_let_recover.txt new file mode 100644 index 000000000..9ffa9d781 --- /dev/null +++ b/crates/libsyntax2/tests/data/parser/err/0019_let_recover.txt | |||
@@ -0,0 +1,39 @@ | |||
1 | ROOT@[0; 44) | ||
2 | FN_DEF@[0; 43) | ||
3 | FN_KW@[0; 2) | ||
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; 43) | ||
12 | L_CURLY@[9; 10) | ||
13 | WHITESPACE@[10; 15) | ||
14 | LET_STMT@[15; 24) | ||
15 | LET_KW@[15; 18) | ||
16 | WHITESPACE@[18; 19) | ||
17 | BIND_PAT@[19; 22) | ||
18 | NAME@[19; 22) | ||
19 | IDENT@[19; 22) "foo" | ||
20 | WHITESPACE@[22; 23) | ||
21 | EQ@[23; 24) | ||
22 | err: `expected expression` | ||
23 | err: `expected SEMI` | ||
24 | WHITESPACE@[24; 29) | ||
25 | LET_STMT@[29; 41) | ||
26 | LET_KW@[29; 32) | ||
27 | WHITESPACE@[32; 33) | ||
28 | BIND_PAT@[33; 36) | ||
29 | NAME@[33; 36) | ||
30 | IDENT@[33; 36) "bar" | ||
31 | WHITESPACE@[36; 37) | ||
32 | EQ@[37; 38) | ||
33 | WHITESPACE@[38; 39) | ||
34 | LITERAL@[39; 40) | ||
35 | INT_NUMBER@[39; 40) "1" | ||
36 | SEMI@[40; 41) | ||
37 | WHITESPACE@[41; 42) | ||
38 | R_CURLY@[42; 43) | ||
39 | WHITESPACE@[43; 44) | ||