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/ok/0029_range_forms.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/test_data/parser/ok/0029_range_forms.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/ok/0029_range_forms.txt | 151 |
1 files changed, 151 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/ok/0029_range_forms.txt b/crates/ra_syntax/test_data/parser/ok/0029_range_forms.txt new file mode 100644 index 000000000..e4db98c88 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/ok/0029_range_forms.txt | |||
@@ -0,0 +1,151 @@ | |||
1 | SOURCE_FILE@[0; 153) | ||
2 | FN_DEF@[0; 152) | ||
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; 152) | ||
12 | L_CURLY@[9; 10) "{" | ||
13 | WHITESPACE@[10; 15) "\n " | ||
14 | EXPR_STMT@[15; 23) | ||
15 | RANGE_EXPR@[15; 22) | ||
16 | DOTDOT@[15; 17) ".." | ||
17 | BIN_EXPR@[17; 22) | ||
18 | LITERAL@[17; 18) | ||
19 | INT_NUMBER@[17; 18) "1" | ||
20 | WHITESPACE@[18; 19) " " | ||
21 | PLUS@[19; 20) "+" | ||
22 | WHITESPACE@[20; 21) " " | ||
23 | LITERAL@[21; 22) | ||
24 | INT_NUMBER@[21; 22) "1" | ||
25 | SEMI@[22; 23) ";" | ||
26 | WHITESPACE@[23; 28) "\n " | ||
27 | EXPR_STMT@[28; 36) | ||
28 | BIN_EXPR@[28; 35) | ||
29 | RANGE_EXPR@[28; 31) | ||
30 | DOTDOT@[28; 30) ".." | ||
31 | PATH_EXPR@[30; 31) | ||
32 | PATH@[30; 31) | ||
33 | PATH_SEGMENT@[30; 31) | ||
34 | NAME_REF@[30; 31) | ||
35 | IDENT@[30; 31) "z" | ||
36 | WHITESPACE@[31; 32) " " | ||
37 | EQ@[32; 33) "=" | ||
38 | WHITESPACE@[33; 34) " " | ||
39 | LITERAL@[34; 35) | ||
40 | INT_NUMBER@[34; 35) "2" | ||
41 | SEMI@[35; 36) ";" | ||
42 | WHITESPACE@[36; 41) "\n " | ||
43 | EXPR_STMT@[41; 59) | ||
44 | BIN_EXPR@[41; 58) | ||
45 | PATH_EXPR@[41; 42) | ||
46 | PATH@[41; 42) | ||
47 | PATH_SEGMENT@[41; 42) | ||
48 | NAME_REF@[41; 42) | ||
49 | IDENT@[41; 42) "x" | ||
50 | WHITESPACE@[42; 43) " " | ||
51 | EQ@[43; 44) "=" | ||
52 | WHITESPACE@[44; 45) " " | ||
53 | RANGE_EXPR@[45; 58) | ||
54 | LITERAL@[45; 50) | ||
55 | FALSE_KW@[45; 50) "false" | ||
56 | DOTDOT@[50; 52) ".." | ||
57 | BIN_EXPR@[52; 58) | ||
58 | LITERAL@[52; 53) | ||
59 | INT_NUMBER@[52; 53) "1" | ||
60 | WHITESPACE@[53; 54) " " | ||
61 | EQEQ@[54; 56) "==" | ||
62 | WHITESPACE@[56; 57) " " | ||
63 | LITERAL@[57; 58) | ||
64 | INT_NUMBER@[57; 58) "1" | ||
65 | SEMI@[58; 59) ";" | ||
66 | WHITESPACE@[59; 64) "\n " | ||
67 | LET_STMT@[64; 76) | ||
68 | LET_KW@[64; 67) "let" | ||
69 | WHITESPACE@[67; 68) " " | ||
70 | BIND_PAT@[68; 69) | ||
71 | NAME@[68; 69) | ||
72 | IDENT@[68; 69) "x" | ||
73 | WHITESPACE@[69; 70) " " | ||
74 | EQ@[70; 71) "=" | ||
75 | WHITESPACE@[71; 72) " " | ||
76 | RANGE_EXPR@[72; 75) | ||
77 | LITERAL@[72; 73) | ||
78 | INT_NUMBER@[72; 73) "1" | ||
79 | DOTDOT@[73; 75) ".." | ||
80 | SEMI@[75; 76) ";" | ||
81 | WHITESPACE@[76; 86) "\n \n " | ||
82 | EXPR_STMT@[86; 95) | ||
83 | RANGE_EXPR@[86; 94) | ||
84 | DOTDOTEQ@[86; 89) "..=" | ||
85 | BIN_EXPR@[89; 94) | ||
86 | LITERAL@[89; 90) | ||
87 | INT_NUMBER@[89; 90) "1" | ||
88 | WHITESPACE@[90; 91) " " | ||
89 | PLUS@[91; 92) "+" | ||
90 | WHITESPACE@[92; 93) " " | ||
91 | LITERAL@[93; 94) | ||
92 | INT_NUMBER@[93; 94) "1" | ||
93 | SEMI@[94; 95) ";" | ||
94 | WHITESPACE@[95; 100) "\n " | ||
95 | EXPR_STMT@[100; 109) | ||
96 | BIN_EXPR@[100; 108) | ||
97 | RANGE_EXPR@[100; 104) | ||
98 | DOTDOTEQ@[100; 103) "..=" | ||
99 | PATH_EXPR@[103; 104) | ||
100 | PATH@[103; 104) | ||
101 | PATH_SEGMENT@[103; 104) | ||
102 | NAME_REF@[103; 104) | ||
103 | IDENT@[103; 104) "z" | ||
104 | WHITESPACE@[104; 105) " " | ||
105 | EQ@[105; 106) "=" | ||
106 | WHITESPACE@[106; 107) " " | ||
107 | LITERAL@[107; 108) | ||
108 | INT_NUMBER@[107; 108) "2" | ||
109 | SEMI@[108; 109) ";" | ||
110 | WHITESPACE@[109; 114) "\n " | ||
111 | EXPR_STMT@[114; 133) | ||
112 | BIN_EXPR@[114; 132) | ||
113 | PATH_EXPR@[114; 115) | ||
114 | PATH@[114; 115) | ||
115 | PATH_SEGMENT@[114; 115) | ||
116 | NAME_REF@[114; 115) | ||
117 | IDENT@[114; 115) "x" | ||
118 | WHITESPACE@[115; 116) " " | ||
119 | EQ@[116; 117) "=" | ||
120 | WHITESPACE@[117; 118) " " | ||
121 | RANGE_EXPR@[118; 132) | ||
122 | LITERAL@[118; 123) | ||
123 | FALSE_KW@[118; 123) "false" | ||
124 | DOTDOTEQ@[123; 126) "..=" | ||
125 | BIN_EXPR@[126; 132) | ||
126 | LITERAL@[126; 127) | ||
127 | INT_NUMBER@[126; 127) "1" | ||
128 | WHITESPACE@[127; 128) " " | ||
129 | EQEQ@[128; 130) "==" | ||
130 | WHITESPACE@[130; 131) " " | ||
131 | LITERAL@[131; 132) | ||
132 | INT_NUMBER@[131; 132) "1" | ||
133 | SEMI@[132; 133) ";" | ||
134 | WHITESPACE@[133; 138) "\n " | ||
135 | LET_STMT@[138; 150) | ||
136 | LET_KW@[138; 141) "let" | ||
137 | WHITESPACE@[141; 142) " " | ||
138 | BIND_PAT@[142; 143) | ||
139 | NAME@[142; 143) | ||
140 | IDENT@[142; 143) "x" | ||
141 | WHITESPACE@[143; 144) " " | ||
142 | EQ@[144; 145) "=" | ||
143 | WHITESPACE@[145; 146) " " | ||
144 | RANGE_EXPR@[146; 149) | ||
145 | LITERAL@[146; 147) | ||
146 | INT_NUMBER@[146; 147) "1" | ||
147 | DOTDOT@[147; 149) ".." | ||
148 | SEMI@[149; 150) ";" | ||
149 | WHITESPACE@[150; 151) "\n" | ||
150 | R_CURLY@[151; 152) "}" | ||
151 | WHITESPACE@[152; 153) "\n" | ||