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

8
LINES

< > BotCompany Repo | #1001863 // findTopLevelClass

JavaX fragment (include)

static L<S> findTopLevelClass(L<S> tok, S className) {
  for (L<S> c : allClasses(tok)) {
    S name = getClassDeclarationName(c);
    if (eq(name, className))
      ret c;
  }
  ret null;
}

Author comment

Began life as a copy of #756

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1001863
Snippet name: findTopLevelClass
Eternal ID of this version: #1001863/1
Text MD5: e12763c9675ca442d455c4bf28d08195
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-11-29 20:45:15
Source code size: 197 bytes / 8 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 668 / 1271
Referenced in: [show references]