Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1017261 // tok_returnTypesOfStaticFunction_uncleaned

JavaX fragment (include)

1  
static Set<S> tok_returnTypesOfStaticFunction_uncleaned(L<S> tok, S functionName) {
2  
  LL<S> funcs = findFullFunctionDefs(tok, true);
3  
  new TreeSet<S> out;
4  
  for (L<S> tokF : funcs) {
5  
    int i = indexOfAny(tokF, 0, "(", "{");
6  
    if (i < 0) continue;
7  
    S fname = get(tokF, i-2);
8  
    if (!eq(fname, functionName)) continue;
9  
    out.add(joinSubList(tokF, 1, i-3));
10  
  }
11  
  ret out;
12  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017261
Snippet name: tok_returnTypesOfStaticFunction_uncleaned
Eternal ID of this version: #1017261/1
Text MD5: 85f68bcfb5629f680bd33182bedaf31c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-15 17:01:21
Source code size: 392 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 284 / 318
Referenced in: [show references]