// We'd be really fancy if we filtered out return statements in // inner blocks. static bool containsReturnWithArgument(L tok) { for (int i = 1; i+2 < l(tok); i += 2) if (eqOneOf(tok.get(i), "ret", "return") && neq(tok.get(i+2), ";")) true; false; } static bool containsReturnWithArgument(S code) { ret containsReturnWithArgument(javaTok(code)); }