diff options
author | veetaha <[email protected]> | 2020-04-06 12:04:26 +0100 |
---|---|---|
committer | veetaha <[email protected]> | 2020-04-06 12:04:26 +0100 |
commit | da091b130347c4d6d8c75acb8e65c30a17dc1f5e (patch) | |
tree | f97939669a700ed80a64086b1f0aefd530bc9bea /crates/ra_syntax/test_data/parser/err/0017_incomplete_binexpr.rast | |
parent | ec3fb1cdb4f1808a11fb6057550ed721c2aa36a9 (diff) |
Migrate tests .txt -> .rast
The sytax tree output files now use .rast extension
(rust-analyzer syntax tree or rust abstract syntax tree
(whatever)).
This format has a editors/code/ra_syntax_tree.tmGrammar.json declaration
that supplies nice syntax highlighting for .rast files.
Diffstat (limited to 'crates/ra_syntax/test_data/parser/err/0017_incomplete_binexpr.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/err/0017_incomplete_binexpr.rast | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/err/0017_incomplete_binexpr.rast b/crates/ra_syntax/test_data/parser/err/0017_incomplete_binexpr.rast new file mode 100644 index 000000000..59480e999 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/err/0017_incomplete_binexpr.rast | |||
@@ -0,0 +1,47 @@ | |||
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_EXPR@[17; 46) | ||
23 | BLOCK@[17; 46) | ||
24 | L_CURLY@[17; 18) "{" | ||
25 | WHITESPACE@[18; 23) "\n " | ||
26 | LET_STMT@[23; 36) | ||
27 | LET_KW@[23; 26) "let" | ||
28 | WHITESPACE@[26; 27) " " | ||
29 | BIND_PAT@[27; 30) | ||
30 | NAME@[27; 30) | ||
31 | IDENT@[27; 30) "bar" | ||
32 | WHITESPACE@[30; 31) " " | ||
33 | EQ@[31; 32) "=" | ||
34 | WHITESPACE@[32; 33) " " | ||
35 | LITERAL@[33; 35) | ||
36 | INT_NUMBER@[33; 35) "92" | ||
37 | SEMI@[35; 36) ";" | ||
38 | WHITESPACE@[36; 41) "\n " | ||
39 | BIN_EXPR@[41; 44) | ||
40 | LITERAL@[41; 42) | ||
41 | INT_NUMBER@[41; 42) "1" | ||
42 | WHITESPACE@[42; 43) " " | ||
43 | PLUS@[43; 44) "+" | ||
44 | WHITESPACE@[44; 45) "\n" | ||
45 | R_CURLY@[45; 46) "}" | ||
46 | WHITESPACE@[46; 47) "\n" | ||
47 | error [44; 44): expected expression | ||