Libraryless. Click here for Pure Java version (337L/3K/10K).
1 | !747 |
2 | |
3 | m {
|
4 | p {
|
5 | S s = loadSnippet("#1000867");
|
6 | L<S> tok = javaTok(s); |
7 | print("synchroList: " + hasInvocation(tok, "synchroList"));
|
8 | } |
9 | |
10 | static boolean hasInvocation(List<String> tok, String f) {
|
11 | for (int i = 1; i < tok.size(); i += 2) {
|
12 | if (tok.get(i).equals(f)) |
13 | if (i == 1 || !tok.get(i-2).equals("."))
|
14 | return true; |
15 | } |
16 | return false; |
17 | } |
18 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1001069 |
| Snippet name: | hasInvocation bug test |
| Eternal ID of this version: | #1001069/1 |
| Text MD5: | c315d0b775b754b2105886a3799eeea2 |
| Transpilation MD5: | 3851eb658b3e2016edde6a5f4f3ea0d8 |
| Author: | stefan |
| Category: | |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2015-09-19 17:33:22 |
| Source code size: | 406 bytes / 18 lines |
| Pitched / IR pitched: | No / Yes |
| Views / Downloads: | 1055 / 1185 |
| Referenced in: | [show references] |