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/0017_incomplete_binexpr.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/test_data/parser/err/0017_incomplete_binexpr.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/err/0017_incomplete_binexpr.txt | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/err/0017_incomplete_binexpr.txt b/crates/ra_syntax/test_data/parser/err/0017_incomplete_binexpr.txt new file mode 100644 index 000000000..c18e20900 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/err/0017_incomplete_binexpr.txt | |||
@@ -0,0 +1,46 @@ | |||
1 | SOURCE_FILE@[0; 47) | ||
2 | FN_DEF@[0; 46) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 6) | ||
6 | IDENT@[3; 6) "foo" | ||
7 | PARAM_LIST@[6; 16) | ||
8 | L_PAREN@[6; 7) "(" | ||
9 | PARAM@[7; 15) | ||
10 | BIND_PAT@[7; 10) | ||
11 | NAME@[7; 10) | ||
12 | IDENT@[7; 10) "foo" | ||
13 | COLON@[10; 11) ":" | ||
14 | WHITESPACE@[11; 12) " " | ||
15 | PATH_TYPE@[12; 15) | ||
16 | PATH@[12; 15) | ||
17 | PATH_SEGMENT@[12; 15) | ||
18 | NAME_REF@[12; 15) | ||
19 | IDENT@[12; 15) "i32" | ||
20 | R_PAREN@[15; 16) ")" | ||
21 | WHITESPACE@[16; 17) " " | ||
22 | BLOCK@[17; 46) | ||
23 | L_CURLY@[17; 18) "{" | ||
24 | WHITESPACE@[18; 23) "\n " | ||
25 | LET_STMT@[23; 36) | ||
26 | LET_KW@[23; 26) "let" | ||
27 | WHITESPACE@[26; 27) " " | ||
28 | BIND_PAT@[27; 30) | ||
29 | NAME@[27; 30) | ||
30 | IDENT@[27; 30) "bar" | ||
31 | WHITESPACE@[30; 31) " " | ||
32 | EQ@[31; 32) "=" | ||
33 | WHITESPACE@[32; 33) " " | ||
34 | LITERAL@[33; 35) | ||
35 | INT_NUMBER@[33; 35) "92" | ||
36 | SEMI@[35; 36) ";" | ||
37 | WHITESPACE@[36; 41) "\n " | ||
38 | BIN_EXPR@[41; 44) | ||
39 | LITERAL@[41; 42) | ||
40 | INT_NUMBER@[41; 42) "1" | ||
41 | WHITESPACE@[42; 43) " " | ||
42 | PLUS@[43; 44) "+" | ||
43 | WHITESPACE@[44; 45) "\n" | ||
44 | R_CURLY@[45; 46) "}" | ||
45 | WHITESPACE@[46; 47) "\n" | ||
46 | error 44: expected expression | ||