Commit cf47dcb
svorenova
Extending parsing of generics to parse nested generic types
Includes:
- adding the functionality itself - as part of this, the meaning of the
java_generic_parametert class changed - before it held both
uninstantiated types (type variables/parameters) and instantiated types
(type arguments), now it only holds uninstantiated types;
- removing the java_generic_inst_parameter class and flag to allow
instantiated types to be both references and generic types, the class
hierarchy changed as follows:
BEFORE:
reference_typet
-> java_generic_parametert
-> java_generic_inst_parametert
-> java_generic_typet
NOW:
reference_typet
-> java_generic_parametert
-> java_generic_typet
- slight changes in terminology for consistency (use 'type variables'
and 'type parameters' for uninstantiated types, i.e., types specified in
generic class/method declaration, 'type arguments' for instantiated
types);
- updating utility functions for unit tests accordingly.1 parent 2b4ed77 commit cf47dcb
File tree
17 files changed
+368
-451
lines changed- src
- java_bytecode
- util
- unit
- java_bytecode
- generate_concrete_generic_type
- java_bytecode_parse_generics
- testing-utils
17 files changed
+368
-451
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
133 | | - | |
| 132 | + | |
| 133 | + | |
134 | 134 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
155 | 154 | | |
156 | 155 | | |
157 | | - | |
| 156 | + | |
158 | 157 | | |
159 | 158 | | |
160 | 159 | | |
| |||
190 | 189 | | |
191 | 190 | | |
192 | 191 | | |
193 | | - | |
| 192 | + | |
| 193 | + | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
201 | 201 | | |
202 | | - | |
| 202 | + | |
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
| 247 | + | |
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | 254 | | |
261 | 255 | | |
262 | 256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
195 | | - | |
196 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
205 | | - | |
206 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
207 | 207 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
212 | 213 | | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
| 214 | + | |
| 215 | + | |
218 | 216 | | |
| 217 | + | |
219 | 218 | | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
234 | 227 | | |
235 | 228 | | |
236 | 229 | | |
| |||
286 | 279 | | |
287 | 280 | | |
288 | 281 | | |
289 | | - | |
290 | | - | |
| 282 | + | |
| 283 | + | |
291 | 284 | | |
292 | 285 | | |
293 | 286 | | |
| |||
314 | 307 | | |
315 | 308 | | |
316 | 309 | | |
317 | | - | |
| 310 | + | |
318 | 311 | | |
319 | 312 | | |
320 | 313 | | |
321 | 314 | | |
322 | 315 | | |
323 | 316 | | |
324 | | - | |
| 317 | + | |
325 | 318 | | |
326 | 319 | | |
327 | 320 | | |
328 | | - | |
| 321 | + | |
329 | 322 | | |
330 | 323 | | |
331 | 324 | | |
| |||
425 | 418 | | |
426 | 419 | | |
427 | 420 | | |
428 | | - | |
429 | | - | |
430 | | - | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
431 | 424 | | |
432 | 425 | | |
433 | | - | |
| 426 | + | |
| 427 | + | |
434 | 428 | | |
435 | 429 | | |
436 | 430 | | |
| |||
0 commit comments