| 1 | static Set<S> tokenIndexWithoutIfclass(L<S> tok) {
 | 
| 2 | new HashSet<S> set; | 
| 3 | int n = l(tok); | 
| 4 | int level = 0; | 
| 5 |   for (int i = 1; i < n; i += 2) {
 | 
| 6 | S t = tok.get(i); | 
| 7 | if (eqOneOf(t, "ifclass", "ifndef")) ++level; | 
| 8 | else if (eqOneOf(t, "endif", "endifndef")) --level; | 
| 9 | else if (level <= 0 && startsWithJavaIdentifierStart(t)) set.add(t); | 
| 10 | } | 
| 11 | ret set; | 
| 12 | } | 
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: | #1007325 | 
| Snippet name: | tokenIndexWithoutIfclass | 
| Eternal ID of this version: | #1007325/5 | 
| Text MD5: | 99b1d7bdd4c7e4ad2cbe4275481dac8e | 
| Author: | stefan | 
| Category: | javax / parsing | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2018-05-29 16:15:16 | 
| Source code size: | 371 bytes / 12 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 883 / 895 | 
| Version history: | 4 change(s) | 
| Referenced in: | [show references] |