Libraryless. Click here for Pure Java version (4678L/26K).
1 | svoid tok_insertCasts_noReTok(LS tok, int start, int end, S var, S type) { |
2 | end = min(end, l(tok)); |
3 | |
4 | for (int j = start; j < end; j += 2) |
5 | if (eq(tok.get(j), var) && neqGet(tok, j-2, ".") |
6 | && neqGetOneOf(tok, j+2, "cast", "(") |
7 | && !tok_isAssignment(tok, j+2)) |
8 | tok_insertCast(tok, j, type); |
9 | } |
Began life as a copy of #1017552
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033639 |
Snippet name: | tok_insertCasts_noReTok |
Eternal ID of this version: | #1033639/2 |
Text MD5: | 326e90cc4f2c0736bb16b378da67ac4e |
Transpilation MD5: | 864939f1cbedc43248703518fd4d174a |
Author: | stefan |
Category: | javax / transpiling |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-12-24 22:04:43 |
Source code size: | 325 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 137 / 207 |
Version history: | 1 change(s) |
Referenced in: | [show references] |