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   

Travelled to 10 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

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: 127 / 131
Referenced in: [show references]

Formerly at http://tinybrain.de/1016584 & http://1016584.tinybrain.de