Commit be41b8e
committed
ScriptInfo: support all attrs
When an arbitrary key/value pair is given, we should set
it as an attribute rather than throwing an exception.
In Java, the way these are specified is rather verbose:
@parameter(attrs = { @attr(name="foo", value="bar") })
private int value;
But for scripts, it is now not only possible, but much more succinct:
// @int value(foo="bar")
Noticed by Gabriel Einsdorf.1 parent afab5fd commit be41b8e
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
402 | | - | |
| 402 | + | |
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
| 415 | + | |
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
438 | | - | |
| 438 | + | |
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
| |||
0 commit comments