// iOpening, iClosing = position of () brackets static LS tok_makeArgumentsFinal(LS tok, int iOpening, int iClosing) { Map<Int> bracketMap = getBracketMapIncludingAngleBrackets(tok, iOpening+2, iClosing); bool change = false; int i = iOpening+2; while (i < iClosing) { if (neqGet(tok, i, "final")) { tokPrepend(tok, i, "final "); set change; } while (i < iClosing && neqGet(tok, i, ",")) i = or(bracketMap.get(i), i)+2; i += 2; } if (change) reTok(tok, iOpening, iClosing); ret tok; }
Began life as a copy of #1020910
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020961 |
Snippet name: | tok_makeArgumentsFinal |
Eternal ID of this version: | #1020961/6 |
Text MD5: | 44377ecad5b7bdb92a8bd1f6b343ff28 |
Author: | stefan |
Category: | javax / transpiling |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-01-12 21:50:38 |
Source code size: | 529 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 336 / 386 |
Version history: | 5 change(s) |
Referenced in: | [show references] |