// returns true if a translator had been loaded static synchronized bool veryQuickJava_refresh() { bool change = false; pcall { // TODO: Why are we dropping these? for (File f : listFiles(new File(javaxCodeDir(), "Transpilations"))) if (ewic(f.getName(), ".java")) { change = true; f.delete(); } } Lock lock = cast getOpt(mc(), 'transpileRaw_lock); if (lock != null) { lock lock; O trans = getOpt(mc(), 'transpileRaw_trans); if (trans != null) { cleanUp(trans); setOpt(mc(), 'transpileRaw_trans, null); change = true; } } // Also clear standard functions callOpt(getOpt(mc(), 'loadFunctions_cache), 'clear); ret change; }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003910 |
Snippet name: | veryQuickJava_refresh - drop translator instance & clean disk transpilation cache |
Eternal ID of this version: | #1003910/6 |
Text MD5: | efd421792cae4b63d705b226204ff9ea |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-11 17:03:27 |
Source code size: | 749 bytes / 29 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 562 / 559 |
Version history: | 5 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1025862 - veryQuickJava_mediumRefresh - make transpiler use fresh standard functions |