1 | svoid tok_typeAA(L<S> tok, Set<S> pairClasses) { |
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 |
8 | contains(pairClasses, t) |
9 | || eq(t, "Entry") && eqGet(tok, i-2, ".") && eqGet(tok, i-4, "Map"); |
10 | if (tok_isSingleTypeArg(tok, i+2)) { |
11 | int j = findEndOfTypeArgs(tok, i+2)-1; |
12 | S type = joinSubList(tok, i+4, j); |
13 | replaceTokens_reTok(tok, i+4, j, type + ", " + type); |
14 | change = true; |
15 | } |
16 | } |
17 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017378 |
Snippet name: | tok_typeAA |
Eternal ID of this version: | #1017378/4 |
Text MD5: | 383e96842d2538bb888da064c3fe9d41 |
Author: | stefan |
Category: | javax / transpilation |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-08 11:29:54 |
Source code size: | 558 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 425 / 458 |
Version history: | 3 change(s) |
Referenced in: | [show references] |