Transpiled version (6802L) is out of date.
1 | // currently only prints method invocation (not result) |
2 | // because the latter is currently too complicated |
3 | // (but AI is coming soon!) |
4 | |
5 | svoid tok_scaffoldedFunctions(LS tok) { |
6 | for (int i : jrfindAll_any(tok, "scaffolded <id>", "scaffolded <")) { |
7 | Tok_MethodDecl method = new(tok, i+2); |
8 | if (!method!) continue; |
9 | |
10 | if (method.hasBody()) |
11 | tokAppend_reTok(tok, method.iBody, "\n" + |
12 | "if (metaGet(\"scaffolding\") != null) " + |
13 | formatFunctionCall("scaffoldCalled", commaCombine( |
14 | "this", |
15 | quote(method.name()), |
16 | method.argNames())) + ";"); |
17 | |
18 | tokClear_reTok(tok, i, i+2); |
19 | } |
20 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033182 |
Snippet name: | tok_scaffoldedFunctions [LIVE] |
Eternal ID of this version: | #1033182/12 |
Text MD5: | 5860359a849f2dfb1f9fc68f617f3e09 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-16 03:10:44 |
Source code size: | 669 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 217 / 326 |
Version history: | 11 change(s) |
Referenced in: | [show references] |