Libraryless. Click here for Pure Java version (5785L/32K).
1 | svoid tok_swingBlocks(LS tok) {
|
2 | replaceKeywordBlock_dyn(tok, |
3 | "swing", (_tok, iOpening, iClosing) -> |
4 | containsReturnWithArgument(subList(tok, iOpening+1, iClosing)) |
5 | ? litstringarray("{ ret swing(-> {", "}); }")
|
6 | : litstringarray("{ swing(-> {", "}); }")
|
7 | ); |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1034697 |
| Snippet name: | tok_swingBlocks |
| Eternal ID of this version: | #1034697/2 |
| Text MD5: | 15d017509ba5247411396194a03eb009 |
| Transpilation MD5: | fefc6f9a25a77a47783b98be9a28e1ed |
| Author: | stefan |
| Category: | javax / transpiling |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-03-05 20:43:00 |
| Source code size: | 292 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 388 / 512 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |