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/0075_block.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0075_block.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0075_block.txt | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0075_block.txt b/crates/ra_syntax/test_data/parser/inline/ok/0075_block.txt new file mode 100644 index 000000000..36983590f --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0075_block.txt | |||
@@ -0,0 +1,86 @@ | |||
1 | SOURCE_FILE@[0; 65) | ||
2 | FN_DEF@[0; 9) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 4) | ||
6 | IDENT@[3; 4) "a" | ||
7 | PARAM_LIST@[4; 6) | ||
8 | L_PAREN@[4; 5) "(" | ||
9 | R_PAREN@[5; 6) ")" | ||
10 | WHITESPACE@[6; 7) " " | ||
11 | BLOCK@[7; 9) | ||
12 | L_CURLY@[7; 8) "{" | ||
13 | R_CURLY@[8; 9) "}" | ||
14 | WHITESPACE@[9; 10) "\n" | ||
15 | FN_DEF@[10; 31) | ||
16 | FN_KW@[10; 12) "fn" | ||
17 | WHITESPACE@[12; 13) " " | ||
18 | NAME@[13; 14) | ||
19 | IDENT@[13; 14) "b" | ||
20 | PARAM_LIST@[14; 16) | ||
21 | L_PAREN@[14; 15) "(" | ||
22 | R_PAREN@[15; 16) ")" | ||
23 | WHITESPACE@[16; 17) " " | ||
24 | BLOCK@[17; 31) | ||
25 | L_CURLY@[17; 18) "{" | ||
26 | WHITESPACE@[18; 19) " " | ||
27 | LET_STMT@[19; 29) | ||
28 | LET_KW@[19; 22) "let" | ||
29 | WHITESPACE@[22; 23) " " | ||
30 | PLACEHOLDER_PAT@[23; 24) | ||
31 | UNDERSCORE@[23; 24) "_" | ||
32 | WHITESPACE@[24; 25) " " | ||
33 | EQ@[25; 26) "=" | ||
34 | WHITESPACE@[26; 27) " " | ||
35 | LITERAL@[27; 28) | ||
36 | INT_NUMBER@[27; 28) "1" | ||
37 | SEMI@[28; 29) ";" | ||
38 | WHITESPACE@[29; 30) " " | ||
39 | R_CURLY@[30; 31) "}" | ||
40 | WHITESPACE@[31; 32) "\n" | ||
41 | FN_DEF@[32; 48) | ||
42 | FN_KW@[32; 34) "fn" | ||
43 | WHITESPACE@[34; 35) " " | ||
44 | NAME@[35; 36) | ||
45 | IDENT@[35; 36) "c" | ||
46 | PARAM_LIST@[36; 38) | ||
47 | L_PAREN@[36; 37) "(" | ||
48 | R_PAREN@[37; 38) ")" | ||
49 | WHITESPACE@[38; 39) " " | ||
50 | BLOCK@[39; 48) | ||
51 | L_CURLY@[39; 40) "{" | ||
52 | WHITESPACE@[40; 41) " " | ||
53 | EXPR_STMT@[41; 43) | ||
54 | LITERAL@[41; 42) | ||
55 | INT_NUMBER@[41; 42) "1" | ||
56 | SEMI@[42; 43) ";" | ||
57 | WHITESPACE@[43; 44) " " | ||
58 | EXPR_STMT@[44; 46) | ||
59 | LITERAL@[44; 45) | ||
60 | INT_NUMBER@[44; 45) "2" | ||
61 | SEMI@[45; 46) ";" | ||
62 | WHITESPACE@[46; 47) " " | ||
63 | R_CURLY@[47; 48) "}" | ||
64 | WHITESPACE@[48; 49) "\n" | ||
65 | FN_DEF@[49; 64) | ||
66 | FN_KW@[49; 51) "fn" | ||
67 | WHITESPACE@[51; 52) " " | ||
68 | NAME@[52; 53) | ||
69 | IDENT@[52; 53) "d" | ||
70 | PARAM_LIST@[53; 55) | ||
71 | L_PAREN@[53; 54) "(" | ||
72 | R_PAREN@[54; 55) ")" | ||
73 | WHITESPACE@[55; 56) " " | ||
74 | BLOCK@[56; 64) | ||
75 | L_CURLY@[56; 57) "{" | ||
76 | WHITESPACE@[57; 58) " " | ||
77 | EXPR_STMT@[58; 60) | ||
78 | LITERAL@[58; 59) | ||
79 | INT_NUMBER@[58; 59) "1" | ||
80 | SEMI@[59; 60) ";" | ||
81 | WHITESPACE@[60; 61) " " | ||
82 | LITERAL@[61; 62) | ||
83 | INT_NUMBER@[61; 62) "2" | ||
84 | WHITESPACE@[62; 63) " " | ||
85 | R_CURLY@[63; 64) "}" | ||
86 | WHITESPACE@[64; 65) "\n" | ||