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

12
LINES

< > BotCompany Repo | #1016584 // tok_importedStaticFunctionNames (just the names, not the packages)

JavaX fragment (include)

1  
static L<S> tok_importedStaticFunctionNames(L<S> tok) {
2  
  new L<S> names;
3  
  for (int i = 1; i < l(tok); i += 2)
4  
    if (eq(tok.get(i), "import") && eq(get(tok, i+2), "static")) {
5  
      int j = findEndOfStatement(tok, i); // index of ;+1
6  
      S s = get(tok, j-3);
7  
      if (isIdentifier(s))
8  
      names.add(s);
9  
      i = j-1;
10  
    }
11  
  ret names;
12  
}

Author comment

Began life as a copy of #1004092

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: #1016584
Snippet name: tok_importedStaticFunctionNames (just the names, not the packages)
Eternal ID of this version: #1016584/1
Text MD5: 4eeb6e71c1bae596406af5241151c461
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-24 14:24:10
Source code size: 357 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 309 / 343
Referenced in: [show references]