Libraryless. Click here for Pure Java version (3180L/20K).
1 | svoid tok_transientClasses(LS tok) { |
2 | int i; |
3 | |
4 | while ((i = jfindOneOf(tok, |
5 | "transient class", |
6 | "transient <id> class", |
7 | "transient <id> <id> class")) >= 0) { |
8 | IntRange body = tok_findCurlyBody(tok, i); |
9 | tokAppend_reTok(tok, body.start, "\nbool _isTransient() { true; }"); |
10 | clearTokens_reTok(tok, i, i+2); |
11 | } |
12 | } |
Began life as a copy of #1012742
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: | #1028897 |
Snippet name: | tok_transientClasses - allow classes to be declared transient |
Eternal ID of this version: | #1028897/5 |
Text MD5: | be7ded7607cae98b8078d3eebc399097 |
Transpilation MD5: | f3ca1859c5d0ceb3bcb1a149621b0aae |
Author: | stefan |
Category: | javax / transpiling |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-11 12:52:58 |
Source code size: | 344 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 236 / 339 |
Version history: | 4 change(s) |
Referenced in: | [show references] |