Commit d59e306
committed
Move function definition out of header file
gcc/rust/ChangeLog:
* resolve/rust-name-resolution-context.cc (BindingLayer::BindingLayer):
Add new constructor for binding layer.
(BindingLayer::bind_test): Add a function to test a binding constraint.
(BindingLayer::push): Push a new binding group.
(BindingLayer::and_binded): Add function to test and-binding
constraint.
(BindingLayer::or_binded): Add function to test or-binding constraints.
(BindingLayer::insert_ident): Insert a new identifier in the current
binding group.
(BindingLayer::merge): Merge current binding group with it's parent.
(BindingLayer::get_source): Get the source of the current binding
group.
(BindingContext::and_binded): Add function to test and-binding for
current layer.
(BindingContext::or_binded): Add function to test or-binding for
current layer.
(BindingContext::merge): Add function to apply merge on current layer.
(BindingContext::push): Add function to apply push on current layer.
(BindingContext::insert_ident): Add function to apply insert_ident on
current layer.
(BindingContext::new_binding): Push new binding over the stack of
layers.
(BindingContext::clear): Remove last binding layer from the stack.
(BindingContext::get_source): Get the source of current binding layer.
* resolve/rust-name-resolution-context.h (enum class): Remove function
definition.
Signed-off-by: Pierre-Emmanuel Patry <[email protected]>1 parent ded7e5a commit d59e306
File tree
2 files changed
+160
-52
lines changed- gcc/rust/resolve
2 files changed
+160
-52
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
26 | 133 | | |
27 | 134 | | |
28 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
172 | 175 | | |
173 | 176 | | |
174 | 177 | | |
175 | 178 | | |
176 | 179 | | |
| 180 | + | |
177 | 181 | | |
178 | 182 | | |
179 | 183 | | |
| |||
182 | 186 | | |
183 | 187 | | |
184 | 188 | | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
| 189 | + | |
196 | 190 | | |
197 | 191 | | |
198 | | - | |
| 192 | + | |
199 | 193 | | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
| 194 | + | |
208 | 195 | | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
213 | 201 | | |
214 | | - | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
215 | 207 | | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
| 208 | + | |
225 | 209 | | |
226 | | - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
227 | 213 | | |
228 | 214 | | |
229 | 215 | | |
230 | 216 | | |
231 | 217 | | |
232 | 218 | | |
233 | 219 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
238 | 224 | | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
243 | 229 | | |
244 | | - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
245 | 234 | | |
246 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
247 | 239 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
252 | 244 | | |
253 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
254 | 249 | | |
255 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
256 | 254 | | |
257 | | - | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
258 | 259 | | |
259 | 260 | | |
260 | 261 | | |
| |||
0 commit comments