Libraryless. Click here for Pure Java version (10713L/67K).
1 | // output variable, set even when compilation fails |
2 | static new ThreadLocal<S> transpileAndCompileForHotwiring_src; |
3 | |
4 | static File transpileAndCompileForHotwiring(S src, LS libs default null) {
|
5 | transpileAndCompileForHotwiring_src.set(null); |
6 | |
7 | // taken from veryQuickJava3 |
8 | if (libs == null) libs = new L; |
9 | src = transpileRaw(src); // transpiled, with lib references |
10 | transpileAndCompileForHotwiring_src.set(src); |
11 | |
12 | // taken from veryQuickJava_finish |
13 | src = findTranslators2(src, libs); |
14 | S dehlibs = join(" ", libs);
|
15 | File bytecode = javaCompile_overInternalBot(src, dehlibs); |
16 | print(+bytecode); |
17 | print("Files: " + listZip(bytecode));
|
18 | |
19 | ret bytecode; |
20 | } |
Began life as a copy of #1031279
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1031284 |
| Snippet name: | transpileAndCompileForHotwiring |
| Eternal ID of this version: | #1031284/6 |
| Text MD5: | 58d1fddd5ad1098a3807b326b2702c11 |
| Transpilation MD5: | d8125cf271cb767b3cca5caa7188719e |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-07-14 16:33:04 |
| Source code size: | 690 bytes / 20 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 417 / 535 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |