Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1022743 // tok_switchableFields

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2098L/14K).

svoid tok_switchableFields(LS tok) {
  int i = -1;
  while ((i = jfind(tok, i+1, "switchable <id>")) >= 0) {
    S var = getVarDeclarationName(subList(tok, i+1));
    tokSet_withReTok(tok, i, "sbool _switchableField_" + var + " = true;");
  }
}

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: 530 / 708
Version history: 5 change(s)
Referenced in: [show references]