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/tests/data/parser/inline/ok/0112_bind_pat.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/tests/data/parser/inline/ok/0112_bind_pat.txt')
-rw-r--r-- | crates/ra_syntax/tests/data/parser/inline/ok/0112_bind_pat.txt | 156 |
1 files changed, 0 insertions, 156 deletions
diff --git a/crates/ra_syntax/tests/data/parser/inline/ok/0112_bind_pat.txt b/crates/ra_syntax/tests/data/parser/inline/ok/0112_bind_pat.txt deleted file mode 100644 index 189254a19..000000000 --- a/crates/ra_syntax/tests/data/parser/inline/ok/0112_bind_pat.txt +++ /dev/null | |||
@@ -1,156 +0,0 @@ | |||
1 | SOURCE_FILE@[0; 178) | ||
2 | FN_DEF@[0; 177) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 7) | ||
6 | IDENT@[3; 7) "main" | ||
7 | PARAM_LIST@[7; 9) | ||
8 | L_PAREN@[7; 8) "(" | ||
9 | R_PAREN@[8; 9) ")" | ||
10 | WHITESPACE@[9; 10) " " | ||
11 | BLOCK@[10; 177) | ||
12 | L_CURLY@[10; 11) "{" | ||
13 | WHITESPACE@[11; 16) "\n " | ||
14 | LET_STMT@[16; 27) | ||
15 | LET_KW@[16; 19) "let" | ||
16 | WHITESPACE@[19; 20) " " | ||
17 | BIND_PAT@[20; 21) | ||
18 | NAME@[20; 21) | ||
19 | IDENT@[20; 21) "a" | ||
20 | WHITESPACE@[21; 22) " " | ||
21 | EQ@[22; 23) "=" | ||
22 | WHITESPACE@[23; 24) " " | ||
23 | TUPLE_EXPR@[24; 26) | ||
24 | L_PAREN@[24; 25) "(" | ||
25 | R_PAREN@[25; 26) ")" | ||
26 | SEMI@[26; 27) ";" | ||
27 | WHITESPACE@[27; 32) "\n " | ||
28 | LET_STMT@[32; 47) | ||
29 | LET_KW@[32; 35) "let" | ||
30 | WHITESPACE@[35; 36) " " | ||
31 | BIND_PAT@[36; 41) | ||
32 | MUT_KW@[36; 39) "mut" | ||
33 | WHITESPACE@[39; 40) " " | ||
34 | NAME@[40; 41) | ||
35 | IDENT@[40; 41) "b" | ||
36 | WHITESPACE@[41; 42) " " | ||
37 | EQ@[42; 43) "=" | ||
38 | WHITESPACE@[43; 44) " " | ||
39 | TUPLE_EXPR@[44; 46) | ||
40 | L_PAREN@[44; 45) "(" | ||
41 | R_PAREN@[45; 46) ")" | ||
42 | SEMI@[46; 47) ";" | ||
43 | WHITESPACE@[47; 52) "\n " | ||
44 | LET_STMT@[52; 67) | ||
45 | LET_KW@[52; 55) "let" | ||
46 | WHITESPACE@[55; 56) " " | ||
47 | BIND_PAT@[56; 61) | ||
48 | REF_KW@[56; 59) "ref" | ||
49 | WHITESPACE@[59; 60) " " | ||
50 | NAME@[60; 61) | ||
51 | IDENT@[60; 61) "c" | ||
52 | WHITESPACE@[61; 62) " " | ||
53 | EQ@[62; 63) "=" | ||
54 | WHITESPACE@[63; 64) " " | ||
55 | TUPLE_EXPR@[64; 66) | ||
56 | L_PAREN@[64; 65) "(" | ||
57 | R_PAREN@[65; 66) ")" | ||
58 | SEMI@[66; 67) ";" | ||
59 | WHITESPACE@[67; 72) "\n " | ||
60 | LET_STMT@[72; 91) | ||
61 | LET_KW@[72; 75) "let" | ||
62 | WHITESPACE@[75; 76) " " | ||
63 | BIND_PAT@[76; 85) | ||
64 | REF_KW@[76; 79) "ref" | ||
65 | WHITESPACE@[79; 80) " " | ||
66 | MUT_KW@[80; 83) "mut" | ||
67 | WHITESPACE@[83; 84) " " | ||
68 | NAME@[84; 85) | ||
69 | IDENT@[84; 85) "d" | ||
70 | WHITESPACE@[85; 86) " " | ||
71 | EQ@[86; 87) "=" | ||
72 | WHITESPACE@[87; 88) " " | ||
73 | TUPLE_EXPR@[88; 90) | ||
74 | L_PAREN@[88; 89) "(" | ||
75 | R_PAREN@[89; 90) ")" | ||
76 | SEMI@[90; 91) ";" | ||
77 | WHITESPACE@[91; 96) "\n " | ||
78 | LET_STMT@[96; 111) | ||
79 | LET_KW@[96; 99) "let" | ||
80 | WHITESPACE@[99; 100) " " | ||
81 | BIND_PAT@[100; 105) | ||
82 | NAME@[100; 101) | ||
83 | IDENT@[100; 101) "e" | ||
84 | WHITESPACE@[101; 102) " " | ||
85 | AT@[102; 103) "@" | ||
86 | WHITESPACE@[103; 104) " " | ||
87 | PLACEHOLDER_PAT@[104; 105) | ||
88 | UNDERSCORE@[104; 105) "_" | ||
89 | WHITESPACE@[105; 106) " " | ||
90 | EQ@[106; 107) "=" | ||
91 | WHITESPACE@[107; 108) " " | ||
92 | TUPLE_EXPR@[108; 110) | ||
93 | L_PAREN@[108; 109) "(" | ||
94 | R_PAREN@[109; 110) ")" | ||
95 | SEMI@[110; 111) ";" | ||
96 | WHITESPACE@[111; 116) "\n " | ||
97 | LET_STMT@[116; 143) | ||
98 | LET_KW@[116; 119) "let" | ||
99 | WHITESPACE@[119; 120) " " | ||
100 | BIND_PAT@[120; 137) | ||
101 | REF_KW@[120; 123) "ref" | ||
102 | WHITESPACE@[123; 124) " " | ||
103 | MUT_KW@[124; 127) "mut" | ||
104 | WHITESPACE@[127; 128) " " | ||
105 | NAME@[128; 129) | ||
106 | IDENT@[128; 129) "f" | ||
107 | WHITESPACE@[129; 130) " " | ||
108 | AT@[130; 131) "@" | ||
109 | WHITESPACE@[131; 132) " " | ||
110 | BIND_PAT@[132; 137) | ||
111 | NAME@[132; 133) | ||
112 | IDENT@[132; 133) "g" | ||
113 | WHITESPACE@[133; 134) " " | ||
114 | AT@[134; 135) "@" | ||
115 | WHITESPACE@[135; 136) " " | ||
116 | PLACEHOLDER_PAT@[136; 137) | ||
117 | UNDERSCORE@[136; 137) "_" | ||
118 | WHITESPACE@[137; 138) " " | ||
119 | EQ@[138; 139) "=" | ||
120 | WHITESPACE@[139; 140) " " | ||
121 | TUPLE_EXPR@[140; 142) | ||
122 | L_PAREN@[140; 141) "(" | ||
123 | R_PAREN@[141; 142) ")" | ||
124 | SEMI@[142; 143) ";" | ||
125 | WHITESPACE@[143; 148) "\n " | ||
126 | LET_STMT@[148; 175) | ||
127 | LET_KW@[148; 151) "let" | ||
128 | WHITESPACE@[151; 152) " " | ||
129 | BIND_PAT@[152; 157) | ||
130 | BOX_KW@[152; 155) "box" | ||
131 | WHITESPACE@[155; 156) " " | ||
132 | NAME@[156; 157) | ||
133 | IDENT@[156; 157) "i" | ||
134 | WHITESPACE@[157; 158) " " | ||
135 | EQ@[158; 159) "=" | ||
136 | WHITESPACE@[159; 160) " " | ||
137 | CALL_EXPR@[160; 174) | ||
138 | PATH_EXPR@[160; 168) | ||
139 | PATH@[160; 168) | ||
140 | PATH@[160; 163) | ||
141 | PATH_SEGMENT@[160; 163) | ||
142 | NAME_REF@[160; 163) | ||
143 | IDENT@[160; 163) "Box" | ||
144 | COLONCOLON@[163; 165) "::" | ||
145 | PATH_SEGMENT@[165; 168) | ||
146 | NAME_REF@[165; 168) | ||
147 | IDENT@[165; 168) "new" | ||
148 | ARG_LIST@[168; 174) | ||
149 | L_PAREN@[168; 169) "(" | ||
150 | LITERAL@[169; 173) | ||
151 | INT_NUMBER@[169; 173) "1i32" | ||
152 | R_PAREN@[173; 174) ")" | ||
153 | SEMI@[174; 175) ";" | ||
154 | WHITESPACE@[175; 176) "\n" | ||
155 | R_CURLY@[176; 177) "}" | ||
156 | WHITESPACE@[177; 178) "\n" | ||