1 | static Cl<S> stefansOS_snippetIDToModuleLibIDs(S _snippetID, Class c default hotwireModule(_snippetID)) { |
2 | snippetID = fsI(_snippetID); |
3 | L<S> names = (L) callOpt(c, 'myInnerClasses); |
4 | if (names == null) |
5 | names = nonNulls(map getClassDeclarationName(innerClassesOfMain(getServerTranspiledWithoutLibs(snippetID)))); |
6 | |
7 | print(+names); |
8 | // only show the usable ones |
9 | try { |
10 | print(mcName := mainClassNameForClassLoader(c.getClassLoader())); |
11 | names = shortClassNames(nonAbstractClassesInRealmWithSuperclassShortNamed(c, "DynModule", names)); |
12 | print(+names); |
13 | } catch print e { |
14 | names = null; |
15 | } |
16 | |
17 | ret map(names, name -> joinWithSlash(snippetID, name)); |
18 | } |
Began life as a copy of #1016593
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031795 |
Snippet name: | stefansOS_snippetIDToModuleLibIDs |
Eternal ID of this version: | #1031795/5 |
Text MD5: | 6878268025969efff4aec6cec3a285a2 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-06-30 02:37:14 |
Source code size: | 694 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 141 / 183 |
Version history: | 4 change(s) |
Referenced in: | [show references] |