Libraryless. Click here for Pure Java version (2830L/18K).
svoid tok_typeAAA(LS tok, Set<S> tripleClasses) { int n = l(tok)-6; bool change = false; for (int i = 1; i < n; i += 2) { if (!eq(get(tok, i+2), "<")) continue; S t = tok.get(i); continue unless contains(tripleClasses, t); if (tok_isSingleTypeArg(tok, i+2)) { int j = findEndOfTypeArgs(tok, i+2)-1; S type = joinSubList(tok, i+4, j); replaceTokens_reTok(tok, i+4, j, type + ", " + type + ", " + type); change = true; } } }
Began life as a copy of #1017378
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: | #1028903 |
Snippet name: | tok_typeAAA |
Eternal ID of this version: | #1028903/1 |
Text MD5: | 48503bd973b7aa219dea9191343be66b |
Transpilation MD5: | 39bb0193e8d4fd532f7d460d28292efd |
Author: | stefan |
Category: | javax / transpilation |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-11 18:39:10 |
Source code size: | 490 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 205 / 294 |
Referenced in: | [show references] |