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/0003_where_pred_for.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0003_where_pred_for.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0003_where_pred_for.txt | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0003_where_pred_for.txt b/crates/ra_syntax/test_data/parser/inline/ok/0003_where_pred_for.txt new file mode 100644 index 000000000..8a21ee968 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0003_where_pred_for.txt | |||
@@ -0,0 +1,61 @@ | |||
1 | SOURCE_FILE@[0; 49) | ||
2 | FN_DEF@[0; 48) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 7) | ||
6 | IDENT@[3; 7) "test" | ||
7 | TYPE_PARAM_LIST@[7; 10) | ||
8 | L_ANGLE@[7; 8) "<" | ||
9 | TYPE_PARAM@[8; 9) | ||
10 | NAME@[8; 9) | ||
11 | IDENT@[8; 9) "F" | ||
12 | R_ANGLE@[9; 10) ">" | ||
13 | PARAM_LIST@[10; 12) | ||
14 | L_PAREN@[10; 11) "(" | ||
15 | R_PAREN@[11; 12) ")" | ||
16 | WHITESPACE@[12; 13) "\n" | ||
17 | WHERE_CLAUSE@[13; 44) | ||
18 | WHERE_KW@[13; 18) "where" | ||
19 | WHITESPACE@[18; 22) "\n " | ||
20 | WHERE_PRED@[22; 44) | ||
21 | FOR_TYPE@[22; 31) | ||
22 | FOR_KW@[22; 25) "for" | ||
23 | TYPE_PARAM_LIST@[25; 29) | ||
24 | L_ANGLE@[25; 26) "<" | ||
25 | LIFETIME_PARAM@[26; 28) | ||
26 | LIFETIME@[26; 28) "\'a" | ||
27 | R_ANGLE@[28; 29) ">" | ||
28 | WHITESPACE@[29; 30) " " | ||
29 | PATH_TYPE@[30; 31) | ||
30 | PATH@[30; 31) | ||
31 | PATH_SEGMENT@[30; 31) | ||
32 | NAME_REF@[30; 31) | ||
33 | IDENT@[30; 31) "F" | ||
34 | COLON@[31; 32) ":" | ||
35 | WHITESPACE@[32; 33) " " | ||
36 | TYPE_BOUND_LIST@[33; 44) | ||
37 | TYPE_BOUND@[33; 44) | ||
38 | PATH_TYPE@[33; 44) | ||
39 | PATH@[33; 44) | ||
40 | PATH_SEGMENT@[33; 44) | ||
41 | NAME_REF@[33; 35) | ||
42 | IDENT@[33; 35) "Fn" | ||
43 | PARAM_LIST@[35; 44) | ||
44 | L_PAREN@[35; 36) "(" | ||
45 | PARAM@[36; 43) | ||
46 | REFERENCE_TYPE@[36; 43) | ||
47 | AMP@[36; 37) "&" | ||
48 | LIFETIME@[37; 39) "\'a" | ||
49 | WHITESPACE@[39; 40) " " | ||
50 | PATH_TYPE@[40; 43) | ||
51 | PATH@[40; 43) | ||
52 | PATH_SEGMENT@[40; 43) | ||
53 | NAME_REF@[40; 43) | ||
54 | IDENT@[40; 43) "str" | ||
55 | R_PAREN@[43; 44) ")" | ||
56 | WHITESPACE@[44; 45) "\n" | ||
57 | BLOCK@[45; 48) | ||
58 | L_CURLY@[45; 46) "{" | ||
59 | WHITESPACE@[46; 47) " " | ||
60 | R_CURLY@[47; 48) "}" | ||
61 | WHITESPACE@[48; 49) "\n" | ||