1 | // returns index of trailing N token |
2 | static int scanToEndOfInitializer(L<S> tok, Map<Integer, Integer> bracketMap, int i) {
|
3 | while (i < l(tok)) {
|
4 | if (eqOneOf(tok.get(i), ";", ",", ")", "}")) |
5 | ret i-1; |
6 | Integer j = bracketMap.get(i); |
7 | if (j != null) |
8 | i = j+1; |
9 | else |
10 | i++; |
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: | #1002126 |
| Snippet name: | scanToEndOfInitializer - better use scanToEndOfInitializer2 |
| Eternal ID of this version: | #1002126/4 |
| Text MD5: | 37f71ea3fdb5916381054f5928d1dff2 |
| Author: | stefan |
| Category: | |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-02-27 13:40:54 |
| Source code size: | 326 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 921 / 1393 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |