Libraryless. Click here for Pure Java version (2681L/17K).
svoid tok_autoDisposeFields(LS tok) { int i = -1; while ((i = jfind(tok, i+1, "autoDispose <id>")) >= 0) { S var = getVarDeclarationName(subList(tok, i+1)); tokSet_withReTok(tok, i, ""); tokPrepend_withReTok(tok, leftScanModifiers(tok, i), "void cleanMeUp_" + var + "() { dispose " + var +"; } "); } }
Began life as a copy of #1022743
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025029 |
Snippet name: | tok_autoDisposeFields |
Eternal ID of this version: | #1025029/2 |
Text MD5: | 6a42bce100538c6d02e4f387802d72bd |
Transpilation MD5: | dd1b5c34a63aaefe195c699e8e1d2205 |
Author: | stefan |
Category: | javax / transpiling |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-01 18:55:12 |
Source code size: | 333 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 288 / 409 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |