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/0034_break_expr.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0034_break_expr.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0034_break_expr.txt | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0034_break_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0034_break_expr.txt new file mode 100644 index 000000000..4ece7cd7e --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0034_break_expr.txt | |||
@@ -0,0 +1,53 @@ | |||
1 | SOURCE_FILE@[0; 102) | ||
2 | FN_DEF@[0; 101) | ||
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; 101) | ||
12 | L_CURLY@[9; 10) "{" | ||
13 | WHITESPACE@[10; 15) "\n " | ||
14 | LOOP_EXPR@[15; 99) | ||
15 | LOOP_KW@[15; 19) "loop" | ||
16 | WHITESPACE@[19; 20) " " | ||
17 | BLOCK@[20; 99) | ||
18 | L_CURLY@[20; 21) "{" | ||
19 | WHITESPACE@[21; 30) "\n " | ||
20 | EXPR_STMT@[30; 36) | ||
21 | BREAK_EXPR@[30; 35) | ||
22 | BREAK_KW@[30; 35) "break" | ||
23 | SEMI@[35; 36) ";" | ||
24 | WHITESPACE@[36; 45) "\n " | ||
25 | EXPR_STMT@[45; 54) | ||
26 | BREAK_EXPR@[45; 53) | ||
27 | BREAK_KW@[45; 50) "break" | ||
28 | WHITESPACE@[50; 51) " " | ||
29 | LIFETIME@[51; 53) "\'l" | ||
30 | SEMI@[53; 54) ";" | ||
31 | WHITESPACE@[54; 63) "\n " | ||
32 | EXPR_STMT@[63; 72) | ||
33 | BREAK_EXPR@[63; 71) | ||
34 | BREAK_KW@[63; 68) "break" | ||
35 | WHITESPACE@[68; 69) " " | ||
36 | LITERAL@[69; 71) | ||
37 | INT_NUMBER@[69; 71) "92" | ||
38 | SEMI@[71; 72) ";" | ||
39 | WHITESPACE@[72; 81) "\n " | ||
40 | EXPR_STMT@[81; 93) | ||
41 | BREAK_EXPR@[81; 92) | ||
42 | BREAK_KW@[81; 86) "break" | ||
43 | WHITESPACE@[86; 87) " " | ||
44 | LIFETIME@[87; 89) "\'l" | ||
45 | WHITESPACE@[89; 90) " " | ||
46 | LITERAL@[90; 92) | ||
47 | INT_NUMBER@[90; 92) "92" | ||
48 | SEMI@[92; 93) ";" | ||
49 | WHITESPACE@[93; 98) "\n " | ||
50 | R_CURLY@[98; 99) "}" | ||
51 | WHITESPACE@[99; 100) "\n" | ||
52 | R_CURLY@[100; 101) "}" | ||
53 | WHITESPACE@[101; 102) "\n" | ||