Warning: session_start(): open(/var/lib/php/sessions/sess_0lv7bqb97lo92hcjmc6sbn1npj, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
static S tok_reverseFunctionArguments(S s) {
ret join(tok_reverseFunctionArguments(javaTok(s));
}
static LS tok_reverseFunctionArguments(LS tok) {
tok = first(findFullFunctionDefs(tok, true));
S name = tok_methodName(tok);
bool isVoid = tok_staticFunctionAlwaysReturnsVoid(tok, name);
IntRange r = tok_findArgs(tok);
LPair typesAndNames = tok_typesAndNamesOfParams(subList(tok, r));
replaceSublist(tok, shrinkIntRange(r, 1), ll(tok_joinTypesAndNames(reversed(typesAndNames))));
replaceSublist(tok, cloneList(tok_methodBody(tok)), ll(
" {\n "
+ (isVoid ? "" : "ret ") + name + "(" + joinWithComma(secondOfPairs(typesAndNames)) + ");"
+ "\n}\n"));
ret tok;
}