Transpiled version (6802L) is out of date.
// currently only prints method invocation (not result) // because the latter is currently too complicated // (but AI is coming soon!) svoid tok_scaffoldedFunctions(LS tok) { for (int i : jrfindAll_any(tok, "scaffolded <id>", "scaffolded <")) { Tok_MethodDecl method = new(tok, i+2); if (!method!) continue; if (method.hasBody()) tokAppend_reTok(tok, method.iBody, "\n" + "if (metaGet(\"scaffolding\") != null) " + formatFunctionCall("scaffoldCalled", commaCombine( "this", quote(method.name()), method.argNames())) + ";"); tokClear_reTok(tok, i, i+2); } }
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: | 385 / 523 |
| Version history: | 11 change(s) |
| Referenced in: | [show references] |