Transpiled version (2495L) is out of date.
1 | // returns index of opening < |
2 | static int tok_leftScanTypeArgsOpt(LS tok, int i) { |
3 | if (!eqGet(tok, i-2, ">")) ret i; |
4 | int level = 0; |
5 | while (i > 1) { |
6 | S t = tok.get(i-2); |
7 | if (eq(t, ">")) level++; |
8 | else if (eq(t, "<")) { |
9 | level--; |
10 | if (level == 0) ret i-2; |
11 | } |
12 | i -= 2; |
13 | } |
14 | ret i; |
15 | } |
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: | #1027997 |
Snippet name: | tok_leftScanTypeArgsOpt |
Eternal ID of this version: | #1027997/4 |
Text MD5: | 1099f6c957f528fb08bbec7f5e54ee81 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-04-26 19:38:30 |
Source code size: | 327 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 201 / 318 |
Version history: | 3 change(s) |
Referenced in: | [show references] |