// 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 ", "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); } }