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/inline/ok/0100_for_expr.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0100_for_expr.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0100_for_expr.txt | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0100_for_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0100_for_expr.txt new file mode 100644 index 000000000..09e108570 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0100_for_expr.txt | |||
@@ -0,0 +1,34 @@ | |||
1 | SOURCE_FILE@[0; 33) | ||
2 | FN_DEF@[0; 32) | ||
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; 32) | ||
12 | L_CURLY@[9; 10) "{" | ||
13 | WHITESPACE@[10; 15) "\n " | ||
14 | EXPR_STMT@[15; 30) | ||
15 | FOR_EXPR@[15; 29) | ||
16 | FOR_KW@[15; 18) "for" | ||
17 | WHITESPACE@[18; 19) " " | ||
18 | BIND_PAT@[19; 20) | ||
19 | NAME@[19; 20) | ||
20 | IDENT@[19; 20) "x" | ||
21 | WHITESPACE@[20; 21) " " | ||
22 | IN_KW@[21; 23) "in" | ||
23 | WHITESPACE@[23; 24) " " | ||
24 | ARRAY_EXPR@[24; 26) | ||
25 | L_BRACK@[24; 25) "[" | ||
26 | R_BRACK@[25; 26) "]" | ||
27 | WHITESPACE@[26; 27) " " | ||
28 | BLOCK@[27; 29) | ||
29 | L_CURLY@[27; 28) "{" | ||
30 | R_CURLY@[28; 29) "}" | ||
31 | SEMI@[29; 30) ";" | ||
32 | WHITESPACE@[30; 31) "\n" | ||
33 | R_CURLY@[31; 32) "}" | ||
34 | WHITESPACE@[32; 33) "\n" | ||