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; }
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: | 730 / 1341 |
Referenced in: | #1002427 - Accellerating 629 (SPIKE) #1003481 - findInnerClassOfMain - by name #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1018493 - tok_topLevelClassNames #3000382 - Answer for ferdie (>> t = 1, f = 0) |