Libraryless. Click here for Pure Java version (3291L/20K).
1 | static LS tok_destatic_identifiers = javaTokC([[ |
2 | bool S class void |
3 | ]]); |
4 | svoid tok_destatic(LS tok) { |
5 | jreplace(tok, "static", ""); |
6 | for (S id : tok_destatic_identifiers) |
7 | jreplace(tok, "s" + id, id); |
8 | } |
9 | |
10 | sS tok_destatic(S s) { |
11 | ret applyTranspilationFunction tok_destatic(s); |
12 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1029566 |
Snippet name: | tok_destatic - convert static JavaX code fragment into non-static |
Eternal ID of this version: | #1029566/4 |
Text MD5: | 680e9ab05f5f3269c42508b20979e74e |
Transpilation MD5: | 772f4c2b6a8ce5324a8dcc2f3db236a0 |
Author: | stefan |
Category: | javax / transpiling |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-08-24 11:50:24 |
Source code size: | 295 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 176 / 255 |
Version history: | 3 change(s) |
Referenced in: | [show references] |