diff options
author | Aleksey Kladov <[email protected]> | 2019-07-24 10:38:21 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-07-24 10:49:19 +0100 |
commit | 459241f272748ff2e57b2c7e84f5a04f78d67edb (patch) | |
tree | 2353f8f068962313d0b2748aab58b71c4ca456d2 /crates/ra_syntax/test_data/parser/err/0016_missing_semi.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/test_data/parser/err/0016_missing_semi.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/err/0016_missing_semi.txt | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/err/0016_missing_semi.txt b/crates/ra_syntax/test_data/parser/err/0016_missing_semi.txt new file mode 100644 index 000000000..97e64dea9 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/err/0016_missing_semi.txt | |||
@@ -0,0 +1,43 @@ | |||
1 | SOURCE_FILE@[0; 56) | ||
2 | FN_DEF@[0; 55) | ||
3 | FN_KW@[0; 2) "fn" | ||
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; 55) | ||
12 | L_CURLY@[9; 10) "{" | ||
13 | WHITESPACE@[10; 15) "\n " | ||
14 | EXPR_STMT@[15; 38) | ||
15 | CALL_EXPR@[15; 38) | ||
16 | PATH_EXPR@[15; 18) | ||
17 | PATH@[15; 18) | ||
18 | PATH_SEGMENT@[15; 18) | ||
19 | NAME_REF@[15; 18) | ||
20 | IDENT@[15; 18) "foo" | ||
21 | ARG_LIST@[18; 38) | ||
22 | L_PAREN@[18; 19) "(" | ||
23 | WHITESPACE@[19; 28) "\n " | ||
24 | LITERAL@[28; 29) | ||
25 | INT_NUMBER@[28; 29) "1" | ||
26 | COMMA@[29; 30) "," | ||
27 | WHITESPACE@[30; 31) " " | ||
28 | LITERAL@[31; 32) | ||
29 | INT_NUMBER@[31; 32) "2" | ||
30 | WHITESPACE@[32; 37) "\n " | ||
31 | R_PAREN@[37; 38) ")" | ||
32 | WHITESPACE@[38; 43) "\n " | ||
33 | EXPR_STMT@[43; 53) | ||
34 | RETURN_EXPR@[43; 52) | ||
35 | RETURN_KW@[43; 49) "return" | ||
36 | WHITESPACE@[49; 50) " " | ||
37 | LITERAL@[50; 52) | ||
38 | INT_NUMBER@[50; 52) "92" | ||
39 | SEMI@[52; 53) ";" | ||
40 | WHITESPACE@[53; 54) "\n" | ||
41 | R_CURLY@[54; 55) "}" | ||
42 | WHITESPACE@[55; 56) "\n" | ||
43 | error 38: expected SEMI | ||