Transpiled version (5463L) is out of date.
1 | // void blu(optional S bla) { ... }
|
2 | // => void blu(S bla default null) { ... }
|
3 | svoid tok_optionalArguments(LS tok) {
|
4 | for (int i : jfindAll_reverse(tok, "optional <id>", (_tok, nIdx) |
5 | -> eqGetOneOf(tok, nIdx-1, ",", "("))) {
|
6 | int iEndOfType = tok_endOfType(tok, i+2); |
7 | S var = tok.get(iEndOfType); |
8 | S type = joinSubList(tok, i+2, iEndOfType); |
9 | |
10 | tokReplace_reTok(tok, i, iEndOfType+1, |
11 | "\*type*/ \*var*/ default null"); |
12 | } |
13 | } |
Began life as a copy of #1031988
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1033836 |
| Snippet name: | tok_optionalArguments - see also: tok_optionalFields |
| Eternal ID of this version: | #1033836/4 |
| Text MD5: | 7e108c752c6a9f5ab96da73b0669d623 |
| Author: | stefan |
| Category: | javax / image reconstruction [dev.] |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-01-06 23:09:31 |
| Source code size: | 461 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 425 / 559 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |