1 | // i = index of "implements"/"extends" |
2 | static int tok_endOfImplementsList(L<S> tok, int i) {
|
3 | int level = 0; |
4 | while (i < l(tok)) {
|
5 | S t = tok.get(i); |
6 | if (eq(t, "<")) ++level; |
7 | else if (eq(t, ">")) {
|
8 | if (level == 0) ret i; else --level; |
9 | } else if (eq(t, "{")) ret i;
|
10 | i += 2; |
11 | } |
12 | ret i; |
13 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1010547 |
| Snippet name: | tok_endOfImplementsList |
| Eternal ID of this version: | #1010547/1 |
| Text MD5: | 15133cc234084f50029cf3fe1cff6d78 |
| Author: | stefan |
| Category: | javax / parsing |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-09-20 16:58:40 |
| Source code size: | 328 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 730 / 779 |
| Referenced in: | [show references] |