diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0056_where_clause.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0056_where_clause.rast | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0056_where_clause.rast b/crates/ra_syntax/test_data/parser/inline/ok/0056_where_clause.rast new file mode 100644 index 000000000..9a9a13370 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0056_where_clause.rast | |||
@@ -0,0 +1,111 @@ | |||
1 | SOURCE_FILE@[0; 116) | ||
2 | FN_DEF@[0; 115) | ||
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) "\n" | ||
11 | WHERE_CLAUSE@[9; 112) | ||
12 | WHERE_KW@[9; 14) "where" | ||
13 | WHITESPACE@[14; 18) "\n " | ||
14 | WHERE_PRED@[18; 29) | ||
15 | LIFETIME@[18; 20) "\'a" | ||
16 | COLON@[20; 21) ":" | ||
17 | WHITESPACE@[21; 22) " " | ||
18 | TYPE_BOUND_LIST@[22; 29) | ||
19 | TYPE_BOUND@[22; 24) | ||
20 | LIFETIME@[22; 24) "\'b" | ||
21 | WHITESPACE@[24; 25) " " | ||
22 | PLUS@[25; 26) "+" | ||
23 | WHITESPACE@[26; 27) " " | ||
24 | TYPE_BOUND@[27; 29) | ||
25 | LIFETIME@[27; 29) "\'c" | ||
26 | COMMA@[29; 30) "," | ||
27 | WHITESPACE@[30; 34) "\n " | ||
28 | WHERE_PRED@[34; 59) | ||
29 | PATH_TYPE@[34; 35) | ||
30 | PATH@[34; 35) | ||
31 | PATH_SEGMENT@[34; 35) | ||
32 | NAME_REF@[34; 35) | ||
33 | IDENT@[34; 35) "T" | ||
34 | COLON@[35; 36) ":" | ||
35 | WHITESPACE@[36; 37) " " | ||
36 | TYPE_BOUND_LIST@[37; 59) | ||
37 | TYPE_BOUND@[37; 42) | ||
38 | PATH_TYPE@[37; 42) | ||
39 | PATH@[37; 42) | ||
40 | PATH_SEGMENT@[37; 42) | ||
41 | NAME_REF@[37; 42) | ||
42 | IDENT@[37; 42) "Clone" | ||
43 | WHITESPACE@[42; 43) " " | ||
44 | PLUS@[43; 44) "+" | ||
45 | WHITESPACE@[44; 45) " " | ||
46 | TYPE_BOUND@[45; 49) | ||
47 | PATH_TYPE@[45; 49) | ||
48 | PATH@[45; 49) | ||
49 | PATH_SEGMENT@[45; 49) | ||
50 | NAME_REF@[45; 49) | ||
51 | IDENT@[45; 49) "Copy" | ||
52 | WHITESPACE@[49; 50) " " | ||
53 | PLUS@[50; 51) "+" | ||
54 | WHITESPACE@[51; 52) " " | ||
55 | TYPE_BOUND@[52; 59) | ||
56 | LIFETIME@[52; 59) "\'static" | ||
57 | COMMA@[59; 60) "," | ||
58 | WHITESPACE@[60; 64) "\n " | ||
59 | WHERE_PRED@[64; 82) | ||
60 | PATH_TYPE@[64; 78) | ||
61 | PATH@[64; 78) | ||
62 | PATH@[64; 72) | ||
63 | PATH_SEGMENT@[64; 72) | ||
64 | NAME_REF@[64; 72) | ||
65 | IDENT@[64; 72) "Iterator" | ||
66 | COLONCOLON@[72; 74) "::" | ||
67 | PATH_SEGMENT@[74; 78) | ||
68 | NAME_REF@[74; 78) | ||
69 | IDENT@[74; 78) "Item" | ||
70 | COLON@[78; 79) ":" | ||
71 | WHITESPACE@[79; 80) " " | ||
72 | TYPE_BOUND_LIST@[80; 82) | ||
73 | TYPE_BOUND@[80; 82) | ||
74 | LIFETIME@[80; 82) "\'a" | ||
75 | COMMA@[82; 83) "," | ||
76 | WHITESPACE@[83; 87) "\n " | ||
77 | WHERE_PRED@[87; 112) | ||
78 | PATH_TYPE@[87; 108) | ||
79 | PATH@[87; 108) | ||
80 | PATH@[87; 102) | ||
81 | PATH_SEGMENT@[87; 102) | ||
82 | L_ANGLE@[87; 88) "<" | ||
83 | PATH_TYPE@[88; 89) | ||
84 | PATH@[88; 89) | ||
85 | PATH_SEGMENT@[88; 89) | ||
86 | NAME_REF@[88; 89) | ||
87 | IDENT@[88; 89) "T" | ||
88 | WHITESPACE@[89; 90) " " | ||
89 | AS_KW@[90; 92) "as" | ||
90 | WHITESPACE@[92; 93) " " | ||
91 | PATH_TYPE@[93; 101) | ||
92 | PATH@[93; 101) | ||
93 | PATH_SEGMENT@[93; 101) | ||
94 | NAME_REF@[93; 101) | ||
95 | IDENT@[93; 101) "Iterator" | ||
96 | R_ANGLE@[101; 102) ">" | ||
97 | COLONCOLON@[102; 104) "::" | ||
98 | PATH_SEGMENT@[104; 108) | ||
99 | NAME_REF@[104; 108) | ||
100 | IDENT@[104; 108) "Item" | ||
101 | COLON@[108; 109) ":" | ||
102 | WHITESPACE@[109; 110) " " | ||
103 | TYPE_BOUND_LIST@[110; 112) | ||
104 | TYPE_BOUND@[110; 112) | ||
105 | LIFETIME@[110; 112) "\'a" | ||
106 | WHITESPACE@[112; 113) "\n" | ||
107 | BLOCK_EXPR@[113; 115) | ||
108 | BLOCK@[113; 115) | ||
109 | L_CURLY@[113; 114) "{" | ||
110 | R_CURLY@[114; 115) "}" | ||
111 | WHITESPACE@[115; 116) "\n" | ||