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/0045_param_list_opt_patterns.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0045_param_list_opt_patterns.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0045_param_list_opt_patterns.txt | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0045_param_list_opt_patterns.txt b/crates/ra_syntax/test_data/parser/inline/ok/0045_param_list_opt_patterns.txt new file mode 100644 index 000000000..f85d6a4bc --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0045_param_list_opt_patterns.txt | |||
@@ -0,0 +1,46 @@ | |||
1 | SOURCE_FILE@[0; 35) | ||
2 | FN_DEF@[0; 34) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 6) | ||
6 | IDENT@[3; 6) "foo" | ||
7 | TYPE_PARAM_LIST@[6; 30) | ||
8 | L_ANGLE@[6; 7) "<" | ||
9 | TYPE_PARAM@[7; 29) | ||
10 | NAME@[7; 8) | ||
11 | IDENT@[7; 8) "F" | ||
12 | COLON@[8; 9) ":" | ||
13 | WHITESPACE@[9; 10) " " | ||
14 | TYPE_BOUND_LIST@[10; 29) | ||
15 | TYPE_BOUND@[10; 29) | ||
16 | PATH_TYPE@[10; 29) | ||
17 | PATH@[10; 29) | ||
18 | PATH_SEGMENT@[10; 29) | ||
19 | NAME_REF@[10; 15) | ||
20 | IDENT@[10; 15) "FnMut" | ||
21 | PARAM_LIST@[15; 29) | ||
22 | L_PAREN@[15; 16) "(" | ||
23 | PARAM@[16; 28) | ||
24 | REFERENCE_TYPE@[16; 28) | ||
25 | AMP@[16; 17) "&" | ||
26 | MUT_KW@[17; 20) "mut" | ||
27 | WHITESPACE@[20; 21) " " | ||
28 | PATH_TYPE@[21; 28) | ||
29 | PATH@[21; 28) | ||
30 | PATH_SEGMENT@[21; 28) | ||
31 | NAME_REF@[21; 24) | ||
32 | IDENT@[21; 24) "Foo" | ||
33 | TYPE_ARG_LIST@[24; 28) | ||
34 | L_ANGLE@[24; 25) "<" | ||
35 | LIFETIME_ARG@[25; 27) | ||
36 | LIFETIME@[25; 27) "\'a" | ||
37 | R_ANGLE@[27; 28) ">" | ||
38 | R_PAREN@[28; 29) ")" | ||
39 | R_ANGLE@[29; 30) ">" | ||
40 | PARAM_LIST@[30; 32) | ||
41 | L_PAREN@[30; 31) "(" | ||
42 | R_PAREN@[31; 32) ")" | ||
43 | BLOCK@[32; 34) | ||
44 | L_CURLY@[32; 33) "{" | ||
45 | R_CURLY@[33; 34) "}" | ||
46 | WHITESPACE@[34; 35) "\n" | ||