Libraryless. Click here for Pure Java version (3986L/26K).
svoid tok_fieldAccessProxy(LS tok) { int i; while ((i = jfind(tok, "fieldAccessProxy <id> for virtual <id> {")) >= 0) { tok.set(i, "class"); S proxyName = tok.get(i+2), vtype = tok.get(i+8); int iOpening = indexOf(tok, i, "{"); int iClosing = tok_findEndOfBlock(tok, iOpening)-1; LLS decls = splitAtListElement_multi(subList(tok, iOpening+1, iClosing), ";"); new StringBuilder buf; for (LS tokD : decls) { if (l(tokD) < 3) continue; //if (eq(second(tokD), "import")) } replaceTokens(tok, i+4, iClosing-1, str(buf)); reTok(tok, i, iClosing); pnlStruct(decls); } }
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: | #1025222 |
Snippet name: | tok_fieldAccessProxy [dev.] |
Eternal ID of this version: | #1025222/5 |
Text MD5: | ea957c624f5a38954dde0abb52513de9 |
Transpilation MD5: | c2ae5d2078172daa54b0b1d1824301fe |
Author: | stefan |
Category: | javax / transpiling |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-13 17:58:15 |
Source code size: | 641 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 230 / 320 |
Version history: | 4 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |