Libraryless. Click here for Pure Java version (2098L/14K).
1 | svoid tok_switchableFields(LS tok) {
|
2 | int i = -1; |
3 | while ((i = jfind(tok, i+1, "switchable <id>")) >= 0) {
|
4 | S var = getVarDeclarationName(subList(tok, i+1)); |
5 | tokSet_withReTok(tok, i, "sbool _switchableField_" + var + " = true;"); |
6 | } |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1022743 |
| Snippet name: | tok_switchableFields |
| Eternal ID of this version: | #1022743/6 |
| Text MD5: | 11213406181f9c0730fd3df1be779240 |
| Transpilation MD5: | 8b8297e376803bfe9c34ead191692c34 |
| Author: | stefan |
| Category: | javax / transpiling |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-04-04 23:14:31 |
| Source code size: | 250 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 974 / 1256 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |