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)

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

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: 312 / 344
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1031484 - tok_importedStaticFunctionNamesWithPackages