1 | static bool tok_hasClassRef(L<S> tok, S className) { |
2 | for (int i = 1; i < l(tok); i += 2) |
3 | if (eq(tok.get(i), className)) |
4 | if (eq(get(tok, i-2), "ifclass")) |
5 | i = smartIndexOf(tok, "endif", i); |
6 | else |
7 | true; |
8 | false; |
9 | } |
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: | #1007936 |
Snippet name: | tok_hasClassRef |
Eternal ID of this version: | #1007936/4 |
Text MD5: | f629e479c280a6b866d580f07ee19cb9 |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-04-17 18:56:57 |
Source code size: | 252 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 588 / 607 |
Version history: | 3 change(s) |
Referenced in: | [show references] |