Libraryless. Click here for Pure Java version (2830L/18K).
1 | svoid tok_typeAAA(LS tok, Set<S> tripleClasses) { |
2 | int n = l(tok)-6; |
3 | bool change = false; |
4 | for (int i = 1; i < n; i += 2) { |
5 | if (!eq(get(tok, i+2), "<")) continue; |
6 | S t = tok.get(i); |
7 | continue unless contains(tripleClasses, t); |
8 | if (tok_isSingleTypeArg(tok, i+2)) { |
9 | int j = findEndOfTypeArgs(tok, i+2)-1; |
10 | S type = joinSubList(tok, i+4, j); |
11 | replaceTokens_reTok(tok, i+4, j, type + ", " + type + ", " + type); |
12 | change = true; |
13 | } |
14 | } |
15 | } |
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: | 206 / 296 |
Referenced in: | [show references] |