Libraryless. Click here for Pure Java version (12121L/79K).
1 | // r : voidfunc(snippet ID), called in module queue |
2 | svoid dm_onSnippetTranspiled(VF1<S> r) { |
3 | dm_requireSnippetUpdatesModule(); |
4 | final DynModule m = dm_current_mandatory(); |
5 | dm_vmBus_onMessage('snippetUpdate, voidfunc(fL l) { |
6 | switch to m.q(); |
7 | S uri = getString(l, 1); |
8 | new Matches m; |
9 | if (swic(uri, "/transpileOK/", m)) { |
10 | S snippetID = fsI(firstIntAsString(m.rest())); |
11 | callF(r, snippetID); |
12 | } |
13 | }); |
14 | } |
15 | |
16 | svoid dm_onSnippetTranspiled(S snippetID, Runnable r) { |
17 | if (empty(snippetID) || r == null) ret; |
18 | dm_onSnippetTranspiled(voidfunc(S snippetID2) { |
19 | if (sameSnippetID(snippetID, snippetID2)) |
20 | r.run(); |
21 | }); |
22 | } |
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020439 |
Snippet name: | dm_onSnippetTranspiled - runs in module queue |
Eternal ID of this version: | #1020439/6 |
Text MD5: | 61ec05be45c0c110bf807012f3ee7968 |
Transpilation MD5: | 2945231da632eded7a44c11fd8dbc82c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-06-14 03:31:58 |
Source code size: | 671 bytes / 22 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 390 / 462 |
Version history: | 5 change(s) |
Referenced in: | [show references] |